mirror of
http://106.12.3.193:3000/violeteverisland/learn_cpp.git
synced 2026-03-07 17:17:33 +08:00
12
This commit is contained in:
18
c++常量类型的确定.cpp
Normal file
18
c++常量类型的确定.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// Created by violet on 2026/2/24.
|
||||
//
|
||||
#include "iostream"
|
||||
#include "windows.h"
|
||||
int main() {
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
long long int i1 = 2212345678;
|
||||
std::cout<<sizeof(i1)<<i1<<std::endl;
|
||||
char a = 3;
|
||||
char b = 32;
|
||||
char c = 16;
|
||||
char d = 17;
|
||||
char e = '5';
|
||||
char f = 126;
|
||||
std::cout << f << std::endl;
|
||||
std::cout <<c<<a<<b<<d<<e<<std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user