| | |
Beginning: Need Help on an Issue.
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2005
Posts: 1
Reputation:
Solved Threads: 0
Im just beginning on C++, and one of the main problems that Ive encountered that I would like to get past is the fact that with simple programs you can only enter one thing, and after the code executed after that function is done, all you can do is press enter and the application quits.
The most complex program I have made tells you to input a country. Three countries are displayed across the top, and a number is assigned to each one. You type that number in and press enter and a printf function shows some text talking about that country. But after that, all you can do is press enter and the application closes. Can anyone help me with getting past this? I want it to be where you can enter another country other than the one you just looked at and it will display the data for that country too.
I think that it might have something to do with variables and looping? (Which I know a few things about.)
The most complex program I have made tells you to input a country. Three countries are displayed across the top, and a number is assigned to each one. You type that number in and press enter and a printf function shows some text talking about that country. But after that, all you can do is press enter and the application closes. Can anyone help me with getting past this? I want it to be where you can enter another country other than the one you just looked at and it will display the data for that country too.
I think that it might have something to do with variables and looping? (Which I know a few things about.)
•
•
•
•
Originally Posted by Ian13
Can anyone help me with getting past this? I want it to be where you can enter another country other than the one you just looked at and it will display the data for that country too.
I think that it might have something to do with variables and looping? (Which I know a few things about.)
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- News Story: UK Government fails to take IPv6 implementation seriously (Domains and DNS)
- Flash MX: Collison with a symbol which is rotating issue (Game Development)
- Power boot up issue (Motherboards, CPUs and RAM)
- Windows XP Issue or Spyware? (Windows NT / 2000 / XP)
- Wierd Problem please help! (Windows NT / 2000 / XP)
- Internet Explorer Connection Issue (Web Browsers)
- Netgear router issue...read this if you have one (Networking Hardware Configuration)
Other Threads in the C++ Forum
- Previous Thread: Mathematics In A Stack
- Next Thread: File Compare
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






