Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. erxuan

    a simple question on string operation

    No, it doesn't work. When I compile it, it will say "cannot transfer const char * to char *" when it met char *pstr = string;
  2. erxuan

    a simple question on string operation

    when I implement the function char *strchr( const char *string, int c ); I got a problem. If I wrote like this: char *my_strchr(const char *string, int c) { while(*string && *string!=c){ string++; } return string; } I was told the string is const char*, and the return value is char*...
  3. erxuan

    Q: Write a function to print all of

    Q: Write a function to print all of the permutations of a string. A: I wrote a recursive function to fulfill this. I was wondering if there's a better way to do this? either simpler or having less Runtime... Thanks! #include <string.h> #include <iostream.h> /*Remove one character from str*/...

Part and Inventory Search

Back
Top