Search:

Type: Posts; User: cxs00u

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,585

    searching a string for mulitple characters

    hi,

    I am writting a program which has to search through strings. Up until now I have been using the code

    string.find_first_of("a")

    for example. The problem now is that I now need to search...
  2. Replies
    1
    Views
    1,211

    emptying a vector

    Hi,

    I was wondering if there is a method that can empty a vector ??

    Thank you for your help

    Craig
  3. Replies
    8
    Views
    1,109

    converting a string to upper case

    hi,

    I was just wondering if there was a simple way of converting a string to all capital letters ??? eg a single for loop .... ?????

    Thank you for your time

    Craig
  4. Replies
    5
    Views
    2,447

    Switch statements for strings

    Hi,

    I am trying to use a switch statements for strings but it is not working is there any other method I could use ?? . ( I am trying to avoid using lots of if, else statements )

    Thank you in...
  5. how do I declare a function that returns a char array

    I am using a function that returns a character array but I don't know how to declare the fuction.

    Can anyone help please ??

    Thank you very much

    eg :

    char test(char e[]){
  6. Replies
    2
    Views
    4,120

    removing a character from a char array

    hi,

    I was wondering how I could look through a char array and remove any white space characters I found. eg if I a had a char array of

    char buffer[] = "hell o";

    I could modify it to "hello";...
  7. Replies
    4
    Views
    3,124

    I was hoping that there was a simpler way of...

    I was hoping that there was a simpler way of doing that because I am splitting up a big file into 6 sections eg:

    while (! fin.eof() )
    {

    fin.getline(buffer,30, ':' );
    ...
  8. Replies
    4
    Views
    3,124

    White space problems in file input

    Hi,

    I am currently using the

    fin.getline(buffer,30, ':' );

    to read in part of a file upto a colon, where fin is the input file .

    However I want to ignore white spaces so that if the...
  9. Replies
    1
    Views
    1,830

    Positive integers

    HI,

    I am relativly new to c ++ and was wondering if there was a function that I could use that will always return a positive integer. For example if I did 1- 5 it would return 4 instead of -4.
    ...
Results 1 to 9 of 9