Stuff
public text v1 · immutable#include<stdio.h>
#include<string.h>
#include<ctype.h>
# include <stdlib.h>
typedef struct {
char *name;
double price;
}Element;
Element sizelist[3] = { {"1.small", 1.00}, {"2.medium", 2.00}, {"3.large", 3.00}};
int main(int argc, char*argv) {
int i;
for (i=0; i<3; i++) {
printf("%s %d\n", sizelist[i].name, sizelist[i].price);
}
system ("pause");
return(0);
}