摘要:
1.#pragma once #include<string> //类T:声明 class T { //对象属性、方法 public: T(int x = 0, int y = 0);//普通构造函数 T(const T& t);//复制构造函数 T(T &&t); //移动构造函数 ~T(); v 阅读全文
摘要:
#include <stdio.h> void x (const char *filePath) { FILE *file = fopen(filePath, "r"); int a = 0; int b = 0; if (file == NULL) { printf("无法打开文件\n"); re 阅读全文
摘要:
#include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *pmax); int m 阅读全文
摘要:
#include<stdio.h> #define N 4 #define M 2 void test1(){ int x[N] = {1,9,8,4}; int i; printf("sizeof(x)=%d\n",sizeof(x)); for(i=0;i<N;++i) printf("%p:% 阅读全文