how can i Write a C++ program to display cities of USA using switch case
newyork,virginia,texas,hollywood,chicago & newmexico
asoud80 0
Newbie Poster
Recommended Answers
Jump to PostIf 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 …
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.