1-
Code:
#include <iostream.h>
#include <string>

string S = "lalala";
string B = S.substr(1,2);
cout << B;
This syntax error... I want to make it display "la" for example
Can you show a good substring usage to me

Btw it said string isnt a type and substr isnt declared :/

2- I want a IntegerToString function please (think I can make one but want to know if there is a native or included-in-header one)
and StringToInteger (same content with other paranthesis)


Thanks for replies

(I use Dev-C++ btw)