qt中怎么调用子函数

2025-02-27 15:27:44
推荐回答(1个)
回答1:

该怎么用就怎么用.

#include 
#include
#include
using namespace std;
void heihei(){
cout << "hello"<}
/* Some simple examples using QStringList, split and join */
int main() {
    QString str("world");
    QTextStream stream(stdout);
    heihei();
    stream << str << '\n';
    return 0;
}