Fixed bugs in examples.

This commit is contained in:
Davis King 2012-11-17 14:55:49 -05:00
parent f45eb9c404
commit 93a232d3e0
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ int main()
// Here we print each character we get back one at a time.
while (stream.peek() != EOF)
{
ch = (char)stream.get();
cout << (char)stream.get();
}
}
catch (exception& e)

View File

@ -56,7 +56,7 @@ class serv : public server_iostream
char ch = in.get();
// now echo it back to them
out << toupper(ch);
out << (char)toupper(ch);
}
}