摘要: http://www.51zxw.net/show.aspx?id=27297&cid=410 阅读全文
posted @ 2014-10-13 19:57 lz3018 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 站点分为静态网站和动态网站,纯粹利用html编写的网站属于静态网站,不宜维护和更新而利用C#+extjs等前台+后台技术编写的网站就属于动态站点,有更多的交互,易维护和更新,比如降价的页面,利用html就需要重新做一个降价的页面,而动态网站只需要在原先页面的基础上只是通过后台修改下价格就可以了。动态... 阅读全文
posted @ 2014-09-24 16:02 lz3018 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 当程序第一次执行到Read()函数时,程序会被阻塞,然后输入字符,Enter之后程序被激活,windows平台会自动在输入字符之后加入回车符和换行符,此时输入流中就有三个字符,然而read每次只读取一个字符,之后两次调用read函数读取字符,然后再次调用read时程序会再次阻塞,因为无字符可读。利用... 阅读全文
posted @ 2014-09-23 21:17 lz3018 阅读(4646) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;void main(){int i,j;//cout>i>>j;int m=abs(i-j);int n=i+j;int a=(int)sqrt(m);//开不尽取整之后精度丢失。平方不等mint b=(int)sqrt(n);... 阅读全文
posted @ 2014-03-27 18:18 lz3018 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int main(){const int m=15;int a[m][m],i,j;//int a[9][9]9行9列的二位数组,a[0][0]~a[8][8],因此下面输出数组内容到a[9][9]会异常,利用VC++编译结果正常显示但//提示... 阅读全文
posted @ 2014-03-27 18:17 lz3018 阅读(122) 评论(0) 推荐(0) 编辑
摘要: // 十进制转化为各进制.cpp : Defines the entry point for the console application.//#include #includeusing namespace std;int main(){while(1){int input;cout>input... 阅读全文
posted @ 2014-03-27 18:16 lz3018 阅读(161) 评论(0) 推荐(0) 编辑
摘要: // 十进制转化为各进制.cpp : Defines the entry point for the console application.//#include #includeusing namespace std;int main(){while(1){int input;cout>input... 阅读全文
posted @ 2014-03-27 18:15 lz3018 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;void buddle(char*,int);//对输入字符的AScII进行排序void delete_num(char*,int);//去除已排好顺序中重复的字符.int main(){ while(1){char s[30]... 阅读全文
posted @ 2014-03-27 18:13 lz3018 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;#define N a//定义宏时后面不加;否则会把‘;’一起定义为宏.int getP(int,int);//int getWel(int,int*);int main(){while(1){int numbers;cout>numbers;... 阅读全文
posted @ 2014-03-27 18:12 lz3018 阅读(122) 评论(0) 推荐(0) 编辑
摘要: /*#includeusing namespace std;int main(){int sum[3000]={0};for(int i=1;imain(){ int i,a,b,n; for(a=1;ausing namespace std;int main(){for(int i=1;i... 阅读全文
posted @ 2014-03-27 18:11 lz3018 阅读(145) 评论(0) 推荐(0) 编辑