Search:

Type: Posts; User: 182

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Array question

    by 182
    Replies
    3
    Views
    860

    Array question

    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];
    ...
  2. Thread: syntax question

    by 182
    Replies
    6
    Views
    1,614

    Is it also known as a line terminator? Thanks.

    Is it also known as a line terminator?

    Thanks.
  3. Thread: syntax question

    by 182
    Replies
    6
    Views
    1,614

    syntax question

    hey guys I was just wondering what the following is called:

    '/0'

    Thanks.
  4. Thread: Array question

    by 182
    Replies
    4
    Views
    1,041

    Hi sorry for not being clear by word i mean say i...

    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?
  5. Thread: Array question

    by 182
    Replies
    4
    Views
    1,041

    Array question

    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.
  6. Thread: Array question

    by 182
    Replies
    4
    Views
    1,008

    Array question

    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...
  7. Replies
    1
    Views
    946

    programming theory question

    hi guys, I was just wondering if when using incremental development for programming is a design stage still involved?

    Thanks.
  8. Replies
    7
    Views
    1,397

    newbie variable question

    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.
  9. Thread: saving to a file

    by 182
    Replies
    6
    Views
    1,228

    Hi, thanks for the reply but what do you mean by...

    Hi, thanks for the reply but what do you mean by not standard? Thanks again
  10. Thread: saving to a file

    by 182
    Replies
    6
    Views
    1,228

    I was able to solve the problem using the...

    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.
  11. Thread: saving to a file

    by 182
    Replies
    6
    Views
    1,228

    saving to a file

    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...
  12. Thread: length (arrays)

    by 182
    Replies
    10
    Views
    1,614

    Hi Thanks for your advice that is what i have to...

    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...
  13. Thread: length (arrays)

    by 182
    Replies
    10
    Views
    1,614

    Was just doing a bit of research and found...

    Was just doing a bit of research and found strlen() couldnt this be used?
  14. Thread: length (arrays)

    by 182
    Replies
    10
    Views
    1,614

    length (arrays)

    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...
  15. Thread: file question

    by 182
    Replies
    4
    Views
    891

    Thanks for the advice guys, after looking up...

    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.
  16. Thread: file question

    by 182
    Replies
    4
    Views
    891

    file question

    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.
  17. Thread: code syntax help

    by 182
    Replies
    4
    Views
    1,098

    I'm tryng to say something like the following but...

    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++ ...
  18. Thread: code syntax help

    by 182
    Replies
    4
    Views
    1,098

    code syntax help

    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...
  19. Thread: Deleting a program

    by 182
    Replies
    5
    Views
    1,330

    When I look in the running processes it doesnt...

    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?
  20. Thread: Deleting a program

    by 182
    Replies
    5
    Views
    1,330

    Deleting a program

    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...
  21. Thread: Array question

    by 182
    Replies
    12
    Views
    1,939

    Thanks so how would you do this when using a...

    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;
  22. Thread: Array question

    by 182
    Replies
    12
    Views
    1,939

    Thanks for the replies so if I implement the code...

    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...
  23. Thread: Array question

    by 182
    Replies
    12
    Views
    1,939

    What is a segmentation error does that mean the...

    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?
  24. Thread: Array question

    by 182
    Replies
    12
    Views
    1,939

    Array question

    Hi guys I am just wondering is this the correct way to clear an array?

    Thanks





    for (int i =0; i < sizeof(array); i++)
    {
  25. Thread: syntax error

    by 182
    Replies
    3
    Views
    817

    syntax error

    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) ||...
Results 1 to 25 of 140
Page 1 of 6 1 2 3 4