[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Kan ikke finde fejl.



Christian Brønnum-Hansen <sslug@sslug> writes:

> Jeg har dette stykke kode:
> Variablen "level" har værdien 20;
> 
> ifstream persons ("persons");
> for (int nr = 0 ; nr <= level * 4 ; nr++) {
> 	monsters.getline(personsline, 10);
> }

> Og på linie 81 i filen "persons" står der "2 7 3 1".

Og (med mindre du 0-indexer linienumrene) den indlæser du i den første
løkke som ikke giver noget uddata.

.Henrik

-- 
Den største fordel ved Windows er den gode understøttelse af
Windows-programmer.
                          -- citat Niels Andersen (i dk.edb.system.unix)


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *