摘要:
源程序: #include <iostream> #include <string> using namespace std; class myDate { public: myDate(); myDate(int); myDate(int,int); myDate(int,int,int); vo 阅读全文
posted @ 2019-12-06 17:46
bobo哥
阅读(196)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h>#define M 6int wnn1(int *,int,int);void wnn2(int *,int); void main(){ int i,x,n,t,s[M+1]={10,15,18,24,29,35}; printf("原数组为:\n") 阅读全文
posted @ 2019-12-06 09:38
bobo哥
阅读(1994)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h> // 将src中奇数放入dst中,并返回奇数个数int getOdd(int *dst, const int *src, int srcLen){ int len = 0; for (int i = 0; i < srcLen; i++) if (sr 阅读全文
posted @ 2019-12-06 09:34
bobo哥
阅读(3724)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h>void main(){ int i,n,str[10]={0};char ch; printf("请输入一串数字字符:"); while((ch=getchar())!='\n') { if(ch=='0') str[9]++; else if(ch> 阅读全文
posted @ 2019-12-06 09:33
bobo哥
阅读(2381)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h>#include <stdlib.h>#define M 6#define N 5void getdata(int(*)[M]);void lineave(int[][M],float *);void outdata(int [N][M],float * 阅读全文
posted @ 2019-12-06 09:29
bobo哥
阅读(646)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h> int mead(int *a,int *b){ int sum; sum=*a + *b; return sum;} int main(){ int x,y; int *p=&x,*q=&y; int s; printf("请输入两个整数:"); s 阅读全文
posted @ 2019-12-06 09:22
bobo哥
阅读(762)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h> int mead(int *a,int *b){ int sum; sum=*a + *b; return sum;} int main(){ int x,y; int *p=&x,*q=&y; int s; printf("请输入两个整数:"); s 阅读全文
posted @ 2019-12-06 09:20
bobo哥
阅读(706)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h> void order(int *x1,int *x2){ int t; if(*x1>*x2) { t=*x1; *x1=*x2; *x2=t; }} void main(){ int x,y; printf("请输入x,y的值:"); scanf(" 阅读全文
posted @ 2019-12-06 09:19
bobo哥
阅读(280)
评论(0)
推荐(0)

浙公网安备 33010602011771号