mirror of
https://github.com/happyflyer/wangdao-data-structure.git
synced 2026-04-30 21:51:39 +08:00
完成顺序表
This commit is contained in:
15
ch2/tips2.cpp
Normal file
15
ch2/tips2.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user