[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.



Den Fri, 23 Jul 2004 21:10:06 +0200. skrev Henrik Christian Grove:

> Christian Brønnum-Hansen <sslug@sslug> writes:
> 
>> Nej jeg har gjort det i to forskellige løkker før og det er lettest syne
>> sjeg. Der må være en decideret fejl siden i koden.
>> I den næste løkke kommer jo netop en linie der skal indlæst linie 81.
>> Så om det bliver gjort i den første eller den sidste er vel ligemeget?
> 
> Nej, den første linie du indlæser i den anden løkke er linie 82!
> 
> .Henrik

Okay det har du nok ret i. Men det løser ikke hele problemet.
Nu ser første løkke sådan ud:

for (int nr = 0 ; nr < level * 4; nr++) {
	monsters.getline(personsline, 10);
	cout << nr << endl;
}

Men output bliver:
0
1
2
3
...
79
0
0
0
0



 
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] *