2.h 309 B

123456789101112131415161718192021222324
  1. //
  2. // Created by 李洋 on 2024/1/11.
  3. //
  4. #ifndef LEECODE_C_2_H
  5. #define LEECODE_C_2_H
  6. #include <iostream>
  7. using namespace std;
  8. void test1(int *p, int index) {
  9. cout << p[index];
  10. }
  11. void run() {
  12. int arr[3];
  13. arr[0] = 1;
  14. arr[1] = 2;
  15. arr[2] = 3;
  16. test1(arr, 2);
  17. }
  18. #endif //LEECODE_C_2_H
备用站点 当前处于降级运行的备用站点,仅供应急访问,数据和功能可能不是最新。