I've been away from programming for a long time, and starting at this spot, but I get a wierd error that I can't remember how to fix..:
My error is:Code://///////////////////////// // Coin program // ------------ // // Calculates which coins // to give to a person // if he pays a product // with a certain amount // of money.. /////////////////////////// //includes #include <iostream.h> //Start int main() { int money; //pengene int en = 0, to = 0, fem = 0, ti = 0, tyve = 0, halvtreds = 0; //under 100 int hundrede = 0, tohundrede = 0, femhundrede = 0; //under 1000 int tusind = 0, totusind = 0, femtusind = 0; //resten int y=0; do { cout << "What is the change amount?"; cin >> money; if(money >= 5000) { money -= 5000; femtusind++; continue; } if(money >= 2000) { money -= 2000; totusind++; continue; } if(money >= 1000) { money -= 1000; tusind++; continue; } if(money >= 500) { money -= 500; femhundrede++; continue; } if(money >= 200) { money -= 200; tohundrede++; continue; } if(money >= 100) { money -= 100; hundrede++; continue; } if(money >= 50) { money -= 50; halvtreds++; continue; } if(money >= 20) { money -= 20; tyve++; continue; } if(money >= 10) { money -= 10; ti++; continue; } if(money >= 5) { money -= 5; fem++; continue; } if(money >= 2) { money -= 2; to++; continue; } if(money >= 1) { money -= 1; en++; continue; } cout << "You give this to the customer:" << endl; cout << "5000:" << femtusind << endl; cout << "2000:" << totusind << endl; cout << "1000:" << tusind << endl; cout << "500:" << femhundrede << endl; cout << "200:" << tohundrede << endl; cout << "100:" << hundrede << endl; cout << "50:" << halvtreds << endl; cout << "20:" << tyve << endl; cout << "10:" << ti << endl; cout << "5:" << fem << endl; cout << "2:" << to << endl; cout << "1:" << en << endl; cout << "Want to quit? (yes = 1, no = 2)" << endl; cin >> y; } while(y != 1); return 0; }
LIBCD.lib(_flsbuf.obj) : fatal error LNK1190: invalid fixup found, type 0x000E
It's under linking.
Btw. I know the program is a bit long, but it's made over danish kroners.
I would appreciate any help.
Thx in advance.![]()



LinkBack URL
About LinkBacks




