update dir

This commit is contained in:
light-city
2019-07-14 16:52:20 +08:00
commit 57627e0b75
30 changed files with 714 additions and 0 deletions

11
const/const_function.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include<iostream>
using namespace std;
void f(const int i){
i=10; // error: assignment of read-only parameter i
cout<<i<<endl;
}
int main(){
f(1);
}