会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
74
75
76
77
78
79
80
81
82
···
186
下一页
2023年2月6日
C语言:填空题1
摘要: #include <stdio.h> //⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽ //交换两个整型变量的值 main() { int a,b; scanf("%d%d",&a,&b); printf("a=%d,b=%d\n"); a=⑴; b=⑵; a=⑶; printf("a=%d,b=%d\n"); getch
阅读全文
posted @ 2023-02-06 20:12 myrj
阅读(69)
评论(0)
推荐(0)
2023年2月1日
STATA基本命令
摘要: 文件路径命令命令1: pwd //显示当前工作路径 命令2: dir //显 示当前路径下所有文件/文件夹 命令3: cd“文件夹路径”//更改工作文件路径 use“文件名.dta" //从当前文件路径读入数据 use"文件名.dta" ,clear //删除当前数据, 并从当前工作路径下读入数据
阅读全文
posted @ 2023-02-01 14:29 myrj
阅读(1884)
评论(0)
推荐(0)
2023年1月26日
python :request忽略证书
摘要: import urllib3urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) #忽略警告 aa=requests.post(url,headers=head1,data=ap1,verify=False)
阅读全文
posted @ 2023-01-26 22:52 myrj
阅读(370)
评论(0)
推荐(0)
C语言:判断回文字符串
摘要: #include <stdio.h> #include <string.h> int fh(char ab[]) { int len=strlen(ab),a=0; for(a=0;a<=len;a++) if(ab[a]!=ab[len-a-1]) return 0; return 1; } ma
阅读全文
posted @ 2023-01-26 10:26 myrj
阅读(258)
评论(0)
推荐(0)
C语言:数字字符串转数字求和
摘要: #include <stdio.h> #include <string.h> main() { char zf[7],zfa[7]; int a=0,b=0,c=0,len1,len2; gets(zf); gets(zfa); len1=strlen(zf),len2=strlen(zfa); w
阅读全文
posted @ 2023-01-26 10:16 myrj
阅读(255)
评论(0)
推荐(0)
C语言字符串首字母大写
摘要: #include <stdio.h> #include <string.h> main() { char ch[100]; int i=0,n=0; gets(ch); while(ch[i]!='\0') { if(i==0) { if(ch[i]>='a'&& ch[i]<='z') ch[i]
阅读全文
posted @ 2023-01-26 08:06 myrj
阅读(171)
评论(0)
推荐(0)
C语言:scanf()输入多个字符串
摘要: #include<stdio.h> #include<string.h> #include <stdlib.h> //利用<string.h>中的strtok函数,缺点就是异常复杂,但是优点就是可以用各种字符来分割输入的字符串 int main(){ char num[100000];//定义字符串
阅读全文
posted @ 2023-01-26 07:39 myrj
阅读(1059)
评论(0)
推荐(0)
2023年1月24日
C语言:结构体指针
摘要: #include <stdio.h> main() { struct sk{ int a;float b; }data,*p; p=&data; data.a=10; printf("%d\n",(*p).a); printf("%d\n",p->a); getchar(); } #include
阅读全文
posted @ 2023-01-24 19:38 myrj
阅读(35)
评论(0)
推荐(0)
C语言:二维字符数组
摘要: #include <stdio.h> main() { char a[3][10]={"beijing","shanghai","tianjin"},*pa=a[0]; printf("%s\n",*(a+1)); printf("%s\n",a+1); printf("%s\n",*a+1); p
阅读全文
posted @ 2023-01-24 09:06 myrj
阅读(122)
评论(0)
推荐(0)
2023年1月22日
C语言:求大于指定整数的最接近的五个素数
摘要: #include <stdio.h> int sx(int n) { int a; for(a=2;a<n;a++) if(n%a==0) return 0; return 1; } void sxa(int b) { int c=1,a=b; while(c<=5) { a=a+1; if(sx(
阅读全文
posted @ 2023-01-22 21:22 myrj
阅读(95)
评论(0)
推荐(0)
上一页
1
···
74
75
76
77
78
79
80
81
82
···
186
下一页
公告