[user02@FC4 Lesson08]$ cat -n first_if.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 cout << "Congratulations, you got an A!" << endl;
10
11 return 0;
12 }
[user02@FC4 Lesson08]$ g++ -o first_if first_if.cpp[user02@FC4 Lesson08]$ ./first_if
Congratulations, you got an A!
lesson_8_first_if.cpp, Rev. 1, Last changed on 2005-08-10 03:25, 285 page hits