摘要:
#include<stdio.h> void sort(int *x,int n); int main() { int arr[10] = { 11,3,7,23,15,79,66,58,69,45 },i; sort(arr, 10); printf("排序结果如下:\n"); for (i = 阅读全文
posted @ 2019-12-13 14:51
木子欢儿
阅读(413)
评论(0)
推荐(0)
摘要:
#include<stdio.h> void sort(int x[],int n); int main() { int arr[10] = { 11,3,7,23,15,79,66,58,69,45 },i; sort(arr, 10); printf("排序结果如下:\n"); for (i = 阅读全文
posted @ 2019-12-13 14:46
木子欢儿
阅读(694)
评论(0)
推荐(0)
摘要:
应用二维数组的知识 杨辉三角特点: 1.第一列和对角线的元素全部为1 2.其他元素等于上一行的当前列的值和上一行中当前列前边一列的值之和 #include<stdio.h> #define N 11 int main() { int a[N][N]={{0},{0,1}};/*初始化第0行和第一行, 阅读全文
posted @ 2019-12-13 07:49
木子欢儿
阅读(3756)
评论(0)
推荐(0)
摘要:
#include<stdio.h> char* getword(char); char* getword(char c) { switch (c) { case'A':return"Apple"; case'B':return"Banana"; case'C':return"Cat"; case'D 阅读全文
posted @ 2019-12-13 07:27
木子欢儿
阅读(837)
评论(0)
推荐(0)

浙公网安备 33010602011771号