From 7708a5f335c6b3256290775e7f5deb43b681bf03 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Wed, 21 Oct 2009 17:32:50 +0200 Subject: More work --- Source/Applications/SampleApps/cxxdemo.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Source/Applications/SampleApps/cxxdemo.cpp') diff --git a/Source/Applications/SampleApps/cxxdemo.cpp b/Source/Applications/SampleApps/cxxdemo.cpp index 01644a8..cf297ec 100644 --- a/Source/Applications/SampleApps/cxxdemo.cpp +++ b/Source/Applications/SampleApps/cxxdemo.cpp @@ -4,16 +4,15 @@ #include int main() { - VirtualTerminal x = VirtualTerminal::get(); - String s = x.readLine(); - x.write(s); + String s = invt.readLine(); + outvt << s; Thread t = Thread::get(); for (char c = ' '; c <= 'z'; c++) { t.sleep((u32int)c / 4); - x.put(c); + outvt.put(c); } - x.put("\n"); - x.write("Salut les gens ! c'est le progrès !!!\nLe boeuf mort est juste là : "); - x.writeHex(0xDEADBEEF); - x.put("\n"); + outvt << "\n"; + outvt << "Salut les gens ! c'est le progrès !!!\nLe boeuf mort est juste là : "; + outvt << 0xDEADBEEF; + outvt << "\n"; } -- cgit v1.2.3