Skip to main content

Thread: C++ Emacs


hey trying figure out how basic c++ programming. want use emacs. file saved hw10.cpp. when try compile get.


ah535@ah535-laptop:~$ g++ hw10.cpp
hw10.cpp:2:21: error: isostream: no such file or directory
hw10.cpp: in function ‘int main()’:
hw10.cpp:7: error: ‘cout’ not declared in scope

code in emacs window.

#include <isostream>
using namespace std;

int main()
{
cout << "hello world/n";
return 0;
}


emacs has nothing - it's "iostream", not "isostream".


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk C++ Emacs


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account