Compare commits
4 Commits
2ed493d32f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 65c091224d | |||
| 71f12730cc | |||
| 111dee6c4c | |||
| c69029e578 |
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