codice:#include <string> int main() { string s = "asjkhasdlgbajshakshg%endaskjhaslkjdgja"; cout << s.substr( 0, s.find( "%end" ) ) << '\n'; return 0; }
codice:#include <string> int main() { string s = "asjkhasdlgbajshakshg%endaskjhaslkjdgja"; cout << s.substr( 0, s.find( "%end" ) ) << '\n'; return 0; }