/* Craig Persiko
firstVars.cpp
Demonstrates how to output integer variables
*/
#include <iostream>
using namespace std;
int main()
{
int num_students;
int class_cap = 40;
cout << "This class has an official capacity of: " << class_cap;
cout << "\nbut the number of students in the class is: ";
num_students = 50;
cout << num_students << "\n";
return 0;
}
/* Compilation and Output on hills:
[cpersiko@hills ~]$ g++ firstVars.cpp
[cpersiko@hills ~]$ a.out
This class has an official capacity of: 40
but the number of students in the class is: 50
[cpersiko@hills ~]$
*/
syntax highlighted by Code2HTML, v. 0.9