Using multiple classes in separate files?

Pages: 12
I tried:
1
2
3
4
5
6
7
8
9
10
void Forest::print(){

	for(int i = 0; i < 4; i++){
		for(int j = 0; i < 10; i++){
			cout << trees[10*i + j].getSymbol() << " ";
		}
		cout << '\n';
	}

}


and I got a really strange output of:

- - - - 8


... I have no idea how that happened haha
You're actually not using the right coordinates. Take a careful look at line 4 and the variable names you use.
Oh, whoops! That was silly.
Everything finally works!!!

Thank you so much for taking all this time to help me, Daleth! And especially for guiding me through, instead of changing my code for me. It was immensely helpful.
Topic archived. No new replies allowed.
Pages: 12