/////// /////////// $at_page = 10; // ( 10) $count = ( ); // $pages = ceil($count / $at_page); $page = abs(intval(@$_REQUEST['page'])); if($page == 0) $page = 1; define('PAGE', $page); unset($page); $from = (PAGE-1)*$at_page; //////// /////////// if(PAGE > 1) echo '<a href="site.php?page='.(PAGE - 1).'"><br/></a>'; if(PAGE < $pages) echo ' <a href="site.php?page='.(PAGE + 1).'"></a> '; if($pages > 1) echo ''; /////////////////////////////////// <?php # =) # $file=file("1EE.txt"); # 1EE.txt $count=count($file); # 10 $z=10; /* 10 (ceil)*/ $num_pages=ceil($count/$z); # for($i=1;$i<=$num_pages;$i++) { echo '<a href="'.@$_SERVER['1EE.txt'].'?num='.$i*$z.'">'.$i."</a>\n"; } ?> ................................... , , . , Pascal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 type mas=array[1..10,1..10]of integer; var a:mas; n,m:integer; function Vvod(var a:mas; var n,m:integer):integer; var i,j:integer; f:text; begin assign(f,'read.txt'); reset(f); readln(f,n,m) ; for i:=1 to n do begin for j:=1 to n do read(a[i,j]); readln(f); end; close(f); end; function Soderzh(a:mas; n,m:integer):boolean; var chet, nech,i,j,s:integer; begin s:=0; for i:=1 to n do begin nech:=0; chet:=0; for j:=1 to m do if a[i,j] mod 2<>0 then nech:=nech+1 else chet:=chet+1; if (nech=m) or (chet=m) then s:=s+1; end; if s=n then writeln('true') else writeln('false'); end; function Vivod(a:mas; n:integer):integer; var i: integer; f:text; assign(f,'otvet.txt'); rewrite(f); for i:=1 to n do write(f,b[i]); close(f); end; begin vvod(a,n,m); soderzh(a,m,n); readln; readln; end. ////////////////// ( php) - txt ? , ? . 03.02.2013, 19:10 $lines = file('file.txt'); $cnt = count($lines); $rand = rand(0, ($cnt-1)); echo trim($lines[$rand]); // ? - 1 "" - 10 "" - 100500 ? WeberSeo 03.02.2013, 19:49 $lines = file('file.txt'); $cnt = count($lines); $rand = rand(0, ($cnt-1)); echo trim($lines[$rand]); // ? - 1 "" - 10 "" -
далее
перейти
в начало
В библиотеку

на главную



..
(c) xika.ru