how can i Write a C++ program to display cities of USA using switch case
newyork,virginia,texas,hollywood,chicago & newmexico
Answered by Search_not 0 in a post from
Jump to Post
If you display a list and allow the user to choose one city using a integer input. I'm not sure if you can use a string in a Switch-statement... C++11 might allow you to, but nothing older.
The list would look something like this:
#include <iostream> using namespace std; …
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.