Hi All,
Thanks so much for the responses! I have been playing around with the below code and have a question regarding it.
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
Type: Posts; User: Giri
Hi All,
Thanks so much for the responses! I have been playing around with the below code and have a question regarding it.
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
Hi Guys,
I am trying to read in TWO unsigned long long variables, however, I would like to know whether the user actually entered two positive numbers within the range of an
unsigned long long...
Hi Grumpy,
I assumed that when it read the last digit on the 2nd line, it would return EOF.
Is there a way I can ensure EOF is returned after the 2nd line has been read?
Thanks.
Giri
Hi Guys,
This is in relation to some code I posted earlier. I am finding that the ForLoop located at the bottom of my code is not being entered. Any ideas why?
The input for this program is in...
Ok.
This is what I have written so far.
#define MAX_X_DIM 31
#define MAX_Y_DIM 41
int array[MAX_Y_DIM][MAX_X_DIM];
Hi Quzah,
I wouldn't have thought so, because the loop freezes after reading the first line of input. It doesn't seem to get to the 2nd line of input.
Kind Regards,
Giri
Hi Oogabooga,
Thanks for that. I realized my mistake - I should have been putting '10' instead of '-38'. I initially put -38 because I noticed that -38 was being printed when a NewLine was...
Hi Guys,
I currently have the below code:
while( (c = getchar()) != EOF)
if ( c != -38 && (c < '0' || c > '3') )
return false;
Thanks so much nonoob & stahta01!!
The program is now running as it should ;)
All the best,
Giri
Hi All,
I have the below code within a For Loop. I want the code to go back to the start of the loop if ANY of the below variables are not equal to a common value.
I was just curious as to...