Hello, I'm trying to figure out how to get outputs to show within my console app:
Code:
#include <QtCore/QCoreApplication> #include <QDebug> char ConvertIntToChar(int iIntToConvert); int main(int argc, char *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:
Not sure what that means but I'm certainly not getting anything showing in my console!Quote:
mingw32-make[1]: Nothing to be done for `first'.
