C++,让我最蛋的程序

为什么蛋,不解释!!!!!!!!!!!!!!!!

#include <QtCore/QCoreApplication>

#include <QDebug>
 
 
int changeName(QString &name);
 
 
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
 
 
    QString name = "name";
    changeName(name);
    qDebug() << name;
    return a.exec();
}
 
 
int changeName(QString &name){
    name = "changedName";
    return 0;
}
 

你可能感兴趣的:(C++,让我最蛋的程序)