test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
29
.config/Code/User/History/-7e055f1a/LkX0.cpp
Normal file
29
.config/Code/User/History/-7e055f1a/LkX0.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class A
|
||||
{
|
||||
public:
|
||||
A(int ii = 0) : i(ii) {}
|
||||
A(const A &abc)
|
||||
{
|
||||
this->i = abc.i;
|
||||
cout << "Out Of " << i - 1 << endl;
|
||||
}
|
||||
A magic(A abc)
|
||||
{
|
||||
this->i = i + 1;
|
||||
A bcd(this->i);
|
||||
return bcd;
|
||||
}
|
||||
~A() { cout << "Out A " << i < < < endl; }
|
||||
|
||||
private:
|
||||
int i;
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
A b(3), a(4);
|
||||
a = b.magic(a).magic(b);
|
||||
}
|
29
.config/Code/User/History/-7e055f1a/OEK8.cpp
Normal file
29
.config/Code/User/History/-7e055f1a/OEK8.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class A
|
||||
{
|
||||
public:
|
||||
A(int ii = 0) : i(ii) {}
|
||||
A(const A &abc)
|
||||
{
|
||||
this->i = abc.i;
|
||||
cout << "Out Of " << i - 1 << endl;
|
||||
}
|
||||
A magic(A abc)
|
||||
{
|
||||
this->i = i + 1;
|
||||
A bcd(this->i);
|
||||
return bcd;
|
||||
}
|
||||
~A() { cout << "Out A " << i << endl; }
|
||||
|
||||
private:
|
||||
int i;
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
A b(3), a(4);
|
||||
a = b.magic(a).magic(b);
|
||||
}
|
16
.config/Code/User/History/-7e055f1a/SC6b.cpp
Normal file
16
.config/Code/User/History/-7e055f1a/SC6b.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include<iostream>
|
||||
using namespace std;
|
||||
class A {
|
||||
public:
|
||||
A(int ii = 0) : i(ii) {}
|
||||
A(int ii, int ss) : i(ii + ss) {}
|
||||
void show() { cout << "i = " << i << endl; }
|
||||
~A() { cout << "Out A" << i << endl; }
|
||||
A magic(int ss) { this->i = ss * this->i; return *this; }
|
||||
private:
|
||||
int i;
|
||||
};
|
||||
int main() {
|
||||
A a(10, 5), s(10);
|
||||
a = s.magic(20).magic(10);
|
||||
}
|
1
.config/Code/User/History/-7e055f1a/entries.json
Normal file
1
.config/Code/User/History/-7e055f1a/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/test.cpp","entries":[{"id":"SC6b.cpp","timestamp":1716109035968},{"id":"qCX2.cpp","timestamp":1716109170175},{"id":"wwV3.cpp","timestamp":1716138755022},{"id":"LkX0.cpp","timestamp":1716138787287},{"id":"OEK8.cpp","timestamp":1716138803456}]}
|
22
.config/Code/User/History/-7e055f1a/qCX2.cpp
Normal file
22
.config/Code/User/History/-7e055f1a/qCX2.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <iostream>
|
||||
using namespace std;
|
||||
class A
|
||||
{
|
||||
public:
|
||||
A(int ii = 0) : i(ii) {}
|
||||
A(int ii, int ss) : i(ii + ss) {}
|
||||
void show() { cout << "i = " << i << endl; }
|
||||
~A() { cout << "Out A" << i << endl; }
|
||||
A magic(int ss){
|
||||
this->i = ss * this->i;
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
int i;
|
||||
};
|
||||
int main()
|
||||
{
|
||||
A a(10, 5), s(10);
|
||||
a = s.magic(20).magic(10);
|
||||
}
|
42
.config/Code/User/History/-7e055f1a/wwV3.cpp
Normal file
42
.config/Code/User/History/-7e055f1a/wwV3.cpp
Normal file
|
@ -0,0 +1,42 @@
|
|||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
class A {
|
||||
|
||||
public:
|
||||
|
||||
A(int ii = 0): i(ii) {}
|
||||
|
||||
A(const A& abc)
|
||||
|
||||
{
|
||||
|
||||
this->i = abc.i; cout << "Out Of " << i - 1 << endl;
|
||||
|
||||
}
|
||||
|
||||
A magic(A abc) {
|
||||
|
||||
this->i=i+1;
|
||||
|
||||
A bcd(this->i);
|
||||
|
||||
return bcd;
|
||||
|
||||
}
|
||||
|
||||
~A() { cout << "Out A " << i <<< endl; }
|
||||
|
||||
private:
|
||||
|
||||
int i;
|
||||
|
||||
};
|
||||
|
||||
int main() {
|
||||
|
||||
A b(3), a(4);
|
||||
|
||||
a = b.magic(a).magic(b);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue