Search:

Type: Posts; User: Mirage

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    2,187

    you need to use 2 loops, right now you are...

    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...
  2. Replies
    2
    Views
    1,285

    You already made an identical thread:...

    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,...
  3. Replies
    5
    Views
    1,303

    thanks for the help, just wondering but you...

    thanks for the help,
    just wondering but you changed the pointer parameter to a reference for readability issues, right?
  4. Replies
    3
    Views
    1,890

    If the kid guesses wrong it will just exit the...

    If the kid guesses wrong it will just exit the program instead of letting them try again.
  5. Replies
    5
    Views
    1,303

    Thanks man I guess I never specified what to...

    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...
  6. Replies
    5
    Views
    1,303

    Unhandled exception

    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 &&...
Results 1 to 6 of 6