I have never made a flowchart before and have no experiance of it. I know what standard symbols and their meaning but I need some examples. If anyone can convert the following code in flowchart form then it may help me in making the complete flowchart
void MakeDirection(int d)
{
while (dir!=d)
{
if (dir==1 && d==4)
{
Left();
}
else if(dir==4 && d==1)
{
Right();
}
else if (d>dir)
{
Right();
}
else if (d<dir)
{
Left();
}
}
//lcd_wr_command(0x01);
//_delay_ms(1000);
}
where left and right are defined else where(i'll try to make a flowchart of those by myself) and dir is a global static variable(how are global variables expressed in a flowchart) Right() and Left() function decrement and increment the value of variable dir
Aucun commentaire:
Enregistrer un commentaire