local variable 'r' used with having been inibiavlzed(初始化)
来源:互联网 发布:手柄键位设置软件 编辑:程序博客网 时间:2024/05/20 14:23
main()
{ st *r=NULL; /* 开始用**r=NULL*/
int x,q;
printf("/n 开始输入值:/n");
scanf("%d",&x);
while(x!=0)
{ ruzhan(&r,x);
scanf("%d",&x);
}
while(panduan( &*r))
{ q=chuzhan(&r,&x);
printf("%2d",q);
}
getch();
}
/*提示,local variable 'r' used with having been inibiavlzed(初始化)
/* VC强调指针的严格性,所以,这个必须注意了 */
/* 出现了r为初始化,开始吧用**p=NULL,虽然会正确,但是,再输入的时候按enter时会显示,不能为read,所以错误以外终止,
但是,如果加上*p=NULL的话,就正确了,*p 为一个指针,可以初始化,但是,**p为一个指向指针的指针,所以第二个指针是不定的,,他可以指向这个内存区域的有用的地方,所有,为了防止错误,所以
会终止,但是,在WIN tc 中是成功的,所以说,这个VC是一个可靠性比较高的, */
所以说,*/
- local variable 'r' used with having been inibiavlzed(初始化)
- The local variable date may not have been initialized解决办法
- The local variable appVersion may not have been initialized
- “The local variable XXX may not have been initialized”
- Variable 'X' is used before it has been assigned a value. A null reference exception could result at runtime.
- global variable and local variable
- Initialization of variable was never used; consider replacing with assignment to ‘_’ or removing it
- Track your local R scheduled tasks with CommandCenter2000!!!
- Duplicate local variable sql
- Duplicate local variable context
- Duplicate local variable studentname
- Duplicate local variable message
- python local variable
- Duplicate local variable btn
- Duplicate local variable session
- cannot find local variable
- 编写c++程序过程中出现的错误 annonymous type with no linkage used to declare variable
- Gobal variable & Local Variable in orchestration
- C#异步传输字符串客户端的实现
- ArcSDE安装:"Bad Login User" 错误解决方法
- 重装IIS后无法浏览网页的问题(无法显示XML页)
- FileDownLoad1.0 类似 使用迅雷下载 功能实现和心得
- MyEclipse集成SVN(转载)
- local variable 'r' used with having been inibiavlzed(初始化)
- vc调试
- 淘宝网站 Hel10 佟文
- chuzhan not all control paths return a value*/
- C++ sort函数用法
- oracle压力测试之orastress!
- 引用和指针
- 关于继承的基本知识
- 佟文