How to draw flowchart for code involving opening from text file and reading them

Posted by problematic on Stack Overflow See other posts from Stack Overflow or by problematic
Published on 2014-08-25T15:58:01Z Indexed on 2014/08/25 16:20 UTC
Read the original article Hit count: 247

Filed under:
|
|

like this code

  fp1=fopen("Fruit.txt","r");
  if(fp1==NULL)
  {
       printf("ERROR in opening file\n");
       return 1;
  }
  else
  {
    for(i=0;i<lines;i++)//reads Fruits.txt database
    {
    fgets(product,sizeof(product),fp1);
    id[i]=atoi(strtok(product,","));
    strcpy(name[i],strtok(NULL,","));
    price[i]=atof(strtok(NULL,","));
    stock[i]=atoi(strtok(NULL,"\n"));
    }
  }
  fclose(fp1);

These symbols sound too similar to differentiate their function,can anyone helps me by any method, or use names of shape according to this site http://www.breezetree.com/article-excel-flowchart-shapes.htm

© Stack Overflow or respective owner

Related posts about c

    Related posts about Windows