上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: 今天在看谭4,看到char的时候,上面有一句话说:可以把0-127之间的整数赋予一个字符变量,那把一个负数赋值给一个字符变量会怎么样呢?#include#include #include #include #include void main(){ char c... 阅读全文
posted @ 2015-07-19 13:23 明月镇魂 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 参考博客:C语言 unsigned 和 signed 类型相互转换深入理解参考博客:unsigned和signed对于unsigned 无符号数据类型是不应该向其赋值负数的,但是如果赋值了那会怎么样呢?#include #include int main(){ uns... 阅读全文
posted @ 2015-07-16 00:12 明月镇魂 阅读(977) 评论(0) 推荐(0) 编辑
摘要: 自己写的魔方阵算法(只能输出奇数阶)#include int main(int argc, char *argv[]){ int line,col,n,p,i,j; int a[15][15]={0}; p=1; while(p==1) { ... 阅读全文
posted @ 2015-06-24 00:01 明月镇魂 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 关于子查询中能否用order by子句,有以下两种情况:第一种例如:select a.col1 from a where a.col2 in (select b.col2 from b order by b.col1);这种情况下子查询只是一个集合,并不需要进行ord... 阅读全文
posted @ 2015-06-03 00:31 明月镇魂 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 第一种写法:update a set (c1,c2,c3) =(select c1,c2,c3 from b where......) where ......;第二种写法比较笨:update test set a= '11 ',b = '22 ' where id=... 阅读全文
posted @ 2015-06-01 00:38 明月镇魂 阅读(1790) 评论(0) 推荐(0) 编辑
摘要: 由于被吉林电科院扫出运监系统的weblogic登录密码是弱口令weblogic,所以要求修改weblogic中间件的登录密码。我首次使用了网上普遍的做法,先在weblogic控制台security Realms修改了weblogic用户的密码,然后停掉... 阅读全文
posted @ 2015-05-31 23:45 明月镇魂 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: 原文地址:董的博客,但是这篇文章的算法有点小问题,请注意看下面的评论。1. 素数判定问题素数判定问题是一个非常常见的问题,本文介绍了常用的几种判定方法。2. 原始算法素数的定义是,除了能被1和它本身整除而不能被其他任何数整除的数。根据素数定义 只需要用2到n-1去除n... 阅读全文
posted @ 2015-05-31 01:04 明月镇魂 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 谭4在讲解数组时举了一个例子,求三个字符串中最大的一个。#include#include #include void main(){ char str[3][20]; char string[20]; int i; for(i=0;i0) strcpy(string... 阅读全文
posted @ 2015-05-29 00:38 明月镇魂 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 今晚学习了一下字符数组的应用,根据要求(输入一行字符,统计有多少单词)编写几行代码,如下:#include#include #include void main(){ char word[100]; int i,j; i=0; gets(word); for(j=0;... 阅读全文
posted @ 2015-05-25 00:53 明月镇魂 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 在学习编程的过程中很多时候不知道什么是表达式的值,由于无法从DKBB上复制该篇文章所以截了两张图,其中请注意看特例. 阅读全文
posted @ 2015-04-12 14:27 明月镇魂 阅读(324) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页