#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;
// Function to remove the first word (up to first space or tab)
string TrimFirstWord(const string& input) {
size_t pos = input.find_first_of(" \t");
if (pos != string::npos)
return input.substr(pos + 1);
return input; // return original if no space or tab found
}
int main()
{
string s = "c++ c c# java php";
s = TrimFirstWord(s);
cout << s << endl;
return 0;
}
/*
run:
c c# java php
*/