you need to use 2 loops, right now you are copying 2 characters into 1 place on the array,which you can't do.
And even if you could it would do something you don't want it to do
example of what...
Type: Posts; User: Mirage
you need to use 2 loops, right now you are copying 2 characters into 1 place on the array,which you can't do.
And even if you could it would do something you don't want it to do
example of what...
You already made an identical thread:
http://cboard.cprogramming.com/cplusplus-programming/133075-cplusplus-question-aboutbinary-tree.html
explanation of what a tree is:
Binary tree - Wikipedia,...
thanks for the help,
just wondering but you changed the pointer parameter to a reference for readability issues, right?
If the kid guesses wrong it will just exit the program instead of letting them try again.
Thanks man
I guess I never specified what to return, and that was the problem.
I've added a return NULL; right after the print statement but this opens up a new problem
now I have to do checks...
Here is the relevant code:
string getVal(vector<vector<string>> * matrix, int row, int col)
{
row--;//account for offsets
col--;
try
{
if(row >= 0 && col >= 0 && col < cols &&...