山东智趣岛论坛

标题: 8088ti2 [打印本页]

作者: liuzixuan    时间: 2023-11-12 18:55
标题: 8088ti2
[C++] 纯文本查看 复制代码
#include<iostream>
using namespace std;
int main()
{
        int a;
        bool s ;
        int d;
        cin>>a;
        s=bool(a);
        d=int(s);
        cout<<d<<endl;
}






欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) Powered by Discuz! X3.3