完成顺序表

This commit is contained in:
lifei
2020-11-29 13:50:44 +08:00
parent c81f767014
commit 925f66470c
7 changed files with 335 additions and 121 deletions

15
ch2/tips2.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
void test(int &x)
{
x = 1024;
printf("test 函数内部x = %d\n", x);
}
int main()
{
int x = 1;
printf("调用 test 函数前x = %d\n", x);
test(x);
printf("调用 test 函数后x = %d\n", x);
}