C and C++ Programming Resources | C & C++ Code Example Index

 

 

 

 

The C++ Character and Strings Sample Codes Index Page

 

The following links provide the C++ program examples on the C++ characters and strings manipulations using the Standard Template Library C++ char_traits and basic_string classes.

 

C++ Character and Strings Code Samples

  1. The C++ wstring type, the wide character string program example

  2. The char_traits, copy() method C++ program example

  3. The char_traits, _Copy_s() method C++ program example

  4. The C strspn() function used in C++ program example as the C++ wrapper

  5. Using the strtok()/strtok_s() C function in C++ code program example

  6. The C++ char_traits, to_char_type(), to_int_type and eq() program example

  7. The char_traits, not_eof(), to test whether a character is not the end-of-file (EOF) character or vice versa C++ code sample

  8. The C++ char_traits class member functions: move()/ _Move_s(), find() and length() C++ program example

  9. The C++ char_traits class member function: lt(), to test whether one character is less than another C++ program example

  10. The C++ char_traits class member, length() program example

  11. The C++ char_traits member function, find() to search a string in a forward direction for the first occurrence of a substring that matches a specified sequence of characters program example

  12. The C++ char_traits, eq_int_type() and to_int_type() class member functions program example

  13. The C++ char_traits class member, eq() program example

  14. The char_traits, eof() member function C++ program example

  15. The char_traits class member, compare() C++ program example

  16. The basic_string member class, assign() C++ program example

  17. The substr() member function of the basic_string C++ program example

  18. The basic_string class member, reversed find, rfind() part II program example

  19. The C++ basic_string class member reversed find, rfind() function part I program example

  20. The C++ basic_string class member, resize() and size() program example

  21. The C++ basic_string class member, reserve() program example

  22. The C++ basic_string class member, replace() part II code example

  23. The C++ replace() function, the basic_string class member code sample part I

  24. The C++ rbegin() and rend() program example

  25. The C++ push_back() program example

  26. The C++ insert() program example part II

  27. The C++ insert() program example part I
  28. The C++ allocator() program example
  29. The C++ get_allocator() program example
  30. The C++ find_last_of() member function program example part II
  31. The C++ find_last_of() program example part I
  32. The C++ find_last_not_of() program  example part II
  33. The C++ find_last_not_of() program example part I
  34. The C++ find_first_of() code sample part II
  35. The C++ find_first_of() member function program example part I
  36. The C++ find_first_not_of() member function code example part II
  37. The C++ find_first_not_of() program example part I
  38. The C++ find() member function code  example part II
  39. The C++ find() member function program example part I
  40. The C++ erase() function program example
  41. Another C++ begin() and end() member function program example
  42. The C++ empty() member function program example
  43. The C++ data(), length(), strlen() and c_str() program example
  44. The C++ copy() member function program example
  45. The C++ _Copy_s() (safer version) member function program example
  46. The C++ compare() member function code sample part II
  47. The C++ basic_string class compare() member function program example part I
  48. The C++ clear() member function program example
  49. The C++ capacity(), size(), erase(), length(), max_size() basic_string member functions program example
  50. The C++ c_str(), length(), data() and strlen() member function program example

 

  1. The C++ basic_string begin() and end() member function program example
  2. The basic_string string class constructor C++ program example
  3. The C++ at() member function program example
  4. The C++ assign() program example
  5. The C++ append() program example
  6. The C++ getline() member function program example
  7. The C++ swap() member function program example
  8. Concatenating using the C++ "+" (plus) operator program example
  9. Insertion (<<) and extraction (>>) operators C++ program example
  10. The C++ >= and <= operators for string program example
  11. The C++ < and > operators for string comparison program example
  12. The C++ == and != operators for string comparison program example
  13. The C++ basic_string class constructor program example
  14. The C++ char (string) and wchar_t (wstring) types usage program example

 

C and C++ Programming Resources | C & C++ Code Example Index | C Code Example Index