CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 2.07 seconds.

  1. Replies
    7
    Views
    12,098

    Re: Simple hangman game

    No.
    It doesn't matter what your teacher taught you. To properly use gets(), the <cstdio> header must be included. Those are the rules of C++.
    1) This forum is for Visual C++, not any other...
  2. Replies
    7
    Views
    12,098

    Re: Simple hangman game

    You should be using string class such as std::string, and not what you're doing now. For example, this is totally wrong:


    int main()
    {
    char word[]={}; // what is this supposed to do?
    ...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured