
Search found 3 matches
- Thu Aug 07, 2003 2:00 am
- Forum: C++
- Topic: Input problem!
- Replies: 2
- Views: 2258
- Thu Aug 07, 2003 1:09 am
- Forum: C++
- Topic: Input problem!
- Replies: 2
- Views: 2258
Input problem!
I don't know why but I keep getting the same error when I try to compile this simple program:
#include <iostream>
using namespace std;
int main()
{
int n;
string line;
getline(cin, line);
istringstream is(line);
while(is >> n)
cout << n << endl;
return 0;
}
My compiler is g++ 3.2.2 ...
#include <iostream>
using namespace std;
int main()
{
int n;
string line;
getline(cin, line);
istringstream is(line);
while(is >> n)
cout << n << endl;
return 0;
}
My compiler is g++ 3.2.2 ...
- Fri Aug 01, 2003 9:45 am
- Forum: Volume 1 (100-199)
- Topic: 183 - Bit Maps
- Replies: 15
- Views: 6087
BitMaps 183 - WA, HELP!
I've tested my code with a lot of inputs and It's working fine, but I keep getting Wrong Answer. I'd really apreciate it if someone could check my code and tell me if there's something wrong.
Thanks in advance. :)
#include <iostream>
#include <iomanip>
using namespace std;
char bmp[200][200 ...
Thanks in advance. :)
#include <iostream>
#include <iomanip>
using namespace std;
char bmp[200][200 ...