摘要:
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( 阅读全文
posted @ 2012-04-15 22:03
飞翔@骑士
阅读(109)
评论(0)
推荐(0)
摘要:
// 1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std ; int main(int argc, char* argv[]) { int number; char symbol; cout <<"Enter a number: "; cin >>number; cout <<"Enter a lette 阅读全文
posted @ 2012-04-15 21:23
飞翔@骑士
阅读(121)
评论(0)
推荐(0)
摘要:
使用换行输入来检查输入 阅读全文
posted @ 2012-04-15 21:14
飞翔@骑士
阅读(145)
评论(0)
推荐(0)


浙公网安备 33010602011771号