searching google gave me all kinds of C++ tutorials that "include" conio.h, does anybody know a good tut/ref for conio?
searching google gave me all kinds of C++ tutorials that "include" conio.h, does anybody know a good tut/ref for conio?
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
>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.
>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:
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.Code:You you; while(true) { try { ToFigureItOut(you); break; } catch( YourMistake& m ) { // Post msg to newsgroup, updating you PostToNewsgroup(m.msg, you); } }
But hell, your code might work...I dont know because I didn't try to compile it.
Thanks for the tutorialOriginally 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
what does signature stand for?
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
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