Thanks.
I've made something like that
void Surface::write(const Set& st)
{
for (long i=0; i<st.size(); i++)
{
if (i%5 == 0) {
Main->appendPlainText(output);
output.clear();
}else{
output.
append(QString::number(st
[i
]) + ", ");
}
}
}
void Surface::write(const Set& st)
{
QString output;
for (long i=0; i<st.size(); i++)
{
if (i%5 == 0) {
Main->appendPlainText(output);
output.clear();
}else{
output.append(QString::number(st[i]) + ", ");
}
}
}
To copy to clipboard, switch view to plain text mode
and put it into set.cc (supporting class Set from set.h) and i've got an error:
/home
/matthew
/Dewsktop
/QT Project
/QT
-build
-desktop
/..
/QT
/Set.
cc:176: error
:no matching function
for call to ‘
QString::number(Surface
)’
/home/matthew/Dewsktop/QT Project/QT-build-desktop/../QT/Set.cc:176: error:no matching function for call to ‘QString::number(Surface)’
To copy to clipboard, switch view to plain text mode
What should i do to get rid of that error?
Bookmarks