#include <iostream>#include <string> int main() { std::string nick = "123"; std::cout << nick.substr(0, 1); return 0;}
Standard input is empty
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!