[ create a new paste ] login | about

Link: http://codepad.org/KZUF5nes    [ raw code | output | fork ]

C++, pasted on Sep 15:
1
2
3
4
5
6
7
8
9
10
11
class army 
{
    int number_suffix;
    string key;
    
    void enrollment(string name, int age)
    {key = name; number_suffix = age;}
    
    void retirement(string name, int age)
    {key = name; number_suffix = age;}
}


Output:
1
2
Line 10: error: expected unqualified-id at end of input
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: