-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
57 lines (45 loc) · 868 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <java/lang>
bool a = 1 == 1 != false == true;
bool c = 3 == 3 && 5 != 4 || 1 == 1 != false;
int x = 15;
x = (x / 3 - 3) * 3;
int main() {
bool a = 1 == 1 != false == true;
bool c = 3 == 3 && 5 != 4 || 1 == 1 != false;
int x = 15;
x = (x / 3 - 3) * 3;
return x * 11 + 3;
}
// Classes :D
class MyClass {
private:
int x;
public:
static MyClass main(int x) {
MyClass obj = new MyClass(x);
obj.x = 20;
obj.x = 10;
return obj;
}
MyClass(int x) {
this->x = x;
}
int get_x() {
return x;
}
void set_x(int x) {
this->x = x;
}
};
MyClass obj = MyClass::main(10);
int n = main();
int getTheX() {
return obj.get_x();
}
int setTheX() {
obj.set_x(40);
return obj.get_x();
}
int theX = getTheX();
int theXNew = setTheX();
// What the heck?