This commit is contained in:
xliu79
2020-07-18 17:09:29 +08:00
parent 5354c10742
commit 31c5da6aa2
28 changed files with 674 additions and 0 deletions

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);
}