mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-12 23:15:23 +08:00
support bazel complie this project and format code.
This commit is contained in:
11
basic_content/const/class_const/static_example/apple.h
Normal file
11
basic_content/const/class_const/static_example/apple.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
class Apple {
|
||||
public:
|
||||
Apple(int i);
|
||||
static int ap; // 在类实现文件中定义并初始化
|
||||
static const int apple_number;
|
||||
void take(int num) const;
|
||||
int add(int num);
|
||||
int add(int num) const;
|
||||
int getCount() const;
|
||||
};
|
||||
Reference in New Issue
Block a user