Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

sorbhs's blog

By sorbhs, 13 years ago, In English

hello , i am using MS c++ compiler here.Why we can't use ".h" in header files. And also,why we can't use cout,cin,endl like functions here?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
13 years ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Most headers with ".h" are just for C; C++ has its own equivalents (like cmath instead of math.h).

You can use cout, cin, endl. Maybe you're making some C-exclusive mistake (like not using namespace std).