string m ="kosala";
ui->label_5->setText(m);
This gives me :
string is undeclared identifier
I want to use string data type as in here without QString type. How can i do that?
string m ="kosala";
ui->label_5->setText(m);
This gives me :
string is undeclared identifier
I want to use string data type as in here without QString type. How can i do that?
You possibly forgot
#include<string>
And you should call the type std::string
.
std::string m ="kosala";