Questions tagged [flags]

Flags are atomic data structures used to identify state in a program.

A flag field is an integer interpreted as a sequence of boolean bits, each called a flag. A single flag has two possible states: 0, representing false or off, and 1, representing true or on.

This tag can be used for problems related to .

Source

Wikipedia

1473 questions
-6
votes
1 answer

Minesweeper flags java

I'm pretty new in programming, but i need to program the game Minesweeper. basically the game is running, but there are some parts that wont work at all. The first problem are the flags. My Minesweeper is able to set flag by right clicking on a…
-6
votes
4 answers

What are flags and bitfields?

Can someone explain to me what flags and bitfields are. They seems to be related to each other, or mabye i got the wrong idea. I kinda grasp bits and pieces of what they do and are but I would like to get them fully explain and I can't really find…
-7
votes
2 answers

Which loop does the 'continue' act on with a flag?

The continue statement should act on the inner loop, right?? Or am I missing something? for (j=0; j< 100; j++) { for (i=0 ; i<10; i++) { bool flag = false; //CALL TO A FUNCTION WHICH, BASED ON SOME CONDITION, MODIFIES…
ZeroTwo
  • 307
  • 1
  • 3
  • 12
1 2 3
98
99