上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 181 下一页
摘要: #include <stdio.h> //任意整型数组,由连续几个数组成,少其中一个数,利用程序求出少得数 main() { int a[5]={0,2,4,1},x=0,i; for(i=0;i<4;i++) x^=a[i]; for(i=0;i<=4;i++) x^=i; printf("%d" 阅读全文
posted @ 2023-02-06 21:11 myrj 阅读(22) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 文件路径命令命令1: pwd //显示当前工作路径 命令2: dir //显 示当前路径下所有文件/文件夹 命令3: cd“文件夹路径”//更改工作文件路径 use“文件名.dta" //从当前文件路径读入数据 use"文件名.dta" ,clear //删除当前数据, 并从当前工作路径下读入数据 阅读全文
posted @ 2023-02-01 14:29 myrj 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: import urllib3urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) #忽略警告 aa=requests.post(url,headers=head1,data=ap1,verify=False) 阅读全文
posted @ 2023-01-26 22:52 myrj 阅读(346) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(161) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> #include <stdlib.h> //利用<string.h>中的strtok函数,缺点就是异常复杂,但是优点就是可以用各种字符来分割输入的字符串 int main(){ char num[100000];//定义字符串 阅读全文
posted @ 2023-01-26 07:39 myrj 阅读(737) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(73) 评论(0) 推荐(0) 编辑
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 181 下一页