|
| 1 | +// the entry point for the console application. |
| 2 | +// |
| 3 | + |
| 4 | +#include <iostream> |
| 5 | +#include <iomanip> |
| 6 | +//#include <thread> |
| 7 | +//#include <chrono> |
| 8 | +//#include <mutex> |
| 9 | +#include "Greet.h" |
| 10 | +#include "tests\Test01.h" |
| 11 | +#include "tests\Test02.h" |
| 12 | +#include "tests\Test03.h" |
| 13 | +#include "FileWordsCounter\FileWordsCounter.h" |
| 14 | + |
| 15 | +using namespace std; |
| 16 | + |
| 17 | +int main(int argc, char* argv[]) { |
| 18 | + Test01 test01; |
| 19 | + //test01.testStringTypes(); |
| 20 | + test01.testStringUtils(); |
| 21 | + //test01.testPtrsBasics(); |
| 22 | + //test01.testRefsBasics(); |
| 23 | + //test01.testLoops(); |
| 24 | + //test01.testArraySorter(); |
| 25 | + //test01.testQuicksort(); |
| 26 | + //test01.testByteOrder(); |
| 27 | + //test01.testBitShift(); |
| 28 | + //test01.testBitMasks(); |
| 29 | + //test01.testTArray2(); |
| 30 | + //test01.testFileIO(); |
| 31 | + //test01.testIsSameClass(); |
| 32 | + |
| 33 | + //Greet greeter; |
| 34 | + //greeter.sayHello(); |
| 35 | + |
| 36 | + //HelloContainers myContainers; |
| 37 | + //myContainers.helloVector(); |
| 38 | + |
| 39 | + |
| 40 | + Test02 test02; |
| 41 | + /* |
| 42 | + test02.testInheritanceInStack(); |
| 43 | + test02.testInheritanceInHeap(); |
| 44 | + test02.testCpp11(); |
| 45 | + test02.testInheritanceInHeap2(); |
| 46 | + test02.testCpp11unique_ptr(); |
| 47 | + test02.testCpp11unique_ptr_Move(); |
| 48 | + test02.testCpp11shared_ptr1(); |
| 49 | + test02.testCopy(); |
| 50 | + test02.testAssignment(); |
| 51 | + test02.testMove(); |
| 52 | + */ |
| 53 | + test02.testCopyAssign(); |
| 54 | + |
| 55 | + //testThread(); |
| 56 | + //testThreads(); |
| 57 | + //testDeadlockThreads(); |
| 58 | + //testTruckloadList(); |
| 59 | + |
| 60 | + Test03 test03; |
| 61 | + //test03.testTruckloadList(); |
| 62 | + test03.testBinaryTree(); |
| 63 | + test03.testArrayFloorSearch(); |
| 64 | + |
| 65 | + //FileWordsCounter wordsCounter("C:\\temp\\2489.txt"); |
| 66 | + //wordsCounter.startCount(); |
| 67 | + //wordsCounter.showTopBySort(20); |
| 68 | + |
| 69 | + cout << endl; |
| 70 | + cout << "Q or q key to quit..."; |
| 71 | + char chWait; |
| 72 | + cin >> chWait; |
| 73 | + |
| 74 | + return 0; |
| 75 | +} |
0 commit comments