1、程序源码:
#include<iostream> int main() { bool condition=42; int i=condition; std::cout<<i<<std::endl; return 0; }
2、运行结果:
[root@workstudio tmp]# g++ -o main main.cpp [root@workstudio tmp]# ./main 1
1、程序源码:
#include<iostream> int main() { bool condition=42; int i=condition; std::cout<<i<<std::endl; return 0; }
2、运行结果:
[root@workstudio tmp]# g++ -o main main.cpp [root@workstudio tmp]# ./main 1
转载于:https://www.cnblogs.com/JiangLe/p/5769485.html