CAN SOMEONE HELP ME!!? im using linux ubuntu
Im getting this error
fatal error: QTextStream: No such file or directory
#include "QTextStream"
#include <QDebug>
int main() {
int num1(1234), num2(2345) ;
cout << oct << num2 << '\t'
<< hex << num2 << '\t'
<< dec << num2
<< endl;
double dub(1357);
cout << dub << '\t'
<< forcesign << dub << '\t'
<< forcepoint << dub
<< endl;
dub = 1234.5678;
cout << dub << '\t'
<< fixed << dub << '\t'
<< scientific << dub << '\n'
<< noforcesign << dub
<< endl;
qDebug() << "Here is a debug message with " << dub << "in it." ;
qDebug("Here is one with the number %d in it.", num1 );
}
#include "QTextStream"
#include <QDebug>
QTextStream cin(stdin);
QTextStream cout(stdout);
QTextStream cerr(stderr);
int main() {
int num1(1234), num2(2345) ;
cout << oct << num2 << '\t'
<< hex << num2 << '\t'
<< dec << num2
<< endl;
double dub(1357);
cout << dub << '\t'
<< forcesign << dub << '\t'
<< forcepoint << dub
<< endl;
dub = 1234.5678;
cout << dub << '\t'
<< fixed << dub << '\t'
<< scientific << dub << '\n'
<< noforcesign << dub
<< endl;
qDebug() << "Here is a debug message with " << dub << "in it." ;
qDebug("Here is one with the number %d in it.", num1 );
}
To copy to clipboard, switch view to plain text mode
Bookmarks