conio tutorial

This is a discussion on conio tutorial within the C++ Programming forums, part of the General Programming Boards category; searching google gave me all kinds of C++ tutorials that "include" conio.h, does anybody know a good tut/ref for conio?...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    16

    conio tutorial

    searching google gave me all kinds of C++ tutorials that "include" conio.h, does anybody know a good tut/ref for conio?

  2. #2
    Registered User dead_cell's Avatar
    Join Date
    Jun 2002
    Posts
    44

    You might want to check out digitalmars.com

    You might want to check out digitalmars.com. They've got all kinds of referrences on most of the common c/c++ runtime libraries and examples for each function. If you want a whole list of the libs that they do break down, then you can get the whole list here
    Linux is great - It does infinite loops in five seconds!

    ~Linus Torvalds

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >does anybody know a good tut/ref for conio?
    The documentation for the compiler you use it best since conio.h is a non-standard header file and its contents vary from compiler to compiler, if the compiler has it at all.

    -Prelude
    My best code is written with the delete key.

  4. #4
    Unregistered
    Guest
    >void try(void)
    >{
    > if(you != success)
    > {
    > try()
    > }
    >{

    I really don't think this would work at all, since "try" is a c++ keyword ( which would generally make it off-limits as a function name) . You might consider renaming the function to something like "aspire", or "attempt", but I admit it just doesn't have the same ring to it. You also might consider a different format completely, such as:

    Code:
    You you;
    
    while(true)
    {
        try {
            ToFigureItOut(you);
            break;
        }
        catch( YourMistake& m )
        {
            // Post msg to newsgroup, updating you
            PostToNewsgroup(m.msg, you);
        }
    }
    This at least uses the keyword correctly, although I'm not sure what the effects will be on overall efficiency given the overhead of throwing exceptions, and the number of mistakes that people generally make. Also, you would have to take into consideration that some people will never get it, so the loop really can't go on infinitely. I would say that a loop of 10 would be more than enough for any reasonably intelligent person.

    But hell, your code might work...I dont know because I didn't try to compile it.

  5. #5
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542

    Re: You might want to check out digitalmars.com

    Originally posted by dead_cell
    You might want to check out digitalmars.com. They've got all kinds of referrences on most of the common c/c++ runtime libraries and examples for each function. If you want a whole list of the libs that they do break down, then you can get the whole list here
    Thanks for the tutorial
    what does signature stand for?

  6. #6
    Registered User
    Join Date
    May 2002
    Posts
    16
    Thanks!
    BTW, I'm using MSVC++ 6
    I forgot to add it to the post, I'll add it to the sig after doing this post

  7. #7
    Registered User dead_cell's Avatar
    Join Date
    Jun 2002
    Posts
    44

    Thumbs up wasn't really thinking here...

    I didn't really have enough time to think about that signature when I made it (4:00 in the morning doesn't usually yield very good programming/coding habits). I didn't really think anyone would criticize me on it so I left it, but you're perfectly right, the function won't work.

    I just thought it'd go unnoticed until I had time to revise it
    Linux is great - It does infinite loops in five seconds!

    ~Linus Torvalds

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  2. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 02:41 AM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Problem with tutorial (Vector class)
    By OdyTHeBear in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 02:49 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-19-2002, 12:32 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21