mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-04 02:54:42 +08:00
update
This commit is contained in:
8
basic_content/const/const_num.cpp
Normal file
8
basic_content/const/const_num.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
const int b = 10;
|
||||
b = 0; //error
|
||||
const string s = "helloworld";
|
||||
const int i,j=0;
|
||||
}
|
||||
Reference in New Issue
Block a user