mirror of
https://git.wolves.top/wolves/leetcode.git
synced 2025-11-05 01:36:32 +08:00
init
This commit is contained in:
24
else/demo/2.h
Normal file
24
else/demo/2.h
Normal 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
|
||||
Reference in New Issue
Block a user