   Biggest questions revealed... hopefully
  Subject Language: C++1) Does VC++ 6.0 Pro have a clear screen function?2) What makes system() function dangerous?3) Do you prefer using std::cout; or std::cout << "Hi";4) After learning ofstream/ifstream, polymorphism, where do you suggest me to go next in programming?That's all I can think of for now. Thanks.   http://phil.webula.netAIM: wuZZup189[edited by - philvaira on February 16, 2004 2:29:37 PM]
quote:1) Does VC++ 6.0 Pro have a clear screen function?VC''s implementation of the standard library does not, to my knowledge, include a clear screen function. If you are strictly using the standard library you can probably get the effect with a system("CLS"). If you are using the console-mode functions in the Windows API you can definately do it, but I don''t recall how; you''d need to check MSDN.quote:2) What makes system() function dangerous?Nothing, per se. system() is a standard library function that allows you to pass a command string to the underlying shell. While system() itself is portable, the string you pass to it is probably not -- consider the difference between the *nix and DOS commands to list the current directory. Using system() is also generally regarded as a clunky solution to the problem (as in the first question).quote:3) Do you prefer using std::cout; or std::cout << "Hi";Personally, I rarely use "using" at all, but there''s really no difference except in how much you have to type and how readable your code is (some people I know find seeing std:: and such all over the place easier to read, especially when you have multiple such namespaces. Some people don''t. *shrug*)quote:4) After learning ofstream/ifstream, polymorphism, where do you suggest me to go next in programming?I am not a good person to ask that.  It''s been so long since I first learned to program... I dunno. Make a "guess the number" game, maybe? Or if you''ve already done that and feel you''ve mastered the console, try making a simple Windows application.  