Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as C++ by registered user raphael ( 3 years ago )
#include <QCoreApplication>
#include <QDateTime>
#include <QDebug>

void fonctionQT(QDateTime time, int nb_jours){
    qDebug()<<time.addDays(nb_jours);
}
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QDateTime madate = QDateTime::currentDateTime();
    fonctionQT(madate,50);
    return a.exec();
}

 

Revise this Paste

Your Name: Code Language: