Jun 7, 2015 at 1:57pm UTC
You can't call main() as you are doing on lines 101,145,172,196,238,258 and 282. If you put them in so as to get back to main, that happens automatically. If you put them in to recurse, then use a loop. You also don't give any error message or specifics.
Jun 7, 2015 at 2:06pm UTC
i suspect something is wrong at 91 line or something with NULL
Last edited on Jun 7, 2015 at 2:06pm UTC
Jun 7, 2015 at 2:55pm UTC
damnnnnnn...
still need to figure out how to delete
values in struc
1 2 3 4 5 6 7
struct clientData // client data
{
int accNum; // accnr
char Sur[15]; // surname
char Name[10]; // name
float balance; // balance
};
so far i managet to clear only number and blilance
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
void deleteentry()
{
int i;
int nr;
cout << "konta numuru\n" ;
cin >> nr;
for (int i = 0;i<100;i++)
if (nr == Data[i].accNum)
{
Data[i].accNum = 0;
Data[i].balance = 0;
}
main();
}
Last edited on Jun 7, 2015 at 2:56pm UTC
Jun 7, 2015 at 3:44pm UTC
LOL *
sign did the trick ;)
Last edited on Jun 9, 2015 at 12:40pm UTC