#include using namespace std; int main() { cout << "This is an integer constant: " << 1234 << "\n\n"; cout << "This is a Boolean constant: " << false << "\n\n"; cout << "This is a float-point constant: " << 12.34 << "\n" << "This is another floating-point constant: " << 1.45e-02 << "\n" << "This is another floating-point constant: " << 1200000.0 << "\n\n"; cout << "This is a character constant: " << 'a' << "\n\n"; cout << "This is a string constant: " << "Hello world." << "\n"; // These would cause compile-time errors // cout << "Here is the letter a: " << a << "\n"; // cout << Happy New Year << "\n"; cout << "\n\n"; system( "PAUSE" ); // This line is system dependent return( 0 ); }