Thank you so much for all those improvement ideas ;) im gonna spend a lot of time making those changes
Type: Posts; User: C-learner
Thank you so much for all those improvement ideas ;) im gonna spend a lot of time making those changes
Matticus what do you have any suggestion on a particular debugger good for windows users?
The remove function doesnt work if i call more than 3 functions which use it without closing my program, if i close my program after using each function then everything works fine. The remove/rename...
yeah clrscr() is not a standard function and can be absent in your compiler implementation. But if you insist on using them
system("cls") can be put in place of clrscr() if your on windows,...
Its 1200 lines of coding :( didnt wanna paste that here i'll figure something out then as it relates to bad recursion, pointer error and my buffers sizes and such
Yeah i changed all that :) my program is now finished and working fine
when i compile and run my program, if i keep using its different functions too many times then at some point it causes errors and disfunction but if i close and re-open, it works fine...possibly...
hey guys i have completed my project and i just wanna say thanks to all my helpers i learned so much from you guys and thanks to you im now a successful C database programmer yay! ;)
If anyone...
Wow i spent like 4 nights on this i feel like an idiot I SAID FEEL LIKE SO DONT GO CALLING ME 1 >:(
tabstop thank you man i just did that and its.... umm well my prob is solved(plus i can feel the...
Ok so im using a suggested method(which is pure genius i like how this was discovered and used) to update my records by writing both modified and not modified data to a new file then remove the...
Ok you made me do it *Sprinkles magical fairy dust on all the angry people* WHOOOOOOOSH! pob solved
But but arnt those for linux users im on windows
Uhhh hmmm ok Hodor
Still no workie...the file only update when i close the program
i used fflush after the fprintf()
After i have modified data from a file and write the updated data to a new file using "w+" mode i realize the data doesn't enter the newfile unless i close the program, is there an instant update...
Its so confusing i cant work out how im gonna do that..heres what i came up with(its in pseudocode format ish o.O)
1. id number of a specific account is entered here for searching
2. while...
Thanks salem its all fixed now but another problem, i cant replace some specific lines inside the file after a deposit is made...as you suggested It was a TOTAL WRECK after i executed those codes...
I tried a suggsted solution that is supposed to loop through a file and do something required then stops at the end with no problems but there are problems, i can only fetch the first account from my...
Im having a small problem displaying all the accounts on the screen...After using the condition(while!feof(acc)) it puts an extra copy on the screen of the last account being printed
..this is my...
Thanks stahta it works ;)
Correction code
printf("Please enter your account number\n");
scanf("%d",&id_one);
if((acc=fopen("Active Accounts.txt","r"))==NULL)
{
I tried this but it can only read the first structure recorded in the file
if((acc=fopen("Active Accounts.txt","r"))==NULL)
{
printf("\nERROR OPENING FILE.");
...
How do i let the program know the i-th structure(the structure with the account number entered for searching) which its gonna skip lines to..ive been reading about fgetpos() and fsetpos()...then...
Ok so it now reads from the file after the program is closed and re-opened thanks for the help DeadPlanet i now love fscanf and fprintf and how to use them correctly(which i had no knowledge of b4 i...
Thank you so much sir i am currently making the changes to what you pointed to...it all makes a lot of sense :biggrin:
read in each field individually? how should i structure that? should i use...
ok Click_here i made the changes and got rid of the junk code and checking out the info you pointed to