This doesn't work:

if (m == 1,2,3) {
                      cout<< "Sorry you cannot go any farther north.\n";
                      }

How can I make this work?

Ink

This doesn't work:

if (m == 1,2,3) {
                      cout<< "Sorry you cannot go any farther north.\n";
                      }

How can I make this work?

Ink

if (m == 1 || m == 2 || m == 3)

thanks

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.