ittam

progetti qt

Apr 28th, 2020
540
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <QFile>
  2. #include <QDebug>
  3.  
  4.    QFile f("/home/luca/luca.dat");
  5.     f.open(QIODevice::WriteOnly | QIODevice::Append);
  6.     QDataStream out(&f);
  7.     out<<quint16(270);
  8.     f.close();
  9.  
  10.     QFile g("/home/luca/luca.dat");
  11.     g.open(QIODevice::ReadOnly);
  12.     QDataStream in(&g);
  13.     qint16 letto;
  14.     in >> letto;
  15.     qDebug() << letto;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×