+ 2

On turbo c++ IDE, an error is occured?

when I use "using namespace std" on turbo C++ IDE , the error is occured, "declaration syntax error". why?

3rd Jan 2017, 3:22 PM
Nawaj Shareef
Nawaj Shareef - avatar
6 Respuestas
+ 6
Did you put the semicolon (;) in the end?
3rd Jan 2017, 4:15 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
It's mean that your bracket is mismatch so find it where
3rd Jan 2017, 3:40 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
very hard, all bracket is right, and error is in this statement "using namespace std", compiler is giving clear indication of line number.
3rd Jan 2017, 3:43 PM
Nawaj Shareef
Nawaj Shareef - avatar
+ 3
Is it show any kind of undefined,huh?
3rd Jan 2017, 3:56 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
No, and without using "using namespace std" statement, program is executed properly.
3rd Jan 2017, 3:59 PM
Nawaj Shareef
Nawaj Shareef - avatar
+ 2
hmm..put the semicolon at the end Valentin hacker.
3rd Jan 2017, 4:18 PM
Nawaj Shareef
Nawaj Shareef - avatar