summaryrefslogtreecommitdiff
path: root/Source/Applications/Demos/cxxdemo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications/Demos/cxxdemo.cpp')
-rw-r--r--Source/Applications/Demos/cxxdemo.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/Applications/Demos/cxxdemo.cpp b/Source/Applications/Demos/cxxdemo.cpp
new file mode 100644
index 0000000..3d452e7
--- /dev/null
+++ b/Source/Applications/Demos/cxxdemo.cpp
@@ -0,0 +1,20 @@
+#include <Syscall/Syscall.wtf.h>
+#include <String.class.h>
+#include <Binding/VirtualTerminal.class.h>
+#include <Binding/Thread.class.h>
+#include <Binding/File.class.h>
+
+int main(const Vector<String>& args) {
+ outvt << "Enter some text plz : ";
+ String s = invt.readLine();
+ outvt << s;
+ Thread t = Thread::get();
+ for (char c = ' '; c <= 'z'; c++) {
+ t.sleep((u32int)c / 4);
+ outvt.put(c);
+ }
+ outvt << "\n";
+ outvt << "Salut les gens ! c'est le progrès !!!\nLe boeuf mort est juste là : ";
+ outvt << 0xDEADBEEF;
+ outvt << "\n";
+}