C++ (Qt)#include <QCoreApplication>#include <QDateTime>#include <QDebug> int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); QString str("1394790029894"); qint64 t = str.toULongLong(); QDateTime time; time.setMSecsSinceEpoch(t); qDebug() << time.toString(); return a.exec();}
typedef qint64 qlonglong;typedef quint64 qulonglong;
int main(){ char a; a = 128; printf ("%d", a); return 0;}
C++ (Qt)#include <QCoreApplication>#include <stdio.h> int main(int argc, char *argv[]){ QCoreApplication app(argc, argv); unsigned char a; a = 128; printf ("%d", a); return app.exec();}