support bazel complie this project and format code.

This commit is contained in:
zhangxing
2023-03-30 00:15:11 +08:00
committed by light-city
parent 1f86192576
commit 7529ae3a55
636 changed files with 10025 additions and 9387 deletions

View File

@@ -0,0 +1,22 @@
//
// Created by light on 19-11-3.
//
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int i;
int j(); // 0
int *p;
int *q(); // nullptr
// int x1{5.0}; // error:narrowing conversion
// 编译器调用initializer_list私有构造之前,编译器准备好array(array头)与len,传递给该构造,并没有内含这个array,
// 指针指向array,copy只是浅copy.
// 如今所有容器都接受任意数量的值 insert()或assign() max() min()
cout<<max({1,2,3})<<endl; // algorithm里面的max/min
return 0;
}