mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-11 14:35:01 +08:00
support bazel complie this project and format code.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
#include<iostream>
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main(){
|
||||
const int *ptr;
|
||||
int val = 3;
|
||||
ptr = &val; //ok
|
||||
int *ptr1 = &val;
|
||||
*ptr1=4;
|
||||
cout<<*ptr<<endl;
|
||||
|
||||
int main() {
|
||||
const int *ptr;
|
||||
int val = 3;
|
||||
ptr = &val; // ok
|
||||
int *ptr1 = &val;
|
||||
*ptr1 = 4;
|
||||
cout << *ptr << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user