I am admittedly a newbie, but working on amending that. My newest learning experience is something that has frustrated me in the past, but now I find something fantastic and .... can't make it work!
Trying to use the type
by using
by using the following code (straight from my class textbook,
Alternate Version of Starting Out With C++ 4th Edition) with gcc v3.2.3:
Code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string movieTitle;
movieTitle = "Wheels of Fury";
cout << "I like " << movieTitle << endl;
return 0;
}
When I try and compile I get:
C++/test.cpp:10:2: warning: no newline at end of file
It compiles, and creates the executable, which when ran displays nothing. Why is it not displaying the output as I would expect: