Hi,i tried normal swapping method like this (counter is number of structures written in file) :
fopen("books.txt","r+");
system ("cls");
for(i=1;i<counter-1;i++){...
Type: Posts; User: Vedran
Hi,i tried normal swapping method like this (counter is number of structures written in file) :
fopen("books.txt","r+");
system ("cls");
for(i=1;i<counter-1;i++){...
Oh so stupid mistake,didnt think about that .. Thank you! :)
My code is in Croatian...
I type full book name with spaces in bookname,name and surname of author in author,and year in year with this:
printf("\nHow many books do you want to type in?\n");...
Hi,i need help with my book database.I use scanf to store book name,author name and year when is book writen.
example:
scanf(" %[^\n]",k[i].bookname);
I have problem when i want to printf...