now what i need is how do store all the items in one variables how to generate the item codes.how to make it work right
#include <stdio.h>
#include <stdlib.h>
main()
{
float u_prx = 0.0f; // unit price
float total=0.0f; // total
float G_total=0.0f; // grand total
char qtt_in_bl=0; // quntity in bottle
char qty_left=0; // quntity left
char items[50]; // item name
char code[10]; // item code
char sele; // seletion of data
puts(" Welcome to my sales Program");
puts("<1> \tAdd an item");
puts("<2> \tAdd the quntity");
puts("♥> \tAdd the unit price");
puts("<4> \tview items");
puts("<5> \tEdit stock");
puts("<6> \tDelete item");
puts("<7> \texit");
puts("Enter selection");
scanf("%c",&sele);
switch (sele)
{
case '1':
puts("Enter the name of item :");
scanf("%s",items);
break;
}
}


Sign In
Create Account


Back to top









