Mail Archives: djgpp/1998/02/11/00:34:16
At 12:01 2/10/1998 -0500, Eric wrote:
>The following line:
> scanf("%d-%d-%d-%c", &beg_X, &end_Y, &wColor, &ch);
>
>will NOT assign a value to the first variable (&beg_X) and it remains at
>zero. BUT IF I FLIP the order of the first two variable (ie,
>scanf("%d-%d-%d-%c", &end_Y, &beg_X, &wColor, &ch);), VALUES ARE ASSIGNED!
>
>In a similar vein, the following line:
> WORD left = 8, top = 10, right = 50, bottom = 20, type;
>
>will properly initialize evry requested variable of type word EXCEPT FOR THE
>last one (bottom = 20). I had to reassign the value later in the code.
>
>I'm using RHIDE on a Windows 95 machine. Any help much appreciated.
Please send a complete example where this doesn't work. It's hard to find a
bug out of context, if it is indeed a bug. For the `scanf' example, say
exactly what the input was.
>
>
>
>
>begin 666 ATT00066.gif
Please don't post binary files to this newsgroup, especially when they have
nothing to do with the topic at hand.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -