Commit 93a232d3 authored by Davis King's avatar Davis King

Fixed bugs in examples.

parent f45eb9c4
...@@ -35,7 +35,7 @@ int main() ...@@ -35,7 +35,7 @@ int main()
// Here we print each character we get back one at a time. // Here we print each character we get back one at a time.
while (stream.peek() != EOF) while (stream.peek() != EOF)
{ {
ch = (char)stream.get(); cout << (char)stream.get();
} }
} }
catch (exception& e) catch (exception& e)
......
...@@ -56,7 +56,7 @@ class serv : public server_iostream ...@@ -56,7 +56,7 @@ class serv : public server_iostream
char ch = in.get(); char ch = in.get();
// now echo it back to them // now echo it back to them
out << toupper(ch); out << (char)toupper(ch);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment