mirror of
https://git.wolves.top/wolves/leetcode.git
synced 2025-11-05 01:36:32 +08:00
25 lines
309 B
C++
25 lines
309 B
C++
//
|
|
// 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
|