mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-10 05:55:17 +08:00
support bazel complie this project and format code.
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
#include<iostream>
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
|
||||
int num=0;
|
||||
int * const ptr=# //const指针必须初始化!且const指针的值不能修改
|
||||
int * t = #
|
||||
*t = 1;
|
||||
cout<<*ptr<<endl;
|
||||
int main() {
|
||||
int num = 0;
|
||||
int *const ptr = # // const指针必须初始化!且const指针的指向不能修改
|
||||
int *t = #
|
||||
*t = 1;
|
||||
cout << *ptr << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user