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