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