Pentiums Posted May 2, 2008 Report Share Posted May 2, 2008 nu lieta tāda... vajag vienas IQ spēles TOP 25 izveidot no punktu faila!! Te ir faila saturs: 1&Ievukz$97319 2&!Steels$90404 3&[VIP]sandris[lv]$62990 4&assaisnolv$49431 5&udajs_16$45483 6&liepas$20031 7&dinamits$17960 8&raicha(lv)$16534 9&krishukz.[lv]$14654 10&!Eriks$9359 11&zallais$6372 12&surais1972$5775 13&jancis1$5689 14&Vinchux$5223 15&liguha$3904 16&baibux1987$3310 17&Latgale$2364 18&muzikants$2356 19&miss99$1772 20&Gloria$1736 21&HAZARD$1304 22&Animal(LV)$1181 23&vimpelis$1096 24&kjins$864 25&HUN[pim]$792 26&Bomzite$768 27&Raivovich$746 28&JulijaU$694 29&alien$679 30&jancis$602 31&bu4a$568 32&shiny-bubble$549 33&morfius$507 34&Palas$391 35&WhosThatGirl$375 36&Gloria80$294 37&mrx25$284 38&Wilnis$264 39&janculis$240 40&jankabanka$215 41&inesiite$190 42&-=Babis=-$173 43&becherony$172 44&Laimuucs;]$164 45&Andre$161 46&room_35$148 47&friiks$145 48&sandris[lv]$135 49&ANTI$134 50&samanta$124 51&norico$105 52&jancis177$83 53&princesite91$80 54&spiderman$78 55&kuks$77 56&Madorg$75 57&kalakatiska$74 58&Inchuks$67 59&Ripley$66 60&prostreet$63 61&[LV]Defenderis$61 62&shokoladite$55 63&[Telia]Dzyn$48 64&Anna$46 65&Kekers2006$43 66&lineta!$42 67&gitish$37 68&Armandss$31 69&jan21$31 70&Devily$28 71&spiidala$27 72&Kitija$23 73&[LV]kkas$22 74&Odisejs$22 75&visvaldis$21 76&eziitc$19 77&Nazis$17 78&Evchix$13 Un vajag izvilkt tikai pirmās 25 rindas.. pēctam apstrādāt es mācēšu... tikai vajag padomu par tām rindām.. :( Link to comment Share on other sites More sharing options...
mounkuls Posted May 2, 2008 Report Share Posted May 2, 2008 (edited) WHILE vai FOR cikls jaizmanto izdrukai. Ielasi failu $file=file('fails.txt'); Pirmā rindiņa būs $file[0], otrā $file[1],..........25. būs $file[24]. Edited May 2, 2008 by mounkuls Link to comment Share on other sites More sharing options...
Recommended Posts