舌吻能见舌头动态图:C/C++问题。这个程序怎么会“滴滴滴”响。好像死机啊。

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/08 06:48:03
我想把字符一个定个输出。但不是,一直响!
#include "iostream.h"
#include "conio.h"
#include "stdio.h"
main()
{
char help[]="Welcome to help station";
char *_help;
int i;
_help=help;
for(_help=help;*help!='\0';*_help++)
printf("%c",*_help);
}
这样也不行,也不能输出。

for(_help=help;*help!='\0';_help++)
你需要的是改变_help
而不是_help指向的

for(_help=help;*_help!='\0';_help++)