#scanf question

7 messages · Page 1 of 1 (latest)

silent socketBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

snow gulch
#

Please send more details

snow gulch
#

!f

silent socketBOT
#
for (int i = 1; i < totalLoopTimes; i++) {
  scanf("%d", &tum);
  if (tum == -1) {
    sArr[i] = '\0';
  } else {
    scanf("%d", &numMon);
    arr[i] = sArr[i - 1] + num;
    arr[i] = sArr[i];
    i++;
  }
}
saskia
snow gulch
#

I mean, that code looks good to me

fiery mantle
#

!solved

silent socketBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.