摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?phpsession_start();if($_SESSION["issession"]!=true){echo"<ahref=login.php>重新登录</a>"... 阅读全文
摘要:
<form id="form1" name="form1" method="post" action="checklogin.php"> <p> <label>name <input type="text" name="name" id="name" /> </label> </p> <p> <label&g... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?php$username=$_POST[name];$password=$_POST[password];$link=mysql_connect("localhost:3306","stud... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<formid="form1"name="form1"method="post"action="checklogin.php"><p><label>name<... 阅读全文
摘要:
main(){int a,b,c,t;printf("plz input three numbers:");scanf("%d,%d,%d",&a,&b,&c);if (a>b){t=a;if (c>a)t=c;}else{t=b;if(c>b)t=c;}printf("%d",t) ;getch();}main() { int i,j,k,tem; i... 阅读全文
摘要:
在matlab中输入数据时 input 函数时 只要运行时 在键盘中 []就OK了 a=input('输入数据:') ;n=length(a);i=1;j=1;for j=1:nfor i=2:nif a(i-1)<a(i)b=a(i);a(i)=a(i-1);a(i-1)=b;endendenda 阅读全文
摘要:
如果数组中存在这样的数,这个数比它左边的所有的数大,并且比它右边的所有的数小,则输出这个数字的索引。(不包括最左和最右边的数字)要是有多个的话则输出所有符合这些数字的下标。例如:int arr[] = {5,3,6,2,7,10,8,12}; 7比它左边的数都大,比它右边的数都小,所以返回4输入要求:第一个数字为数组元素的个数.之后是数组的元素.例如85 3 6 2 7 10 8 12输出 4编写... 阅读全文
摘要:
main(){void sort(int **p,int n);int i,n,date[10],**p,*a[10];for(i=0;i<10;i++)a[i]=&date[i];for(i=0;i<10;i++)scanf("%d",a[i]);p=a;sort(p,10);for(i=0;i<10;i++)printf("%5d",*a[i]);printf("\n... 阅读全文
摘要:
1、特殊变量与常数 ans 计算结果的变量名 computer 确定运行的计算机 eps 浮点相对精度 Inf 无穷大 I 虚数单位 inputname 输入参数名 NaN 非数 nargin 输入参数个数 nargout 输出参数的数目 pi 圆周率 nargoutchk 有效的输出参数数目 realmax 最大正浮点数 realmin 最小正浮点数 varargin 实际输入 的参量 vara... 阅读全文