2024年6月24日
摘要:
task4 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sale
阅读全文
posted @ 2024-06-24 17:15
马猴烧酒酱
阅读(13)
推荐(0)
摘要:
//task4// 1 #include<stdio.h> 2 3 int main(){ 4 int i = 0; 5 char ch; 6 FILE *fp; 7 fp = fopen("data4.txt","r"); 8 if(fp == NULL) { 9 printf("fail to
阅读全文
posted @ 2024-06-24 09:11
马猴烧酒酱
阅读(32)
推荐(0)
2024年5月27日
摘要:
1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmin, int *
阅读全文
posted @ 2024-05-27 07:20
马猴烧酒酱
阅读(23)
推荐(0)
2024年5月20日
摘要:
1 #include <stdio.h> 2 #define N 4 3 4 void test1() { 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 8 // 输出数组a占用的内存字节数 9 printf("sizeof(a) = %d\n", sizeof(a))
阅读全文
posted @ 2024-05-20 07:27
马猴烧酒酱
阅读(19)
推荐(0)
2024年4月28日
摘要:
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // 函数声明 vo
阅读全文
posted @ 2024-04-28 07:26
马猴烧酒酱
阅读(21)
推荐(0)
2024年4月14日
摘要:
1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 7 int main() 8 { 9 int number; 10 int i; 11 12 srand(time(0)); 13 14 for
阅读全文
posted @ 2024-04-14 23:46
马猴烧酒酱
阅读(31)
推荐(0)
2024年3月15日
摘要:
#include<stdio.h> #include<stdlib.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); printf(" 0\n"); printf("<H>\n"); printf("I I\n");
阅读全文
posted @ 2024-03-15 21:56
马猴烧酒酱
阅读(32)
推荐(0)
摘要:
include<stdio.h> include<stdlib.h> int main() { printf(" 0\n"); printf("\n"); printf("I I\n"); printf(" 0\n"); printf("\n"); printf("I I\n"); system("
阅读全文
posted @ 2024-03-15 21:07
马猴烧酒酱
阅读(24)
推荐(0)