引言:我们先来看一个程序:intmain(){charch1;charch2;scanf("%c",&ch1);ch2=getchar();system("pause");return0;}可以看到,当输入a之后程序就停止了,我们不禁思问,ch2为什么不能输入???这时因为当输入a之后,又输入了一个回车,getchar()将回车接受了,因此程序结..
分类:
其他好文 时间:
2016-03-20 10:31:43
阅读次数:
202
main() { float a,b,d,e,f;a=0.3;b=0.6;d=a*8;e=3-d;f=e/b; /*到这里f正好等于1.0*/printf("%d and %f\n",(int)f,f);system("pause");}打印的结果是:0 and 1.000000为什么取整没取到1呢
分类:
其他好文 时间:
2016-03-18 15:57:39
阅读次数:
164
1、tomcat闪退 a、环境变量错误 startup.bat最后假如PAUSE进入调试状态,双击startup.bat,可以看到错误,根据错误提示设置相应的环境变量,JAVA_HOME等。 b、eclispe设置问题,当eclispe server locations选项为第一项时,tomcat无
分类:
编程语言 时间:
2016-03-07 19:00:17
阅读次数:
196
建立源文件List.cppinclude"List.h"
intmain()
{
Test();
system("pause");
return0;
}建立头文件List.h#ifndef__LISH_H__
#define__LISH_H__
#include<iostream>
usingnamespacestd;
typedefintDataType;
structListNode
{
ListNode(DataTypex)
:_next(NULL)
,_prev(..
分类:
编程语言 时间:
2016-03-05 22:14:02
阅读次数:
312
建立源文件List.cpp#include"List.h"
intmain()
{
Test();
system("pause");
return0;
}建立头文件List.h#ifndef__LIST_H__
#define__LIST_H__
#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
typedefintDataType;
typedefstructListNode
{
Da..
分类:
编程语言 时间:
2016-03-05 22:09:26
阅读次数:
211
建立源文件,命名为:Slist.cpp。#include"Slist.h"
intmain()
{
Test();
system("pause");
return0;
}建立头文件,命名为:Slist.h。#ifndef__SLISH_H__
#define__SLIST_H__
#include<iostream>
usingnamespacestd;
typedefintDataType;
classSlistNode
{
friendcla..
分类:
编程语言 时间:
2016-03-04 02:09:29
阅读次数:
330
1.onCreate; 2.onStart; 3.onResume; 4.onPause; 5.onStop; 6.onRestart; 7.onDestory; 两种特殊情况:a-----Pause和Resumed: 当用户在Paused状态按返回键,会直接进入Resumed; b-----Sto
分类:
其他好文 时间:
2016-03-04 00:41:45
阅读次数:
171
建立源文件SeqList.cpp:#define_CRT_SECURE_NO_WARNINGS1
#include"SeqList.h"
intmain()
{
Test();
system("pause");
return0;
}建立源文件SeqList.h:#ifndef__SEQLIST_H__
#define__SEQLIST_H__
#include<iostream>
usingnamespacestd;
#include<assert.h>
..
分类:
编程语言 时间:
2016-03-02 20:15:47
阅读次数:
251
一,定义一个时间标题的命令窗口@echooff:1title时间is:%time%goto1pause二,判断两个输入字符是否相等@echooffset/pvar=请输入第一个字符:set/pvar2=请输入第二个字符:if"%var%"=="%var2%"(echo我们相等)elseecho我们不相等pause三,编译java文件1)@echooffcdE:\jenkinsTestjavac..
分类:
其他好文 时间:
2016-03-02 13:30:19
阅读次数:
157
Docker一.docker常用命令容器生命周期管理—docker[run|start|stop|restart|kill|rm|pause|unpause]容器操作运维—docker[ps|inspect|top|attach|events|logs|wait|export|port]容器rootfs命令—docker[commit|cp|diff]镜像仓库—docker[login|pull|push|search]本地镜像管理..
分类:
其他好文 时间:
2016-03-01 16:03:11
阅读次数:
445