This blog is a test page. It’s meant to test the Harth-Hugo-Theme.
Example code block:
#include <iostream>
#define IABS(x) ((x) < 0 ? -(x) : (x))
int main(int argc, char *argv[]) {
/* An annoying "Hello World" example */
for (auto i = 0; i < 0xFFFF; i++)
cout << "Hello, World!" << endl;
char c = '\n';
unordered_map <string, vector<string> > m;
m["key"] = "\\\\"; // this is an error
return -2e3 + 12l;
}
class Thing
{
public:
Thing();
int CallFunc(int x, int y);
};
try
{
Thing t;
int x = t.CallFunc(1, 2);
if (x < 10)
throw new Exception("oops");
}
catch (Exception &e)
{
printf("Error: %s\n", e.ToString());
}
import thing
class That
{
function XXX(x : Int) -> Int
{
printf("%s\n", x)
}
}
Calling the function CallFunc()
.
Press the following keys to quit: ⌘ + Q
Sample console output Stuff ******************************************************************************** End