会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
HiRaAB
博客园
首页
新随笔
联系
订阅
管理
2021年5月1日
数组刷题
摘要: 1046. 打印方阵 (Standard IO) 题目描述 打印一个n*n的数字方阵,例如n=4时:(n<=100) 1 3 4 102 5 9 116 8 12 157 13 14 16 输入 输入n。 样例输入 4 输出 输出n*n的方阵。 样例输出 1 3 4 10 2 5 9 11 6 8
阅读全文
posted @ 2021-05-01 11:15 HiRaAB
阅读(54)
评论(0)
推荐(0)
2021年2月21日
字符串练习
摘要: s'daa #include <stdio.h> #include <string.h> #include <ctype.h> char s[10001]; int main() { while(scanf("%s",s)!=EOF); printf("%d",strlen(s)); return
阅读全文
posted @ 2021-02-21 11:52 HiRaAB
阅读(26)
评论(0)
推荐(0)
C++语言反转字符串的函数strrev(), reverse()
摘要: 1.使用string.h中的strrev函数 #include<stdio.h> #include<string.h> int main() { char s[]="hello"; strrev(s); puts(s); return 0; }
阅读全文
posted @ 2021-02-21 11:36 HiRaAB
阅读(77)
评论(0)
推荐(0)
2021年2月8日
递归
摘要: 刚开始学习递归的时候有点懵,老是不理解结束条件,后来看到一篇文章才开始掌握递归的思想 https://mp.weixin.qq.com/s/mJ_jZZoak7uhItNgnfmZvQ
阅读全文
posted @ 2021-02-08 20:48 HiRaAB
阅读(68)
评论(0)
推荐(0)
公告