Search found 3 matches

by losvald
Thu Jul 12, 2007 1:01 pm
Forum: C++
Topic: C++ string usage: compile error
Replies: 4
Views: 2994

Thx works now.
by losvald
Wed Jul 11, 2007 9:56 pm
Forum: C++
Topic: C++ string usage: compile error
Replies: 4
Views: 2994

C++ string usage: compile error

Whenever I try to use std::string I always get compile error.
Here is the example:
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <cctype>
#include <stack>
using namespace std;
const int inf = 1000000000;
string num; //here it says Syntax error before ; token ...
by losvald
Mon Jul 09, 2007 11:53 pm
Forum: Volume 108 (10800-10899)
Topic: 10801 - Lift Hopping
Replies: 56
Views: 37295

I keep getting WA. I tried everything, and tested with all this IO posted here and even with some tricky IO and everything seems OK. I also tried with different inputs (gets, fgets, getline...). I really cannot see the problem. Here is the source code:

#include <cstdio>
#include <iostream ...

Go to advanced search