| | |
Ideas beyond my skill level
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2007
Posts: 5
Reputation:
Solved Threads: 0
I have many of them
At this point I'm looking for help with a specific idea I know is possible, I just have no idea how to pull it off
first some code:
Now let's define what I want from the methods:
method1 - A simple method that accepts one character, as soon as it is hit, without waiting for a newline (or "return") and lets me send it to a char variable to check with, for instance, an if statement.
method2 - A method that checks for a character and allows it to be returned and acted upon in the Do more stuff section. If nothing is there it does different stuff in the do more stuff. Possibly used in a game situation for a real time combat system to check for user input and then go on to calculate some computer player actions.
I'm not too sure if I explained what I want adequately. It makes perfect sense in my head, and I'm sure these methods exist in standard libraries somewhere, I just don't know where.
Thanks for any time you may waste looking at this
At this point I'm looking for help with a specific idea I know is possible, I just have no idea how to pull it offfirst some code:
C++ Syntax (Toggle Plain Text)
cout << "Would you like to continue? (Y/N); method1();
C++ Syntax (Toggle Plain Text)
while(someSentinal) { //Do stuff method2(); //Do more stuff }
method1 - A simple method that accepts one character, as soon as it is hit, without waiting for a newline (or "return") and lets me send it to a char variable to check with, for instance, an if statement.
method2 - A method that checks for a character and allows it to be returned and acted upon in the Do more stuff section. If nothing is there it does different stuff in the do more stuff. Possibly used in a game situation for a real time combat system to check for user input and then go on to calculate some computer player actions.
I'm not too sure if I explained what I want adequately. It makes perfect sense in my head, and I'm sure these methods exist in standard libraries somewhere, I just don't know where.
Thanks for any time you may waste looking at this
![]() |
Similar Threads
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- reading file types (C#)
- Looking for Coders to work with me on a project (VB.NET)
- WebDevShack.com Review (Website Reviews)
Other Threads in the C++ Forum
- Previous Thread: Help on C++ Final Exam !!!
- Next Thread: C++ and data access
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






