#include <stdio.h>
#include <string.h>
main()
{
void enterdata(int y[]);
int y;
int i=0;
int choice;
void searchdata(int x[]);
char paint [9];
char colours [9];
char search[9];
int colour_no;
int r;
int x=0;
void display(int y[]);
if(y>=5701||y<=5709)
printf("Choice Available:%d",enterdata);
if(y<5701||y>5709)
printf("Choice Not Available:%d",enterdata);
if(x!=-1)
printf("Colour Found:%s",colours);
if(x==-1)
printf("Colour Not Found:%s",colours);
}
void enterdata(int y[]){
int i;
if(i>=5701||i<=5709)
{
printf("Enter choice");
scanf("%d%",i);
}
else(i<5701||i>5709);
printf("Re-enter choice:");
{
if(i==5701)
{
printf("Red\n:");
}
if(i==5702)
{
printf("Blue\n:");
}
if(i==5703)
{
printf("Black\n:");
}
if(i==5704)
{
printf("White\n:");
}
if(i==5705)
{
printf("Green\n:");
}
if(i==5706)
{
printf("Silver\n:");
}
if(i==5707)
{
printf("Yellow\n:");
}
if(i==5708)
{
printf("Pink\n:");
}
if(i==5709)
{
printf("Orange\n:");
}
}
printf("Enter paint size");
printf("1.Quart\n 2.Half\n 3.Gallon\n Please Enter choice");
scanf("%d",&i);
int choice;
if(choice==1)
printf("Quart is $55\n:");
if(choice==2)
printf("Quart is $85\n:");
if(choice==3)
printf("Quart is $110\n:");
}
void searchdata(int x[])
{
char colours[9];
int colour_no;
int r;
int paint=9;
printf("Enter search colour_no:");
scanf("%d",colour_no);
printf("Enter search colours");
scanf("%s",colours);
While(colours!=paint[x].colour_no&&x<=9);
x++;
{
printf("Colour no found!\n");
printf("Name:%s\n",colours);
printf("colour no:%d\n",colour_no);
scanf("%d%",colour_no);
}
if(x<0||x>9);
{
printf("Colour no Not Found!\n");
}
for (r=0; r<=9; r++)
{
if((colour_no[r])==0);
return r;
}
return -1;
}
void display(int y[]);
{
int i;
int choice;
if(i=5701;i<=5709;i++)
{
printf("Choice is %d\n",enterdata[y]);
}
printf("Enter paint size");
printf("1.Quart\n 2.Half\n 3.Gallon\n Please Enter choice");
scanf("%d",&i);
if(choice==1)
printf("Quart is $55\n:");
if(choice==2)
printf("Quart is $85\n:");
if(choice==3)
printf("Quart is $110\n:");
}
I could read that code, but I'm not going to. Use [ code ] [ /code ] blocks.
main()
has never been correct C++. int main()
is.
thnx for the assistance :D
anyone here gud at designing flowcharts?