From: SourceForge.net <no...@so...> - 2004-04-15 19:20:58
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2523067 By: acstadt There is nothing actually illegal in the code sample you provided (other the main not actually returning an int but I'll leave that war to someone else), you simply failed to supply any memory for std::cin to use. If you have tried: .... char *mybuffer; mybuffer = new char[128]; std::cin >> mybuffer; .... you would have had quite different results, or better yet, use std::string. HTH, Andrew. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |