root/week1oplossing/Week1Oplossing.cpp
| 2 | 4 | ||
|---|---|---|---|
34 | 34 | ||
35 | void Week1Oplossing::GameStart() | 35 | void Week1Oplossing::GameStart() |
36 | { | 36 | { |
37 | for (int i=0;i<5;++i) | 37 | //for (int i=0;i<5;++i) |
38 | { | 38 | //{ |
39 | lijst1.push_back(i); | 39 | // lijst1.push_back(i); |
40 | } | 40 | //} |
41 | 41 | ||
42 | for (int i=5;i<10;++i) | 42 | //for (int i=5;i<10;++i) |
43 | { | 43 | //{ |
44 | lijst2.push_back(i); | 44 | // lijst2.push_back(i); |
45 | } | 45 | //} |
46 | 46 | ||
47 | for (int i=11;i<16;++i) | 47 | //for (int i=11;i<16;++i) |
48 | { | 48 | //{ |
49 | lijst3.push_back(i); | 49 | // lijst3.push_back(i); |
50 | } | 50 | //} |
51 | 51 | ||
52 | 52 | // | |
53 | lijst4 = lijst3+lijst2; | 53 | //lijst4 = lijst3+lijst2; |
54 | lijst4+=lijst1; | 54 | //lijst4+=lijst1; |
55 | 55 | ||
56 | lijst4 = lijst4; | 56 | //lijst4 = lijst4; |
57 | } | 57 | } |
58 | 58 | ||
59 | void Week1Oplossing::GamePaint(RECT rect) | 59 | void Week1Oplossing::GamePaint(RECT rect) |
... | ... | ||
70 | 70 | ||
71 | GAME_ENGINE->SetColor(RGB(0,0,0)); | 71 | GAME_ENGINE->SetColor(RGB(0,0,0)); |
72 | 72 | ||
73 | tstring temp; | ||
74 | temp = _T("lol "); | ||
73 | 75 | ||
74 | | 76 | GAME_ENGINE->DrawString(temp+Vector1PTR,100,10+(20*0)); |
75 | GAME_ENGINE->DrawString(Vector1PTR.ToString(),100,10+(20*0)); | ||
76 | GAME_ENGINE->DrawString(Vector2PTR.ToString(),100,10+(20*1)); | ||
77 | GAME_ENGINE->DrawString(Vector3PTR.ToString(),100,10+(20*2)); | ||
78 | GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*3)); | ||
79 | 77 | ||
80 | Vector4PTR = Vector1PTR+Vector2PTR; | 78 | // GAME_ENGINE->DrawString(Vector2PTR.ToString(),100,10+(20*1)); |
81 | GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*4)); | 79 | // GAME_ENGINE->DrawString(Vector3PTR.ToString(),100,10+(20*2)); |
82 | Vector4PTR = Vector1PTR + Vector3PTR; | 80 | // GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*3)); |
83 | GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*5)); | ||
84 | 81 | ||
85 | bool temp = Vector2PTR == Vector3PTR; | 82 | // Vector4PTR = Vector1PTR+Vector2PTR; |
86 | tstringstream temph; | 83 | // GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*4)); |
87 | temph << temp; | 84 | // Vector4PTR = Vector1PTR + Vector3PTR; |
88 | GAME_ENGINE->DrawString(temph.str(),100,10+(20*6)); | 85 | // GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*5)); |
89 | | ||
90 | | ||
91 | temph.str(_T("")); | ||
92 | 86 | ||
93 | temp = Vector2PTR == Vector1PTR; | 87 | // bool temp = Vector2PTR == Vector3PTR; |
94 | temph << temp; | 88 | // tstringstream temph; |
95 | GAME_ENGINE->DrawString(temph.str(),100,10+(20*7)); | 89 | // temph << temp; |
96 | 90 | // GAME_ENGINE->DrawString(temph.str(),100,10+(20*6)); | |
91 | // | ||
92 | // | ||
93 | // temph.str(_T("")); | ||
97 | 94 | ||
95 | // temp = Vector2PTR == Vector1PTR; | ||
96 | // temph << temp; | ||
97 | // GAME_ENGINE->DrawString(temph.str(),100,10+(20*7)); | ||
98 | // | ||
98 | 99 | ||
100 | |||
99 | 101 | ||
100 | 102 | ||
101 | 103 |
Download diff