jessecwalters Posted January 15, 2010 Report Share Posted January 15, 2010 So Im in a programming class for school, and so far Ive gotten what we've learned and can write a simple code. But I don't know how to write the code for "press any key to continue" and make the system pause, until enter or another key is pressed. I am using Microsoft visual studio 2005. If any one can help it would be appreciated. I need it soon too please Quote Link to comment Share on other sites More sharing options...
Cheech Posted January 15, 2010 Report Share Posted January 15, 2010 tsk tsk tsk...Rule number one of the IT world is if you have a problem, google the shit out of it.http://www.xtremevbtalk.com/showthread.php?t=147426http://bytes.com/topic/c/answers/484383-message-press-any-key-continuecame from a google of "visual c++ press any key to continue". Work on your google-fu, you'll need it if you want to try and make a career out of IT. Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted January 15, 2010 Author Report Share Posted January 15, 2010 I did, and i was trying some of the things i found. It dipslays "press enter to continue" but it doesnt wait for the input...? Quote Link to comment Share on other sites More sharing options...
$pecial_K Posted January 15, 2010 Report Share Posted January 15, 2010 When using Visual Studio, MSDN is your friend!http://msdn.microsoft.com/en-us/library/aa983532(VS.71).aspx Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted January 15, 2010 Author Report Share Posted January 15, 2010 that msdn is more confusing than the c++.... plus idk what im looking for would be under Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted January 15, 2010 Author Report Share Posted January 15, 2010 also, im looking for a press to continue, not press to exit. I have the code for press to exit Quote Link to comment Share on other sites More sharing options...
ReconRat Posted January 15, 2010 Report Share Posted January 15, 2010 When using Visual Studio, MSDN is your friend!http://msdn.microsoft.com/en-us/library/aa983532(VS.71).aspxyeah buddie, microsoft is soooo reliable...just clicked the samples and got this...Content cannot be found The content you requested is not available in your language English (United States). The list below contains all copies of this page for all supported locales and versions. Click on one of the links to view an alternate copy of the content. Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted January 15, 2010 Author Report Share Posted January 15, 2010 haha ^^ i was getting that too Quote Link to comment Share on other sites More sharing options...
$pecial_K Posted January 15, 2010 Report Share Posted January 15, 2010 yeah buddie, microsoft is soooo reliable...just clicked the samples and got this...I never said anything about Microsoft being reliable! I just stated that the MSDN has documentation for programming with Visual studio. Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted January 15, 2010 Author Report Share Posted January 15, 2010 I figured it out.. one of the websites had what i wanted. thnx for the helps! Quote Link to comment Share on other sites More sharing options...
ReconRat Posted January 15, 2010 Report Share Posted January 15, 2010 I never said anything about Microsoft being reliable! I just stated that the MSDN has documentation for programming with Visual studio.no worries, I just got this thing about microsoft giving me useless outdated bogus information when I'm working on fixing stuff. It's aggravating...so Jesse, googling does give a lot of code examples, it sure beats the old fashioned way, checking 20 programming books out of the library and searching for code examples... Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted January 15, 2010 Author Report Share Posted January 15, 2010 Yea it did. Its just annoying when Im looking for one thing and 10 pages are not what I want, Its lame having to sort through garbage tho. Quote Link to comment Share on other sites More sharing options...
Aerik Posted January 15, 2010 Report Share Posted January 15, 2010 Sorry, I'd been off the site for a couple of days, I could've told you right off what you needed. Oh well, PM me next time you need something like that-- I've still got all my notes, books, handouts, and old progs from my last two C++ classes. Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted January 15, 2010 Author Report Share Posted January 15, 2010 Cool. I will do that if I run into any problems I cant figure out in later labs. Quote Link to comment Share on other sites More sharing options...
Disclaimer Posted April 20, 2011 Report Share Posted April 20, 2011 So, short story long... I took a new position, it's embedded controller based, lots of c-coding which I haven't done since college...Any refresher book recommendations "C+ for Dummies", etc to brush up on my C-skillz? Quote Link to comment Share on other sites More sharing options...
Cheech Posted April 20, 2011 Report Share Posted April 20, 2011 So, short story long... I took a new position, it's embedded controller based, lots of c-coding which I haven't done since college...Any refresher book recommendations "C+ for Dummies", etc to brush up on my C-skillz?yeah, ballpeen hammers work better on terminals than claw hammers. Make sure you get a hefty weight for when you get into hour 36 and your code still won't compile. Don't worry if you can't lift it out of the store, the adrenaline will take care of that later. Quote Link to comment Share on other sites More sharing options...
flounder Posted April 20, 2011 Report Share Posted April 20, 2011 For the press any key you just scan for the interupts for the key inputs. for the pause until enter, you can throw it into a delay loop looking for the interupt for enter. Quote Link to comment Share on other sites More sharing options...
shittygsxr Posted April 20, 2011 Report Share Posted April 20, 2011 cant find my "any" key Quote Link to comment Share on other sites More sharing options...
Cheech Posted April 20, 2011 Report Share Posted April 20, 2011 cant find my "any" keyballpeen hammers also work well for snarky assmunchers Quote Link to comment Share on other sites More sharing options...
Jcarlson Posted April 21, 2011 Report Share Posted April 21, 2011 Where are you taking classes? I graduated from DeVry back in 93. I'm a mainframe Cobol programmer (old school) at Grange Insurance. Been there eight years. Worked at National City for seven years until they outsourced me to India, and at The Limited for three years before that.I'm trying to learn C# but I don't have enough time in the day (gotta ride, right? LOL)Jim Quote Link to comment Share on other sites More sharing options...
flounder Posted April 22, 2011 Report Share Posted April 22, 2011 Where are you taking classes? I graduated from DeVry back in 93. I'm a mainframe Cobol programmer (old school) at Grange Insurance. Been there eight years. Worked at National City for seven years until they outsourced me to India, and at The Limited for three years before that.I'm trying to learn C# but I don't have enough time in the day (gotta ride, right? LOL)JimOuch, Cobol.. I remember that language. Not a hard language but takes forever to write a program. Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted April 26, 2011 Author Report Share Posted April 26, 2011 Another zombie thread again. MY problem was solved, I dont remember how tho. @ JRMMiiiI dont remember what book we used in the class, if I can find it ill post up what it was. @ JcarlsonIm attending the campus on Alum Creek. I just got out of a class where we did a lot of assembly and a little bit of c. pain in the ass. interesting tho.@ shittygsxr the "any" key is right next to the "divide by zero" key Quote Link to comment Share on other sites More sharing options...
gezzer750 Posted April 29, 2011 Report Share Posted April 29, 2011 exit sub Quote Link to comment Share on other sites More sharing options...
SpeedTriple44444 Posted April 29, 2011 Report Share Posted April 29, 2011 For embedded, wouldn't you typically not bother with C++ and just use plain old C?That's the answer I got from one of our resident eggheads... I mean programmers, when I was looking to get into embedded design. I've done some assembly, and it's really not that difficult... just tedious. Quote Link to comment Share on other sites More sharing options...
jessecwalters Posted May 1, 2011 Author Report Share Posted May 1, 2011 yea, for the embedded it was just c and assembly. Thats was the last class i took. The thread was originally from months ago and I was taking a C++ class at that time. and assembly can be quite annoying, as can all the other programming languages Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.