User profile: Nikko YL

User info
User name:Nikko YL
History
Joined:
Number of posts:76
Latest posts:

Overloading operators to accept array of objects
I think your Student definition including the operators overloaded does not cause the error. Instead...

Convert str to int.
or: [code]string str = "123"; int i = stoi(str);[/code]

how to merge and order arrays
Here I assume you are not learning algorithms about sorting. After copying those elements into merg,...

const confusion
As the compiler said: [quote]In member function 'int counter::inspect() const': 22:13: error: passin...

Function matching and Argument-dependent lookup
As I see in the reference, the operator<< function defined in <string> is not template, isn't it?