Skip to main content

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
php code:
#include <iostream>
 
int main();
 {
 
using namespace std;
 
cout <<"hello world!\n";
 return 
0;
 } 
or
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

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

2.5.28 to 3.4.1---Download of update package failed - Joomla! Forum - community, help and support

Your host needs to use PHP 5.3.10 or higher to run this vers - Joomla! Forum - community, help and support