Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maned = fil.inInt(";");
- ar = fil.inInt(";");
- totalFortjeneste = fil.inInt(";");
- totalAntallManeder = fil.inInt(";");
- for(int i = 0; i < 3; i++) {
- for(int j = 0; j < 6; j++) {
- int etasje = fil.inInt(";");
- char bokstav = fil.inChar(" \n\r;");
- int rom = (int) (bokstav - 'A');
- hybler[i][j] = new Hybel();
- hybler[i][j].leietager = new Student();
- hybler[i][j].leietager.saldo = fil.inInt(" ;");
- hybler[i][j].leietager.navn = fil.inLine();
- // Priser. 6000 hvis hybelen er i 3. etasje, ellers 5000.
- if(i==2)
- hybler[i][j].husleie = 6000;
- else
- hybler[i][j].husleie = 5000;
Advertisement
Add Comment
Please, Sign In to add comment