|
codepad
|
|
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World";
return 0;
}
|
| view (9 lines, 1 line of output) |
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World";
return 0;
}
|
| view (9 lines, 1 line of output) |
#!/usr/bin/lua
People = {}
function People:new (obj)
obj = obj or {}
setmetatable (obj, self)
self.__index = self
return obj
end
function People:get (attr)
return self.attr
end
function People:set (attr, value)
self.attr = value
end
gecko = People:new()
gecko:set (say, "Hello World");
print (gecko:get("say"));
|
| view (22 lines, 1 line of output) |