User profile: Nikko YL

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

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?

Function matching and Argument-dependent lookup
[code]#include <iostream> #include <string> std::ostream& operator<<(std::ostream& os, const std...