Search found 2 matches

by TUHIN
Tue May 24, 2005 7:47 pm
Forum: C
Topic: String Input
Replies: 2
Views: 2679

String Input

For many purposes, i need to take a large input of string.
I have declared a character array in large size. But i cannot take
more than 128 characters input as string from keyboard.
Can anyone help me about htis problem ?


-TUHIN
by TUHIN
Sat May 21, 2005 8:35 pm
Forum: Volume 4 (400-499)
Topic: 446 - Kibbles "n" Bits "n" Bits "n" Bits
Replies: 50
Views: 11510

For challenger

Dear challenger,
You wrote :
char temp[13]="0000000000000";

but assigning 13 characters in a 13 byte string will cause producing
bad result. You should use temp[14] or assign 12 0's in temp[13] and
left the last one for null character.


TUHIN
_____________________________

Think simple, Be ...

Go to advanced search