hi,
Is there any standard function(or way) to get the first letter of a given string?
I tried splitting the string, but that didnt work..
QStringList lineList
=line.
split("");
//the "line", i read it before from a file std::cout<<"the first word of the line :"<<lineList.at(0).toStdString()<<endl;
QStringList lineList=line.split(""); //the "line", i read it before from a file
std::cout<<"the first word of the line :"<<lineList.at(0).toStdString()<<endl;
To copy to clipboard, switch view to plain text mode
If anybody knows, plz tell me...
Thank u
Bookmarks