mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-02 18:19:42 +08:00
13 lines
201 B
C++
13 lines
201 B
C++
#include "apple.h"
|
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
int main() {
|
|
Apple a(2);
|
|
cout << a.getCount() << endl;
|
|
a.add(10);
|
|
// const Apple b(3);
|
|
// b.add(); // error
|
|
return 0;
|
|
}
|