上一页 1 2 3 4 5 6 7 8 9 10 ··· 29 下一页
摘要: #include<string.h> #include<limits.h>#include<float.h>#include<stdio.h>#pragma warning(disable : 4996) using namespace std; #define LEN 26 int main() 阅读全文
posted @ 2022-10-17 13:15 江南王小帅 阅读(42) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string.h> #include<limits.h>#include<float.h>#include<stdio.h>#pragma warning(disable : 4996) using namespace std; double p 阅读全文
posted @ 2022-10-17 11:05 江南王小帅 阅读(40) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string.h> #include<limits.h>#include<float.h>#pragma warning(disable : 4996)#define SIZE 10#define PAR 72 using namespace s 阅读全文
posted @ 2022-10-14 15:00 江南王小帅 阅读(34) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string.h> #include<limits.h>#include<float.h>#pragma warning(disable : 4996) #define SWC_PER_SEC 60using namespace std; int 阅读全文
posted @ 2022-10-10 11:11 江南王小帅 阅读(31) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; /*int main() { int *p; p = new int; if (p==NULL) { cout << "Allocation Failure!\n"; } else { *p = 15; cout << 阅读全文
posted @ 2022-09-30 13:10 江南王小帅 阅读(10) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h> //在计算机中,向malloc申请的空间大小是以字节为单位的 //返回的结果是void*,需要类型转换为自己需要的类型 //就把a当做数组使用即可,最后记得释放 int main() { int *a; int Number; 阅读全文
posted @ 2022-09-21 16:58 江南王小帅 阅读(63) 评论(0) 推荐(0)
摘要: #include<stdio.h>int main() { char ac[] = { 1,2,3,4,5,6,7,8,9,-1 }; char *pc = &ac[0]; while (*pc!=-1) { printf("%d ", *pc++); } printf("\n"); for (pc 阅读全文
posted @ 2022-09-21 14:13 江南王小帅 阅读(124) 评论(0) 推荐(0)
摘要: #include<stdio.h>int divide(int a, int b, int *result); int main() { int a = 8; int b = 4; int v; if (divide(a, b, &v)) { divide(a, b, &v); printf("%d 阅读全文
posted @ 2022-09-21 11:15 江南王小帅 阅读(51) 评论(0) 推荐(0)
摘要: #include<stdio.h> int minmax(int a[], int len, int *max, int *min);int main() { int a[10] = { 5,4,3,2,1,6,7,8,9,10 }; int max, min; minmax(a, sizeof(a 阅读全文
posted @ 2022-09-21 10:50 江南王小帅 阅读(127) 评论(0) 推荐(0)
摘要: #include<stdio.h> int swap(int *p1, int *p2); int main() { int a = 5; int b = 4; printf("a = %d b =%d \n", a, b); swap(&a, &b); printf("a = %d b =%d \ 阅读全文
posted @ 2022-09-21 10:34 江南王小帅 阅读(31) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 29 下一页