29.07.2011 - fundamental new

This commit is contained in:
peri4
2011-07-29 08:17:24 +04:00
parent b21a0496cd
commit 29190ea465
49 changed files with 4704 additions and 1052 deletions

View File

@@ -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;*/
};