「C++」boolean型のサンプル
使用例
#include <iostream>
using namespace std;
int main() {
bool cftA = true;
bool cftB = false;
cout << cftA << "\n";
cout << cftB;
return 0;
}
実行結果
1
0
Coding Changes the World
使用例
#include <iostream>
using namespace std;
int main() {
bool cftA = true;
bool cftB = false;
cout << cftA << "\n";
cout << cftB;
return 0;
}
実行結果
1
0