字符操作函数

  strcpy(aCString,stringVariable.c_str() );    //合法 

  aCString = stringVariable.c_str();    //非法 赋值操作符不能用作C字符串

  字符操作函数  //#include <cctype>

  ispunct(Char_Exp)  //标点符号

  /*  函数toupper和tolower返回int类型  */

  char c = toupper('a');

  cout << c <<endl;

  cout << static_cast<char>(toupper('a') ) <<endl;

原文地址:https://www.cnblogs.com/frank2008syj/p/2450852.html