第一个Fedora12下QT Creator的控制台程序,FIle -> new file or project -> QT C++ Project -> QT Console Application

源码:

/*#include <QTextStream>

static QTextStream cout(stdout, QIODevice::WriteOnly);

int main(int argc, char *argv[])
{
    cout<<"Hello"<<endl;

    return 0;
}*/

#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
    cout<<"hello world"<<endl;
    printf("Hello, %d\n", 34);
    return 0;
}

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2021-03-30
  • 2021-10-31
  • 2021-06-21
  • 2021-04-05
  • 2022-12-23
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-08-03
  • 2021-08-12
  • 2021-10-27
  • 2022-12-23
  • 2022-01-30
相关资源
相似解决方案