一道牛公司C语言的面试题? 求解....
int main()
{
if()
{
printf("Hello ");
}
else
{
printf("World !!!");
}
return 0;
}
在if里面请写入语句 使得打印出 hello world。
[解决办法]
#include <cstdio>#include <iostream>using namespace std;int main(){ if(!printf("Hello ")) { printf("Hello "); } else { printf("World !!!"); } return 0;}
[解决办法]