Guest User

Untitled

a guest
May 22nd, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. maned = fil.inInt(";");
  2. ar = fil.inInt(";");
  3. totalFortjeneste = fil.inInt(";");
  4. totalAntallManeder = fil.inInt(";");
  5. for(int i = 0; i < 3; i++) {
  6. for(int j = 0; j < 6; j++) {
  7. int etasje = fil.inInt(";");
  8. char bokstav = fil.inChar(" \n\r;");
  9. int rom = (int) (bokstav - 'A');
  10. hybler[i][j] = new Hybel();
  11. hybler[i][j].leietager = new Student();
  12. hybler[i][j].leietager.saldo = fil.inInt(" ;");
  13. hybler[i][j].leietager.navn = fil.inLine();
  14. // Priser. 6000 hvis hybelen er i 3. etasje, ellers 5000.
  15. if(i==2)
  16. hybler[i][j].husleie = 6000;
  17. else
  18. hybler[i][j].husleie = 5000;
Advertisement
Add Comment
Please, Sign In to add comment