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...
Type: Posts; User: cxs00u
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...
Hi,
I was wondering if there is a method that can empty a vector ??
Thank you for your help
Craig
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
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...
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[]){
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";...
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, ':' );
...
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...
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.
...