01.03.2011 - as a initial commit
This commit is contained in:
28
main.cpp
28
main.cpp
@@ -1,10 +1,26 @@
|
||||
#include "pip.h"
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
PIMathMatrix<3, 2> m0(1., 2., 3.,
|
||||
4., 5., 6.);
|
||||
PIMathMatrix<3, 2> m1(1., -2., 3.,
|
||||
-4., 5., -6.);
|
||||
m0 += m1;
|
||||
cout << m0 << endl;
|
||||
/*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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user