- You should Google "Why you shouldn't use Dev-C++".
- More lines != less efficient
- String and integer are very different, so you have to convert it somehow, stringstream is one of ways. Even if other languages allow to simply put variable name in the string, internally it still does something similar to this.
You can create function that'll convert it:
template<typename T>
string to_string(T v) {
stringstream str;
str << v;
return str.str();
}