This commit is contained in:
RafayAhmad7548 2024-06-16 18:53:25 +05:00
parent 37776af5db
commit ab03d5f10c
4045 changed files with 286212 additions and 3 deletions

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View file

@ -0,0 +1,13 @@
/*
Rafay Ahmad
23I-2526
*/
#include <iostream>
using namespace std;
int main(){
return 0;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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}]}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View file

@ -0,0 +1,17 @@
/*
Rafay Ahmad
23I-2526
*/
#include <iostream>
using namespace std;
class Vector2D{
};
int main(){
return 0;
}