|
|
back to boardHelp me please! Posted by Aybek 13 Jul 2011 03:37 How to read data in Dev c++? I used so many methods: getchar (), gets (), getline (cin, ), scanf (), cin >>.... Now I'm using fgets (str, maxlen, stdin). These strings from my cod: fscanf (stdin, "%d\n", &n); for (0...n - 1) { fgets (s, 10000, stdin); ................... .................. ..................... } scanf ("%d", &m); for (0...m - 1) { fgets (t, 1000000, stdin); ......... .......... ............ } I have a WA on a test '5'. If you have some tests, please wright. Thanks for attention! =) |
|
|