C语言基础
阿辉学长
深度学习,人工智能
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
四则运算实现
(1)使用简单的C语句实现:要求不含左右括号,但是不限制10以内数据 #include #include #include char newstr[100]; int calculate1(char str[],int len) { int i=0,j=0,k=0,l=0,front=0,behind=0; int number1 = 0, number3 = 0,原创 2017-03-30 20:15:53 · 633 阅读 · 0 评论 -
字符串操作
求字符串长度: #include "stdio.h" #include "stdlib.h" #include "string.h" int mystrlen(char *fstr) { int num = 0; for(;*fstr != '\0';fstr++) { num++; } //while(*fstr != '\0') /原创 2017-03-22 10:30:29 · 298 阅读 · 0 评论 -
二级指针作为函数输入的三种实现方式:
#include "stdio.h" #include "stdlib.h" #include "string.h" //打印字符串内容 int PrintStr13(char ** Array, int n) {//第一种和第三种方式 int i = 0; for(i = 0; i < n; i++) { printf("%s\n",Array[i]); }原创 2017-04-27 19:05:35 · 584 阅读 · 0 评论
分享