编程练习
乐行僧丶
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
统计文章中单词个数
#include<stdio.h> #include<assert.h> int fun(const char* str) { assert(str != NULL); const char* p = str; int count = 0;//计数器 while(*p != '\0') { if(*p != '...原创 2018-06-17 23:44:29 · 990 阅读 · 0 评论 -
将N阶二维数组的右上三角部分的数字乘以m(整数)
#include<stdio.h> #define N 3 void fun(int arr[][N],int m) { for(int i = 0;i < N;++i) { for(int j = 0;j <= i;++j) { arr[j][i] *= m; } } } ...原创 2018-06-19 10:34:04 · 4160 阅读 · 0 评论 -
随机点名程序实现
代码:test.cpp #include&amp;amp;lt;ctime&amp;amp;gt; #include&amp;amp;lt;cstdlib&amp;amp;gt; #include&amp;amp;lt;string&amp;amp;gt; #include&amp;amp;lt;iostream&amp;amp;gt; using namespace std原创 2018-08-14 16:34:34 · 4221 阅读 · 0 评论
分享