Compare commits
3 Commits
109ed8def8
...
dev_jiaolo
| Author | SHA1 | Date | |
|---|---|---|---|
| 71f12730cc | |||
| c69029e578 | |||
| 2ed493d32f |
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;
|
||||||
|
}
|
||||||
15
字符串拼接.cpp
Normal file
15
字符串拼接.cpp
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
//
|
||||||
|
// Created by viole on 2026/2/24.
|
||||||
|
//
|
||||||
|
#include "iostream"
|
||||||
|
using namespace std;
|
||||||
|
int main() {
|
||||||
|
string a = "1";
|
||||||
|
string b = "12";
|
||||||
|
string c = "13";
|
||||||
|
string d = "14";
|
||||||
|
int e = 12;
|
||||||
|
cout << a+b<<c+d<<a+to_string(e)<< endl;
|
||||||
|
bool b1 = true;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
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