mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-10 14:05:28 +08:00
support bazel complie this project and format code.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#include<iostream>
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
|
||||
const int num=0;
|
||||
int * const ptr=# //error! const int* -> int*
|
||||
cout<<*ptr<<endl;
|
||||
int main() {
|
||||
const int num = 0;
|
||||
int *const ptr = # // error! const int* -> int*
|
||||
cout << *ptr << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user