CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15

Threaded View

  1. #5
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,926

    Re: Not able to have getche() working in chcount.cpp

    However, it does appear that this is a compiler specific issue.
    Anything defined in conio.h IMO should be considered compiler specific - and could behave differently between different compilers on same/different systems. I would suggest looking at the compiler documentation for getche() for the compiler/system used. The preference is to avoid where possible using anything defined in conio.h as these are not c++ standard defined.

    Btw, can either of you provide instruction on how to run the project / code after having
    compiled / built solution in VS2017?
    In VS2017, after the program has compiled successfully, an .exe will have been generated. This will have the name specified under Project properties/Configuration Properties/General/target name and will be created in the folder specified by Output Directory. From the Command Prompt, this .exe can be run like any other .exe.

    For an on-line resource, consider
    http://www.learncpp.com/
    http://www.cplusplus.com/reference/

    For books, I can suggest a couple but often this comes down to readers preference. I would suggest only books published since 2015 that cover c++14.

    Starting Out with C++ by Tony Gaddis https://www.amazon.co.uk/Starting-Ou...ywords=c%2B%2B

    c++ programming D Malik https://www.amazon.co.uk/Programming...5638926&sr=1-5

    c++ How To Progam Deitel https://www.amazon.co.uk/How-Program...ywords=c%2B%2B
    Last edited by 2kaud; May 24th, 2017 at 11:18 AM.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured