#include #ifdef __cplusplusextern "C" 
{#endif#include #include //#include #ifdef _MSC_VERint strcasecmp(const char 
*s1, const char *s2){ while ((*s...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 11:09:37   
                                阅读次数:
382
                             
                    
                        
                            
                            
                                行编辑程序、括号匹配检验程序都是利用的栈的数据结构。而这两个
小程序也非常好的显示了栈先进后出的思想。由于程序本身很简短、清晰,所
以也就不做多的解释了,直接上代码了。
行编辑程序:
#include
#include
using namespace std;
int main()
{
	stack sta;
	char ch = getchar();
	while(ch!=EOF)
...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 18:55:11   
                                阅读次数:
423
                             
                    
                        
                            
                            
                                #include
#include
int main()
{
	double k,m;
	int T;
	scanf("%d",&T);
	while(T--)
	{
		scanf("%lf%lf",&k,&m);
		int a=pow(10,log10(m)/k);
		while(pow(a+1,k)<=m)
			++a;
		printf("%d\n",a);
	}
	return 0;
}...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 18:44:58   
                                阅读次数:
296
                             
                    
                        
                            
                            
                                严重: Exception loading sessions from persistent storage 
java.io.EOFException
删除Tomcat里面的work/Catalina/localhost下的内容即可解决
Tomcat在启动时出现如下异常问题:
严重: IOException while loading persisted sessions...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 17:58:54   
                                阅读次数:
313
                             
                    
                        
                            
                            
                                awk程序中允许调用Shell指令,并提供管道解决awk与系统间数据传递的问题。所以awk很容易使用系统资源,读者可利用这个特点来编写某些适用的系统工具。范例:写一个awk程序来打印出线上人数。 
将下列程序建文件,命名为 count.awk BEGIN { while ( "w...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 11:45:51   
                                阅读次数:
281
                             
                    
                        
                            
                            
                                Actions 是由下列指令(statement)所组成: 1 表达式 ( 
函数调用,赋值...) 2 print 表达式列表 3 printf( 格式化字符串, 表达式列表) 4 if( 表达式 ) 语句 [else 语句] 5 
while( 表达式 ) 语句 6 do 语句 while( 表.....
                            
                            
                                分类:
其他好文   时间:
2014-05-04 11:26:31   
                                阅读次数:
486
                             
                    
                        
                            
                            
                                So many days passed since the last C tutorial about the flowchart, this chapter we will go on  the flowchart and while loops...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 09:01:20   
                                阅读次数:
307
                             
                    
                        
                            
                            
                                1 while 等循环语句1 break 和 continue的去别2 
将短的循环写在外面,长的写在里面;3 循环嵌套尽量短2 voidvoid *p,为空指针类型,可以指向任何的类型若函数不接受参数,应写明 void,3 
return1234567891011121314#include int ...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 23:17:33   
                                阅读次数:
368
                             
                    
                        
                            
                            
                                题意:给定背包体积与物品的体积与价值 求正好放完的最小价值#includeusing 
namespace std;int min(int a,int b){ if(a>t; while(t--) { 
cin>>m1>>m2; m=m2-m1; ...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 22:37:20   
                                阅读次数:
437
                             
                    
                        
                            
                            
                                题意:求最大上升子序列和#includeusing namespace std;int 
main(){ int n,a[1001],b[1001],max; while(cin>>n&&n!=0) { for(int 
i=1;i>a[i]; b[1]=a...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 22:29:38   
                                阅读次数:
282