The forums are currently locked and only available for read only access
oxiswoofer
Member
Medlem
Forum Posts: 2101
Member Since:
April 1, 2003
April 1, 2003
![sp_UserOfflineSmall](https://nordichardware.se/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
tjoho! har fått en kodsnutt av en klasskamrat...men jag vill inte kopiera hans kod, så jag skrev om den...men det fungerar inte som det skall med min snutt....så...nån som kan hjälpa mig hitta felet?
orginal snutt:
for(i = 0, j = line_start; i < MAX_ROW && j < line_end + 1; i++, j++) {
temp[i] = text[j];
}
min snutt:
for(i=0; i <MAX_ROW; i++){
j = line_start;
if(j<line_end+1){
temp[j] = text[i];
j++;
}
jag tycker att båda snuttarna borde göra likadant...men min gör inte det...nån som ser felet?
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 694
Currently Online:
Guest(s) 34
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967
Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL
© Simple:Press —
![sp_Information](https://nordichardware.se/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_Information.png)