mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-05-08 22:42:04 +08:00
update dir
This commit is contained in:
9
const/funciton_const/condition1/condition2.cpp
Normal file
9
const/funciton_const/condition1/condition2.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main(){
|
||||
const int p = 10;
|
||||
const void *vp = &p;
|
||||
void *vp = &p; //error
|
||||
}
|
||||
Reference in New Issue
Block a user