Search:

Type: Posts; User: jccharl

Search: Search took 0.00 seconds.

  1. Thread: Memory Issues

    by jccharl
    Replies
    12
    Views
    1,810

    okay try this, make your varibles arrays such...

    okay try this, make your varibles arrays

    such as char name[50];

    and

    make sure you have at the top of your program

    #include<string.h>
  2. Thread: Memory Issues

    by jccharl
    Replies
    12
    Views
    1,810

    post your program or at least the part that you...

    post your program or at least the part that you believe is causing the crash
  3. Thread: Memory Issues

    by jccharl
    Replies
    12
    Views
    1,810

    when you are storing a string it is better to use...

    when you are storing a string it is better to use the first method becuase if you ever want to change a string or find the length, etc it will be easier to do
  4. Thread: Memory Issues

    by jccharl
    Replies
    12
    Views
    1,810

    umm, you could try using strcpy (string copy) to...

    umm, you could try using strcpy (string copy) to set your array, becuase just doing this array[5000] = "this " will not work and that could be causing your program to crash becuase if have any other...
  5. Replies
    10
    Views
    2,933

    the reason why you are not getting output is...

    the reason why you are not getting output is because your cout statement does not have a end line command, so everything that you want to output is still in the output buffer and it never goes to the...
  6. Replies
    15
    Views
    3,095

    one more thing i forgot, take out the continue,...

    one more thing i forgot, take out the continue, it is considered bad programming habit, and you should never use it cause you can write loops such as a for, while or do while that can control your...
  7. Replies
    15
    Views
    3,095

    oh i forgot one more thing when you are using the...

    oh i forgot one more thing when you are using the rand function you have to do following

    at the top of your program put

    #include <time.h>

    and before you call the rand() put
    ...
  8. Replies
    15
    Views
    3,095

    you if statement is the probelm it should read ...

    you if statement is the probelm it should read
    if(x < 50 && x > 1)

    when you want to have a number in a ceratain range you need to have and instead of or cause if the first part of your or...
  9. Replies
    9
    Views
    1,306

    I think the probelm is you have not declared...

    I think the probelm is you have not declared number as an 2D array and possibly you have not declared new int as well.
  10. Replies
    2
    Views
    1,539

    overloaded operators

    Here is the function header

    const char* operator+=(const char [])

    What I am having trouble with is, I need to return to array that this function receieves as an argument, so i need to return...
  11. Replies
    6
    Views
    1,255

    change your for statement to read ...

    change your for statement to read

    for(count=0;count<days;count++)
    beacuse I think the ++ before count is causing a problem

    and when you want to clear the keyboard buffer, if I understand your...
  12. Replies
    1
    Views
    1,067

    accessing varible in a c++ class

    I have a program that is trying to access a varible from a class in a porgram. For example

    the varible customer is my Account.h file and in my Bank.h I have another varible called Account...
Results 1 to 12 of 12