字符串长度
来源:互联网 发布:淘宝主图尺寸大小 编辑:程序博客网 时间:2024/05/01 19:44
/** Copyright (c) 2013, 烟台大学计算机学院* All rights reserved.* 作 者:马广明* 完成日期:2013 年 12 月 24 日* 版 本 号:v1.0* 输入描述: 无* 问题描述:用指针统计字符串长度*/#include <iostream>#include <string.h>#include <cstdio>using namespace std;int pstrlen(char *str){ int n=strlen(str); return n;}int main(){ int l; char str[50],*p; p=str; gets(str); l=pstrlen(p); cout<<"字符串长度为:"<<l<<endl; return 0;}
0 0
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 字符串长度
- 获取字符串长度、字符长度、字节长度
- 获取字符串长度、字符长度、字节长度
- 【字符串】字符串拷贝和长度
- 正则字符串长度分割字符串
- 今天平安夜呢
- 第十七周 谁是小偷
- magento 的select类型(dropdown)的赋值方法
- 好卡呀
- Spring 3 MVC Framework Based Hello World Web Application Example Using Maven, Eclipse IDE And Tomcat
- 字符串长度
- 【Code Style】每个模块拥有一个单元测试
- 平安夜去问别人要苹果去
- ffmpeg在windows下编译
- CRM上线之路 走上了CRM实施顾问-第99天上班 -第21周 .
- Google Test框架中的Makefile
- Wince下 写文件
- [RBP]RaspberryPi系列之五:RBP as a streaming server (二)
- myEclipse关闭但是进程没关闭如何解决