mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-12 23:15:23 +08:00
update
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
|
||||
const int num=10;
|
||||
const int * const ptr=# //error! const int* -> int*
|
||||
cout<<*ptr<<endl;
|
||||
}
|
||||
Reference in New Issue
Block a user