well, I'm on winXPpro and lcc-win32
and if I can't do unbuffered input, how else can I fix it?
Type: Posts; User: ruffle
well, I'm on winXPpro and lcc-win32
and if I can't do unbuffered input, how else can I fix it?
I'm looking at the unbuffered input section in the faq, and it looks like it's explained in C++. How would this go down in C?
for(;;){
printf("0) Exit\n");
printf("1) Run\n");
scanf("%c", &response);
switch (response) {
case '0':
return 0;
case '1':
break;
}
thanks, guys. I just started learning C a few days ago, and I think I'm way in over my head. It took me hours to write that and it turned into a bloated pos.
#define aVar sizeof(char)
#define bVar sizeof(short)
#define cVar sizeof(int)
#define dVar sizeof(long)
#define eVar sizeof(float)
#define fVar sizeof(double)
#define gVar sizeof(pointer)...
ok, I think I got it. Thanks for your quick and frequent :rolleyes: help. I really appreciate it.
wait wait. I'm confused.
what I'm trying to do is get an output of 06688363
that's my decimal.
So what I have to do is convert 06688363 to octal so I can put the octal into the code, so it'll...
Nothing different happens when I change the char part, so I think the problems stems only from the octal error. And I went to scientific mode and clicked the oct button, but I still can't put 0...
I can't seem to type 0 first into the calculator.
And the xxx was supposed to represent numbers, since I didn't want to post the actual numbers. Sorry if there was any confusion, I don't know the...
I need to make a struct that contains a long for student id. In my case, my student id is 0xxxxxxx
my code looks like this:
struct student {
char *name;
int age;
long int id;
float...