need some help

i need some help , i have a listbox that have some materiales y want that the user say how many materiales would take from the listbox and printed

the function capturar() get the material and saved in function texto()
y want printed all the material he chose



void invetariom()
{ int inv;
listbox inventario(1,2,50,24,"INVENTARIO");
FILE *ptrArchiBin;
strMateriales Datos;


ptrArchiBin = fopen("insumos.dat","rb");
if(ptrArchiBin != NULL){
fread(&Datos,sizeof(strMateriales), 1, ptrArchiBin);
while(!feof(ptrArchiBin)){
//printf("%d - %s\n", Datos.codigo, Datos.descip);

inventario.Agregar(Datos.codigo, Datos.descip);

inventario.Mostrar();


fread(&Datos,sizeof(strMateriales), 1, ptrArchiBin);
}
fclose(ptrArchiBin);
}
gotoxy(55,5);printf("ingrese cantida que seleccionara del inventario de materiales: ");
scanf("%d",&inv);

for(int i=0;i<inv;i++){
inventario.Capturar();
}
gotoxy(60,6);printf("%s\n",inventario.Texto());

getch();


system("CLS");


}//fin pantalla inventario
y want printed all the material he chose
What does that mean? What is your problem?
I'm showing materials in a list, what I want is to ask the user to enter the number of materials to choose and then print the selected materials
Topic archived. No new replies allowed.