test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
27
.config/Code/User/History/21ee6032/1GZh.cpp
Normal file
27
.config/Code/User/History/21ee6032/1GZh.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
|
||||
}
|
||||
int operator++(int){
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
34
.config/Code/User/History/21ee6032/1Hq5.cpp
Normal file
34
.config/Code/User/History/21ee6032/1Hq5.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
public:
|
||||
int count;
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
cout<<"Inital value: "<<c1.count<<endl;
|
||||
cout<<"Postfix increment "<<c1++<<endl;
|
||||
cout<<"After post increment "<<c1.count<<endl;
|
||||
cout<<"Prefix increment: "<<++c1<<endl;
|
||||
cout<<"After pre increment "<<c1.count<<endl;
|
||||
|
||||
return 0;
|
||||
}
|
27
.config/Code/User/History/21ee6032/5FJf.cpp
Normal file
27
.config/Code/User/History/21ee6032/5FJf.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
|
||||
}
|
||||
int operator++(int){
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
32
.config/Code/User/History/21ee6032/A97b.cpp
Normal file
32
.config/Code/User/History/21ee6032/A97b.cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
// int operator++(int){
|
||||
// count++;
|
||||
// return count-1;
|
||||
// }
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
|
||||
++c1;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
30
.config/Code/User/History/21ee6032/BYkL.cpp
Normal file
30
.config/Code/User/History/21ee6032/BYkL.cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
31
.config/Code/User/History/21ee6032/F68T.cpp
Normal file
31
.config/Code/User/History/21ee6032/F68T.cpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
public:
|
||||
int count;
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
cout<<"Inital value: "<<c1.count<<endl;
|
||||
cout<<"Postfix increment"<<c1++;
|
||||
|
||||
return 0;
|
||||
}
|
25
.config/Code/User/History/21ee6032/GOqA.cpp
Normal file
25
.config/Code/User/History/21ee6032/GOqA.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
void operator++(){
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
31
.config/Code/User/History/21ee6032/J5mK.cpp
Normal file
31
.config/Code/User/History/21ee6032/J5mK.cpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
34
.config/Code/User/History/21ee6032/JZIb.cpp
Normal file
34
.config/Code/User/History/21ee6032/JZIb.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
public:
|
||||
int count;
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
cout<<"Inital value: "<<c1.count<<endl;
|
||||
cout<<"Postfix increment "<<c1++<<endl;
|
||||
cout<<"After post increment "<<c1.count<<endl;
|
||||
cout<<"Prefix increment: "<<++c1<<endl;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
23
.config/Code/User/History/21ee6032/Kyia.cpp
Normal file
23
.config/Code/User/History/21ee6032/Kyia.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
13
.config/Code/User/History/21ee6032/PLTo.cpp
Normal file
13
.config/Code/User/History/21ee6032/PLTo.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
27
.config/Code/User/History/21ee6032/TXMX.cpp
Normal file
27
.config/Code/User/History/21ee6032/TXMX.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
void operator++(){
|
||||
|
||||
}
|
||||
void operator++(int){
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
34
.config/Code/User/History/21ee6032/ToZW.cpp
Normal file
34
.config/Code/User/History/21ee6032/ToZW.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
public:
|
||||
int count;
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c;
|
||||
cout<<"Inital value: "<<c.count<<endl;
|
||||
cout<<"Postfix increment "<<c++<<endl;
|
||||
cout<<"After post increment "<<c.count<<endl;
|
||||
cout<<"Prefix increment: "<<++c<<endl;
|
||||
cout<<"After pre increment "<<c.count<<endl;
|
||||
|
||||
return 0;
|
||||
}
|
31
.config/Code/User/History/21ee6032/WOwq.cpp
Normal file
31
.config/Code/User/History/21ee6032/WOwq.cpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
public:
|
||||
int count;
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
cout<<"Inital value: "<<c1.count<<endl;
|
||||
cout<<c1++;
|
||||
|
||||
return 0;
|
||||
}
|
23
.config/Code/User/History/21ee6032/Zuzl.cpp
Normal file
23
.config/Code/User/History/21ee6032/Zuzl.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
1
.config/Code/User/History/21ee6032/entries.json
Normal file
1
.config/Code/User/History/21ee6032/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/lab11/q2.cpp","entries":[{"id":"PLTo.cpp","timestamp":1713152644452},{"id":"tQwa.cpp","timestamp":1713152696316},{"id":"Zuzl.cpp","timestamp":1713152782638},{"id":"Kyia.cpp","timestamp":1713152808515},{"id":"GOqA.cpp","timestamp":1713152826539},{"id":"TXMX.cpp","timestamp":1713152838707},{"id":"1GZh.cpp","timestamp":1713152849438},{"id":"5FJf.cpp","timestamp":1713152861586},{"id":"fxPJ.cpp","timestamp":1713152885277},{"id":"BYkL.cpp","timestamp":1713152909089},{"id":"J5mK.cpp","timestamp":1713152970891},{"id":"A97b.cpp","timestamp":1713152992943},{"id":"qwPE.cpp","timestamp":1713153005793},{"id":"isQG.cpp","timestamp":1713153054641},{"id":"WOwq.cpp","timestamp":1713153156990},{"id":"F68T.cpp","timestamp":1713153178784},{"id":"fYBJ.cpp","timestamp":1713153270255},{"id":"JZIb.cpp","timestamp":1713153287362},{"id":"1Hq5.cpp","timestamp":1713153316930},{"id":"ToZW.cpp","timestamp":1713153449876}]}
|
34
.config/Code/User/History/21ee6032/fYBJ.cpp
Normal file
34
.config/Code/User/History/21ee6032/fYBJ.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
public:
|
||||
int count;
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
cout<<"Inital value: "<<c1.count<<endl;
|
||||
cout<<"Postfix increment"<<c1++<<endl;
|
||||
cout<<"After post increment"<<c1.count<<endl;
|
||||
cout<<"Prefix increment: "<<++c1<<endl;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
29
.config/Code/User/History/21ee6032/fxPJ.cpp
Normal file
29
.config/Code/User/History/21ee6032/fxPJ.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
32
.config/Code/User/History/21ee6032/isQG.cpp
Normal file
32
.config/Code/User/History/21ee6032/isQG.cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
int operator++(int){
|
||||
count++;
|
||||
return count-1;
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
|
||||
c1;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
32
.config/Code/User/History/21ee6032/qwPE.cpp
Normal file
32
.config/Code/User/History/21ee6032/qwPE.cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Count{
|
||||
int count;
|
||||
public:
|
||||
|
||||
Count() : count(0){}
|
||||
|
||||
int operator++(){
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
// int operator++(int){
|
||||
// count++;
|
||||
// return count-1;
|
||||
// }
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
Count c1;
|
||||
|
||||
c1;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
17
.config/Code/User/History/21ee6032/tQwa.cpp
Normal file
17
.config/Code/User/History/21ee6032/tQwa.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Vector2D{
|
||||
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue