From 4f5b4772468e4370bf3aed9e19ae6842cd8347e6 Mon Sep 17 00:00:00 2001 From: p9exg5sqa <2945682262@qq.com> Date: Wed, 26 Jun 2024 10:51:19 +0800 Subject: [PATCH] Add 2.cpp --- 2.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 2.cpp diff --git a/2.cpp b/2.cpp new file mode 100644 index 0000000..79a7bed --- /dev/null +++ b/2.cpp @@ -0,0 +1,33 @@ + #include +using namespace std; +class A{ +public: + A(int i){a=i;b=0;} + A(int i,int j){a=i;b=j;} + void display(){cout<<"a="<