Thread: problem with c++ (with emacs editor)
i'm trying make first program, writing this:
#include <iostream.h>
int main();
{
cout <<"hello world!\n";
return 0;
}
, in terminal says: iostream.h: no such file or directory
so, change it, i've read on forum:
#include <iostream> (i erased .h)
, in terminal says:
expected unqualified-id before ‘{’ token
can it??
ps. i'm total beginner computing!!
it has either
orphp code:
#include <iostream>
int main();
{
using namespace std;
cout <<"hello world!\n";
return 0;
}
php code:
#include <iostream>
int main();
{
std::cout <<"hello world!\n";
return 0;
}
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] problem with c++ (with emacs editor)
Ubuntu
Comments
Post a Comment