hello everyone,
I was successful in implementing all of your suggestions in my little programme. Everything works flawlessly.
Thanks again.
Type: Posts; User: pirog
hello everyone,
I was successful in implementing all of your suggestions in my little programme. Everything works flawlessly.
Thanks again.
hey tabstop,
i did not keep the backup of it (since that was a trial file, although i do in general) but i did not use the equal sign.
Yet, I am pretty sure i had a semicolon in there ;)
...
hey dwks,
i defined BUFFSIZE in a pre-processor statement as you have it in your last post, but my compiler did not like it. not quite sure why (i might have a look at it later), but that's the...
dwks,
the example you've given worked like a charm. Although i did not get the idea behind bogus variable, but then it came to me that it is a dummy variable and is necessary for the limitation of...
Thanks for such an informative reply, DWKS!!!
I shall certainly try it your way, but as far as i can see that pretty much answers my question.
What i was doing, as you probably understood from...
Tried to implement the SSCANF suggestion, but unsuccessfully.
From what errors I could unscramble, the issue was in an incorrect formating. I am going to stick to SCANF routine, although I still...
while running this programme in the terminal and pressing C-Z or C-D gives me russian letters (my keyboard is set to Eng/Rus). Anyway, the following ensures such termination and gives my own error...
laserlight,
actually, the programme waits until i enter at least 3 values. even if i separate them by X number of CARRIAGE RETURNS. Of course the programme (however small) terminates on the...
Thanks laselight,
i think it is an unnecessary use of input buffer. do extra values keep on filling up buffer and can this buffer overflow (if the number given to it is too large, for example)?
...
hi guys,
ok, i just realised something about scanf and its return values. when a user tries to assign (for example) three values to three variables, the return value of scanf is 3. nice.
THEN, if...