摘要: #include <stdio.h> #include <string.h> #include <ctype.h> int main() { int longest_i(char * p); char str[1000]; gets(str);//输入 int max_i,i; max_i = lo 阅读全文
posted @ 2022-04-11 17:58 帅哥才 阅读(695) 评论(0) 推荐(0)
摘要: //求两个数的最大公约数 int a,b,t; scanf("%d%d", &a,&b); //保证a>b int sa = a,sb = b; if(b>a){ t = a; a = b; b = t; } while(a%b){ t = a%b; if(t){ a = b; b = t; } } 阅读全文
posted @ 2022-03-21 17:06 帅哥才 阅读(291) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> /* 一个整数的反置数指的是把该整数的每一位数字的顺序颠倒过来所得到的另一个整数。如果一个整数的末尾是以0结尾,那么在它的反置数当中,这些0就被省略掉了。比如说,1245的反置数54 阅读全文
posted @ 2022-03-20 23:50 帅哥才 阅读(69) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main(){ int i,j,k; //输出十行,ns表示上一行的数据,nx表示当前行的数据,ts表示计算当前行时的临时数据 int ns[11]={0},nx[11]={0},ts[11]={0}; //控制行数:0~9共十行 for (i = 0; 阅读全文
posted @ 2022-03-12 09:54 帅哥才 阅读(47) 评论(0) 推荐(0)
摘要: 打开git bash ssh -keygen -t rsa -C "lyc520052@163.com" //生产ssh密钥,会有两次可输入的地方,直接回车会使用默认的文件名 在C/User/username/.ssh下会生成两个文件 id_rsa 和 id_rsa.pub(公钥),将 id_rsa 阅读全文
posted @ 2019-06-26 19:18 帅哥才 阅读(428) 评论(0) 推荐(0)
摘要: 点击左上角文件-->新建文件 输入文件名加后缀,例如:a.html 然后鼠标点击空白处就ok了 阅读全文
posted @ 2018-12-03 09:52 帅哥才 阅读(1298) 评论(0) 推荐(0)
摘要: 简单常用的linux命令速记 客户端常用的连接服务器的工具:xshell5,WinSCP; xshell5: 1)目录操作:查看当前文件夹:ls 或 ll, 进入目录:cd /目录名(开始处加/表示从根路径开始找,进入当前目录下的位置起始处不用加/); 2)新建目录:mkdir 文件名; 删除文件夹 阅读全文
posted @ 2018-10-30 20:42 帅哥才 阅读(716) 评论(0) 推荐(0)
摘要: 博客园“占座位” 因为学习专业的原因,经常浏览博客学习和解惑。在前辈们的作品中学到了很多,也感受到了很多。通过博客的方式去分享知识和记录自己的成长。这种积极向上的,乐于分享的精神,让我很受鼓舞。我时刻准备着加入这一大军的行列。于是我就注册了个账号,呵呵。 第一篇博客 经常会突发奇想的计划着怎么怎么样 阅读全文
posted @ 2018-10-28 19:42 帅哥才 阅读(265) 评论(0) 推荐(0)