dotfiles/.config/Code/User/History/21ee6032/A97b.cpp
RafayAhmad7548 ab03d5f10c test
2024-06-16 18:53:25 +05:00

32 lines
No EOL
342 B
C++

/*
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;
}