Atomic_Sheep
25th April 2014, 05:55
Hello, I'm trying to figure out how to get outputs to show within my console app:
#include <QtCore/QCoreApplication>
#include <QDebug>
char ConvertIntToChar(int iIntToConvert);
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
int nTimer = 123;
qDebug() << nTimer;
char cText = ConvertIntToChar(nTimer);
qDebug() << cText;
char *pcText = &cText;
qDebug() << *pcText;
}
char ConvertIntToChar(int iIntToConvert)
{
char cText[20];
sprintf("%d", cText);
return(*cText);
}
My compile output suggests that the program enters my build-desktop folder and then says:
mingw32-make[1]: Nothing to be done for `first'.
Not sure what that means but I'm certainly not getting anything showing in my console!
#include <QtCore/QCoreApplication>
#include <QDebug>
char ConvertIntToChar(int iIntToConvert);
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
int nTimer = 123;
qDebug() << nTimer;
char cText = ConvertIntToChar(nTimer);
qDebug() << cText;
char *pcText = &cText;
qDebug() << *pcText;
}
char ConvertIntToChar(int iIntToConvert)
{
char cText[20];
sprintf("%d", cText);
return(*cText);
}
My compile output suggests that the program enters my build-desktop folder and then says:
mingw32-make[1]: Nothing to be done for `first'.
Not sure what that means but I'm certainly not getting anything showing in my console!