首页 > 软件网络

cout << toupper(c);为什么打印时是一串数字?

时间:2017-06-11  来源:  作者:

cout << toupper(c);为什么打印时是一串数字?_问答_ThinkSAAS

2015年6月26日 - ; for(auto c: s19) { //输出大写形式 if(!ispunct(c) || !isspace(c)) { cout << toupper(c); } } 这样写打印时是一串数字。而如果像下面这样: ...

c++ - cout << toupper(c);为什么打印时是一串数字? - SegmentFault

2015年3月12日 - ; for(auto c: s19) { //输出大写形式 if(!ispunct(c) || !isspace(c)) { cout << toupper(c); } } 这样写打印时是一串数字。而如果像下面这样: ...

c++中toupper()的用法,怎么用啊??_百度知道

最佳答案: #include "iostream " #include "string " using namespace std; int main() { string s; int i; char c; cout < < "Enter a string (q to...更多关于cout &lt;&lt; toupper(c);为什么打印时是一串数字?的问

如何让 cout << toupper(c) 输出字符而不是数字?或者其他功能一样...

2016年4月17日 - 如何让 cout << toupper(c) 输出字符而不是数字?或者其他功能一样,简洁的方法。 顺便问一下为什么 toupper 的参数和返回值都是 int? 英文很烂,搜到了...

...toupper的问题while后为什么是1toupper是什么意思..._百度作业帮

coutflag;if(toupper(flag)=='Y'{cout.小川丽2014-11-28 扫二维码下载...那就要看你的程序了.toupper在这里是一个C函数,具体它是怎么用的,你要查专业...

C 第一至第八章课后习题答案(doc) - 道客巴巴

2015年8月14日 - 答:C++语言是从 C 语言发展而来的,C 语言是一种...cout<< setprecision(2) << 367 ...[i]=toupper(str[i]); } cout<<&quot...

...后面的程序,输入完成按回车也没用,怎么改?_百度知道

cout; using std::endl; using std::vector; int main() { vector<string>...采纳率:75% 来自团队:同闯天涯 擅长: C/C++ 数学 数据库DB Linux Windows ...更多关于cout &lt;&lt; toupper(c);为什么打印时是一串数字?的问题>>

C++vector元素的大小写转换_百度知道

最佳答案: change toupper(c); to c=toupper(c);更多关于cout &lt;&lt; toupper(c);为什么打印时是一串数字?的问题>>
来顶一下
返回首页
返回首页
栏目更新
栏目热门