2 Commits

Author SHA1 Message Date
71f12730cc 1 2026-02-25 12:50:54 +08:00
c69029e578 1 2026-02-25 12:28:26 +08:00
3 changed files with 36 additions and 0 deletions

10
cin数据输入.cpp Normal file
View 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
View 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
View 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;
}