Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

//Tiffany Robins //CSCI 152 //February 1,2012 //Program 1 Hello World #include <

ID: 3637875 • Letter: #

Question




//Tiffany Robins
//CSCI 152
//February 1,2012
//Program 1 Hello World

#include <iostream>
using namespace std;

int main ( )
{
cout << "Hello World!" << endl << endl;
cout << "This is my first C++ program." << endl;
cout << "The sum of 2 and 3 = " << 5 << endl;
cout << "7 + 8 = " << 7 + 8;
cout << endl << endl;
system ("pause"); // for the Dev compiler - Windows systems only
// or cin.get(); //works for Windows, Linux, or Mac
return 0;

}
i'm trying to also add "Everything takes longer than it takes" to print to the screen but i keep getting error message expected constructor destructor or type conversion before token

Explanation / Answer

please rate - thanks

sounds like you were putting it in the wrong place


//Tiffany Robins
//CSCI 152
//February 1,2012
//Program 1 Hello World

#include <iostream>
using namespace std;

int main ( )
{
cout << "Hello World!" << endl << endl;
cout << "This is my first C++ program." << endl;
cout << "The sum of 2 and 3 = " << 5 << endl;
cout << "7 + 8 = " << 7 + 8;
cout << endl << endl;
cout<<"Everything takes longer than it takes"<<endl;
system ("pause"); // for the Dev compiler - Windows systems only
// or cin.get(); //works for Windows, Linux, or Mac
return 0;

}