That is C++! Ok, some things don't need a .h in C++; I always have to use a reference to remember which ones though. You do know how similar the two are right?
Should have used #include <iostream>, because that works fine without .h. And then I could use cout, which is C++ only
Code:
#include <stdio.h>
using namespace std;
int main(){
printf("Welcome to C++");
return 0;
}
There, that make you happy? It compiles with g++. Most C code is valid C++ code, you know, except for stuff like this:
c++; //equivalent to c = c + 1; also this quote, I think, is incompatible.
Actually, the above line is valid C++ code, and invalid C code
Oh, by the way... Errors Found! in your post.