Page 1 of 1
compile error
Posted: Fri Feb 24, 2006 10:15 pm
by opportunity
i've got compile error. but i cannot detect what the error is can anybody help me with this? thanx in advance.
// codes removed
Posted: Sat Feb 25, 2006 12:19 am
by Krzysztof Duleba
You should include <cstdio> if you're using scanf and fgets. Anyway, it's bad style to mix those with iostreams. You should also use code tag instead of pasting code directly.
thanks
Posted: Sun Feb 26, 2006 10:45 pm
by opportunity
hi,
thank u once again. this was really a silly mistake. i also tried not to use fgets but i could not input string with whitespaces. how can i do that if i want to use cin>> to read string from keyboard?
Posted: Sun Feb 26, 2006 11:04 pm
by Krzysztof Duleba
You can use getline(cin, aString). Unfortunately, cin/cout are really slow in older versions of g++ and you can exceed time limit on many problems just by using them.
1
Posted: Tue Feb 28, 2006 10:41 am
by tmdrbs6584
3124112345223564575376467453gsdfhjykliyncvbsfdgwreyw
Posted: Tue Feb 28, 2006 10:41 am
by tmdrbs6584
Hi logic
Bye logic
kind Krzysztof Duleba
Posted: Fri Mar 03, 2006 8:27 am
by sds1100
kind Krzysztof Duleba