hey guys just wondering if when you put a word in a character array is this still classed as dealing with a character string?
for example
if i had a char array which was char example [100];
...
Type: Posts; User: 182
hey guys just wondering if when you put a word in a character array is this still classed as dealing with a character string?
for example
if i had a char array which was char example [100];
...
Is it also known as a line terminator?
Thanks.
hey guys I was just wondering what the following is called:
'/0'
Thanks.
Hi sorry for not being clear by word i mean say i had a char array which was char example [100];
and it contained "hello" would hello be classed as a string even though its in a char array?
hey guys just wondering if when you put a word in a character array is this still classed as dealing with a character string?
thanks.
Hey guys I was just wondering when entering data into a char array for example using getline and someone input the following:
"this is a test"
and then in the same array using the getline...
hi guys, I was just wondering if when using incremental development for programming is a design stage still involved?
Thanks.
Hey guys, i was just wondering are constants still refered too as variables?
I was also wondering if there such as think as const arrays and if they are commonly used?
thanks.
Hi, thanks for the reply but what do you mean by not standard? Thanks again
I was able to solve the problem using the ios:noreplace and it returns fail if there is a problem, is this a good way to do it?
Thanks.
Hey guys is there a way i could inform the user if a txt file already exists when they enter the file name e.g. c:\\hi.txt so it won't get over written in my program the saved results are handeled by...
Hi Thanks for your advice that is what i have to do but if in teh array there was a middle name for example "john james smith" how can this find the surname if your not sure if all people will have a...
Was just doing a bit of research and found strlen() couldnt this be used?
Hey guys, is there a length function I could use to work out the length of some things in a char array for example if in the array it held, "john smith" and I wanted to find out how many chars are in...
Thanks for the advice guys, after looking up ofstream I have found out that the old style header fstream.h creates the file and using ios:: out clears the file.
Hey guys just wondering if there are two simple commands in c++ to create a file and clear a file of all its contents?
Thanks.
I'm tryng to say something like the following but cant get the right syntax for it:
if(ch=strstr "hello", ch, array) !=0 )&& ch == array || isspace(*(ch-1)))
{
count++
ch++ ...
Hey guys, I have the following two pieces of code and I am trying to combine them so it will say if hello is found and it is at the start or the prevous character is whitespace then add one to the...
When I look in the running processes it doesnt appear to be there, how come the system would lock it, or could it be a pointer fault?
Hey guys after I run a program I have created and I try to delete the file it is in I get the message:
"access is denied make sure the disk is not full or wrute protected and that the file is not...
Thanks so how would you do this when using a pointer such as the following or with a pointer is it ok to use sizeof (array)?
const int no=10;
char array[no];
char *ptr = array;
Thanks for the replies so if I implement the code as follows:
Would this also cause the error if for example only 2 elements of the array index have been used?
const int size=1000;
char...
What is a segmentation error does that mean the loop is just taking longer or does it mean it will cause an error in the program?
Hi guys I am just wondering is this the correct way to clear an array?
Thanks
for (int i =0; i < sizeof(array); i++)
{
hey guys, I am using the following code to count from a text file but I also want to check for ",jo " as well as "jo " I was trying to do it by using while((ch = strstr( ch, "jo ")) != 0) ||...