13 years, 10 months ago
Highlights
How would those lines work? map[(y * 5) + x] = ... seems like y is pointing to 5, which would just slow things down by the looks of it. And: for (int i=0; i<25; ++i) std::cou…
13 years, 10 months ago
13 years, 10 months ago
int map[5][5] = { 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 2, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1 }; int column = 0; int column2 = 0; ()void print_map() void print_map() { for (column…
13 years, 10 months ago
// more pointers #include <iostream> using namespace std; int main () { int firstvalue = 5, secondvalue = 15; int * p1, * p2; p1 = &firstvalue; // p1 = address of firs…
13 years, 10 months ago
I'm just going to get straight to the point: Using "cout", I can get text, then a variable, then some more text. I wondered if I could replicate that into a string…
13 years, 10 months ago
Latest Activity
See all in DiscussionsHow would those lines work? map[(y * 5) + x] = ... seems like y is pointing to 5, which …
13 years, 10 months ago
Thanks. 1+ rep for you again.
13 years, 10 months ago
Oh, I understand now, thanks. EDIT: I'm getting an error in this code: #include <iostream> using namespace std; int map[5][5] …
13 years, 10 months ago