mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 07:44:57 +00:00
26 lines
490 B
C++
26 lines
490 B
C++
#include <stdio.h>
|
|
#include <sys/stat.h>
|
|
|
|
enum TestEnum {
|
|
ValueOne,
|
|
ValueTwo
|
|
};
|
|
|
|
struct MyStruct {
|
|
int x { -1 };
|
|
bool status { false };
|
|
TestEnum test_value { ValueOne };
|
|
};
|
|
|
|
int main(int, char**)
|
|
{
|
|
MyStruct my_struct;
|
|
my_struct.status = !my_struct.status;
|
|
printf("my_struct.x is %d\n", my_struct.x);
|
|
for (int i = 0; i < 3; ++i) {
|
|
// This is a comment :^)
|
|
printf("Hello friends!\n");
|
|
mkdir("/tmp/xyz", 0755);
|
|
}
|
|
return 0;
|
|
}
|