PS 1 A short problem sheet this week!

  1. In a terminal type emacs Hello.cpp & to open a new file and type into it the hello world programme:
    #include
    #include
    
    using namespace std;
    
    int main()
    {
    	cout<<"Someone must have been spreading false rumors"<<endl;
    }
    
    Save it using ^x^s and in the terminal window compile it using g++ Hello.cpp and run it using ./a.out. If you would prefer to use a different editor, that's fine. You can close emacs with ^x^c. Play around with emacs and the programe a bit, for example, try
    	cout<<"Someone must have been spreading false rumors\n";
    
    instead. What is the role of the \n?