How to implement flags?

Answer Posted / sachin

enum Flag {Yes, No};

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the extern storage classes in c++.

537


What is Destructor in C++?

626


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

596


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2424


Write a recursive program to calculate factorial in c++.

595






Show the declaration for a static member variable.

514


What problems might the following macro bring to the application?

605


Give 10 points of differences between C & C++.

610


What is static in c++?

582


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

659


Is c++ proprietary?

568


Where can I run c++ program?

583


Why the usage of pointers in C++ is not recommended ?

885


Is swift faster than go?

594


Define token in c++.

700