#include<iostream>
#include<iomanip>
using std::cin;
using std::cout;
using std::cout;
using std::endl;
int main()
{
const int MAX(80);
char buffer[MAX];
int count(0);
cout<<"Enter a string of less than"
<<MAX<<"characters:\n";
cin.getline(buffer,MAX,'\n');
while(buffer[count]!='\0')
count++;
cout<<endl
<<"The string\""<<buffer
<<"\"has"<<count<<"characters.";
cout<<endl;
return 0;
}
没有合适的资源?快使用搜索试试~ 我知道了~
Reads-a-string.zip_vc++ 字符串_提出string字符
共39个文件
tlog:18个
manifest:2个
cpp:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 107 浏览量
2022-09-19
20:42:23
上传
评论
收藏 5.1MB ZIP 举报
温馨提示
读取字符串操作,对于在VC++环境下学习如何读取字符串操作,该代码是非常有帮助的。
资源推荐
资源详情
资源评论
收起资源包目录
Reads-a-string.zip (39个子文件)
读取字符串
读取字符串.sln 912B
读取字符串.sdf 5.64MB
读取字符串
读取字符串.vcxproj 4KB
读取字符串.vcxproj.user 143B
读取字符串.vcxproj.filters 950B
Debug
vc100.idb 219KB
读取字符串.log 3KB
CL.write.1.tlog 260B
reading char.obj 47KB
CL.read.1.tlog 10KB
mt.read.1.tlog 342B
rc.write.1.tlog 218B
读取字符串.lastbuildstate 54B
rc.read.1.tlog 314B
mt.command.1.tlog 340B
cl.command.1.tlog 610B
link-cvtres.read.1.tlog 2B
link.5172.write.1.tlog 2B
link.write.1.tlog 542B
读取字符串.exe.embed.manifest.res 472B
link.5172-cvtres.write.1.tlog 2B
link-cvtres.write.1.tlog 2B
读取字符串_manifest.rc 200B
link.command.1.tlog 1KB
rc.command.1.tlog 440B
link.read.1.tlog 3KB
link.5172.read.1.tlog 2B
mt.write.1.tlog 238B
link.5172-cvtres.read.1.tlog 2B
读取字符串.exe.intermediate.manifest 381B
vc100.pdb 252KB
读取字符串.exe.embed.manifest 406B
reading char.cpp 424B
读取字符串.suo 9KB
ipch
读取字符串-1e82b886
读取字符串-8b451d6c.ipch 15.69MB
Debug
读取字符串.pdb 571KB
读取字符串.ilk 362KB
读取字符串.exe 38KB
reading char.cpp 424B
共 39 条
- 1
资源评论
朱moyimi
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功