1 Star 0 Fork 0

范敬文/cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
英文单词个数.cpp 297 Bytes
一键复制 编辑 原始数据 按行查看 历史
范敬文 提交于 2020-11-05 22:47 +08:00 . master
#include<iostream>
using namespace std;
int vNum(char *s,int n){
int a=1;
while(*(s+1)!='\0'|| *(s+2)!='\0'){
while(*s=='\0')a++;
}
return a;
}
int main(){
char s[100]="how are you what";
//cin.getline(s,100,'\0');
int n=vNum(s,100);
cout<<sizeof(s)<<endl;
cout<<n;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fan-jingwen/cpp.git
git@gitee.com:fan-jingwen/cpp.git
fan-jingwen
cpp
cpp
master

搜索帮助