代码改变生活,代码改变世界!

摘要: Math.round(11.5) =12;Math.round(-11.5) =-11;Math.round()函数是求某个数的整数部分,且四舍五入。 阅读全文
posted @ 2017-03-08 22:44 EnjoyLifeXK 阅读(2343) 评论(0) 推荐(0) 编辑
摘要: 使用DOS命令进入指定文件夹打开文本文件:回车确定先进入F盘:回车后输入: F:然后回车就进入了F盘,如下图:然后比如我们要打开 F:\电脑桌面文件\hosts文件.txt文件,打开步骤如下:然后回车就会看到打开的文本文件如下图: 阅读全文
posted @ 2016-11-27 20:17 EnjoyLifeXK 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include //包含printf()、scanf()、gets()、puts()、getchar()函数#include //包含malloc()函数#include //包含strcmp()、strlen()、sizeof()、strcpy()函数#include //包含s... 阅读全文
posted @ 2016-04-14 21:41 EnjoyLifeXK 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: package SourceFile;//创建动物类(父类).public abstract class CAnimal{ public booleanmammal; //是不是哺乳动物 public booleancarnivorous; //是不是食肉动物 public intmood... 阅读全文
posted @ 2016-04-14 21:26 EnjoyLifeXK 阅读(260) 评论(0) 推荐(0) 编辑
摘要: net user //查看有哪些用户net start //查看开启了哪些服务项目net send ip “文本信息” //向对方发送消息(如果对方关了信使有可能会收不到)net password 密码 //更改系统登录密码ping -t -1 65550 ip 死亡之ping(发送大于64... 阅读全文
posted @ 2016-04-14 21:15 EnjoyLifeXK 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){ int x = 0x1234; if (char(x) == 0x34) { printf("小端机!\n"); } else { printf("大端机!\n"); } return 0;} 阅读全文
posted @ 2016-04-14 21:12 EnjoyLifeXK 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std; //声明命名空间void main(){ char format[12]="format", name[10], choice; re:system("cls"); //用于跳转到此的节点 cout>choice; switch(cho... 阅读全文
posted @ 2016-04-14 21:04 EnjoyLifeXK 阅读(974) 评论(0) 推荐(0) 编辑