在C,印%要寫成%%
在C++印%只要寫成%就好
我推測是因為C++適用串流輸出,不像C是用%輸出
AC:
#include <iostream>
using namespace std;
int main()
{
cout<<"|'o'|"<<endl<<"\\^_^/"<<endl<<"(\"o\")"<<endl<<"[-%%-]"<<endl;
return 0;
}
WA:
#include <iostream>
using namespace std;
int main()
{
cout<<"|'o'|"<<endl<<"\\^_^/"<<endl<<"(\"o\")"<<endl<<"[-%%-]"<<endl;
return 0;
}