I came across one project,where I found some code which I is not understandable to me. I just started with C++
, so it seems like a big problem for me. I am providing few lines of my project,which I am not able to understand.
class abc
{
public:
//some stuff
abc();
};
abc::abc()
{
int someflag = 0;
//code
if(someflag == 0)
{
do
{
//few strcpy operations
{ //(My Question)Without any condition braces started
//variable initialization
}
}while(condition);
}
}
Now my questions...
- What we can achieve by doing this operation?
- What is happening in inside braces of
do-while
loop? - What is the scope of the initialized variables (I mentioned) inside
do-while
loop? - Is it C++11?
Help me to understand this.