mirror of
http://106.12.3.193:3000/violeteverisland/learn_cpp.git
synced 2026-03-07 17:17:33 +08:00
1
This commit is contained in:
10
cin数据输入.cpp
Normal file
10
cin数据输入.cpp
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
//
|
||||||
|
// Created by viole on 2026/2/25.
|
||||||
|
//
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main() {
|
||||||
|
int num ;
|
||||||
|
cin >> num;
|
||||||
|
cout << num << endl;
|
||||||
|
}
|
||||||
11
布尔数据类型.cpp
Normal file
11
布尔数据类型.cpp
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
//
|
||||||
|
// Created by viole on 2026/2/25.
|
||||||
|
//
|
||||||
|
#include "iostream"
|
||||||
|
using namespace std;
|
||||||
|
int main() {
|
||||||
|
bool flag = 1;
|
||||||
|
bool flag2 = 0;
|
||||||
|
cout << flag << endl;
|
||||||
|
cout << flag2 << endl;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user