[user02@FC4 Lesson08]$ cat -n compound.cpp
1 #include <iostream>
2 using namespace std;
3
4 int main()
5 {
6 int test_score = 95;
7
8 if (test_score >= 90)
9 {
10 cout << "Congratulations, you got an A!" << endl;
11 cout << "Your test score was " << test_score << endl;
12 }
13
14 return 0;
15 }
[user02@FC4 Lesson08]$ g++ -o compound compound.cpp[user02@FC4 Lesson08]$ ./compound
Congratulations, you got an A!
Your test score was 95
lesson_8_compound.cpp, Rev. 1, Last changed on 2005-08-10 03:26, 318 page hits