29.07.2011 - fundamental new
This commit is contained in:
41
main.cpp
41
main.cpp
@@ -1,26 +1,21 @@
|
||||
#include "pip.h"
|
||||
#include <pip.h>
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
/*PIString s("I love Kusia! <3");
|
||||
PIByteArray c(s.data(), s.size());
|
||||
c.compressHuffman();
|
||||
cout << s << endl << c << endl;
|
||||
//c.decompressRLE(128);
|
||||
cout << c << endl;*/
|
||||
PIBitArray a(0xFFF00Fu);
|
||||
//cout << a << endl;
|
||||
a.setBit(31);
|
||||
cout << a << endl;
|
||||
a.push_back(true);
|
||||
cout << a << endl;
|
||||
a.push_front(true);
|
||||
cout << a << endl;
|
||||
a.push_front(false);
|
||||
cout << a << endl;
|
||||
a.pop_front();
|
||||
cout << a << endl;
|
||||
a.pop_front();
|
||||
cout << a << endl;
|
||||
a.pop_front();
|
||||
cout << a << endl;
|
||||
PIString s("sos№⚒№хуй"/*☢⚒SOŮ*/);
|
||||
/*cout << s << endl;
|
||||
cout << s.length() << endl;
|
||||
cout << s.stdWString().length() << endl;*/
|
||||
//system("cd /");
|
||||
PIProcess p;
|
||||
//p.setWorkingDirectory("/");
|
||||
//p.setEnvironmentVariable("PWD", "/");
|
||||
//cout << p.environment().join("\n") << endl;
|
||||
p.exec("cd");
|
||||
p.waitForFinish();
|
||||
|
||||
//cout << s << endl;
|
||||
/*wchar_t wc;
|
||||
cout << (int)(uchar)("№"[0]) << ", " << (int)(uchar)("№"[1]) << endl;
|
||||
cout << isascii("№"[0]) << endl;
|
||||
cout << mbtowc(&wc, "№", 4) << endl;*/
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user