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>
Type: Posts; User: jccharl
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>
post your program or at least the part that you believe is causing the crash
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
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...
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...
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...
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
...
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...
I think the probelm is you have not declared number as an 2D array and possibly you have not declared new int as well.
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...
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...
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...