This commit is contained in:
2025-09-15 21:12:04 +08:00
commit 3f58f483ff
144 changed files with 5298 additions and 0 deletions

24
else/demo/2.h Normal file
View File

@@ -0,0 +1,24 @@
//
// Created by 李洋 on 2024/1/11.
//
#ifndef LEECODE_C_2_H
#define LEECODE_C_2_H
#include <iostream>
using namespace std;
void test1(int *p, int index) {
cout << p[index];
}
void run() {
int arr[3];
arr[0] = 1;
arr[1] = 2;
arr[2] = 3;
test1(arr, 2);
}
#endif //LEECODE_C_2_H