0
我找不到如何使其正確 - 請幫助。嘿!我找不到如何使其正確?
#include<stdio.h>
main(void)
{
char *string="Hello!World";
while(string){
putchar(string);
}
}
我找不到如何使其正確 - 請幫助。嘿!我找不到如何使其正確?
#include<stdio.h>
main(void)
{
char *string="Hello!World";
while(string){
putchar(string);
}
}
試一下:
# include <stdio.h>
void main(void)
{
char *string = "Hello!World";
while (*string) {
putchar(*string++);
}
}
小提醒:https://stackoverflow.com/help/someone-answers,如果答案是對你有好處:) –