Block Example
#include <stdafx.h>
#include <iostream>
#include <string>
using namespace std;
/* A block is a set of logically connected statements. */
int main()
{ // begin block 1
bool condition = true;
if (condition)
{ // begin block 2
cout<< "Condition is true." << endl;
} // end block 2
else
{ // begin block 3
cout<< "Condition is false."<< endl;
} // end block 3
return 0;
} // end block1
Output:
Condition is true.