30 lines
420 B
Plaintext
30 lines
420 B
Plaintext
import io;
|
|
|
|
typedef firstObject {
|
|
int objectNum;
|
|
int other;
|
|
void print() {
|
|
print(other);
|
|
}
|
|
void printInd() {
|
|
print();
|
|
}
|
|
};
|
|
|
|
typedef Int int;
|
|
|
|
Int aliasNum;
|
|
|
|
int main() {
|
|
firstObject wooObject;
|
|
wooObject.objectNum = 7;
|
|
print(wooObject.objectNum);
|
|
firstObject* objPtr = &wooObject;
|
|
objPtr->objectNum = 42;
|
|
print(objPtr->objectNum);
|
|
print("\n");
|
|
objPtr->other = 1337;
|
|
objPtr->printInd();
|
|
print("\n");
|
|
}
|