使用java连接数据库,一般在日常jdbc的使用中,不会直接将数据源的信息写死在代码中,不利于扩展,一般会使用datasource.properties文件来保存数据源信息和驱动信息 datasource.properties: jdbc.driverClassName=oracle.jdbc.Or ...
分类:
数据库 时间:
2016-10-23 23:51:54
阅读次数:
239
Servlet请求头response应用简单案例:访问AServlet重定向到BServlet,5秒后跳到CServlet,并显示图片: AServlet 1 package cn.yzu; 2 import java.io.IOException; 3 import javax.servlet.S ...
分类:
其他好文 时间:
2016-10-23 17:34:12
阅读次数:
170
http://www.jb51.net/article/37688.htm fopen(打开文件)相关函数 open,fclose表头文件 #include<stdio.h>定义函数 FILE * fopen(const char * path,const char * mode);函数说明 参数p ...
分类:
其他好文 时间:
2016-10-23 14:42:51
阅读次数:
284
1227. Rally Championship Time limit: 1.0 secondMemory limit: 64 MB A high-level international rally championship is about to be held. The rules of the ...
分类:
其他好文 时间:
2016-10-21 23:50:34
阅读次数:
290
先上图,看效果:源代码chunli@linux:~$catmain.c
#include<stdio.h>
#include<math.h>
intc,p,i,j,n,F=40,k,m;
floata,x,y,S=0,V=0;
voidmain()
{
for(;F--;usleep(50000),F?puts("\x1b[25A"):0)
{
for(S+=V+=(1-S)/10-V/4,j=0;j<72;j+=3,putchar(10))
{
..
分类:
编程语言 时间:
2016-10-14 00:40:11
阅读次数:
191
CPrimerPlus的11章复习题10:编写个函数,其参数为一个字符串指针,返回一个指针,返回的指针指向字符串中第一个空格的位置(如果没有空格就返回空指针) 显示结果如下 然后改变下输入的字符串为tomloveslily,结果就变成了: 我理解应该是puts()函数的输入参数不可以是NULL空指针 ...
分类:
其他好文 时间:
2016-09-23 23:16:50
阅读次数:
501
1. This write "Hello" to the screen with a new line tailed to. Just like puts, but without new line. 2. This output the string length. "wonS noJ" Let' ...
分类:
其他好文 时间:
2016-09-06 00:56:03
阅读次数:
179
转自:http://blog.csdn.net/anye3000/article/details/6593551 有C语言写作历史的程序员往往特别喜欢printf 函数。即使可以使用更简单的命令(例如puts),但printf 出现在Kernighan和Ritchie的「hello, world」程 ...
分类:
其他好文 时间:
2016-09-05 17:01:44
阅读次数:
142
set w [open 1.txt w+] foreach a [info var] { if { [llength [array name $a]]==0 } { puts $w $a:[set $a] } } foreach a [info var] { if { [llength [array ...
分类:
其他好文 时间:
2016-09-01 22:48:16
阅读次数:
147
C语言中字符串处理函数介绍 下面介绍8种基本的常用的字符串处理函数,在数值数组中也常常用到(部分函数)。所有的C语言编译系统中一般都提供这些函数。 1、puts函数——输出字符串的函数 一般的形式为puts(字符串组) 作用:将一个字符串输出到终端。如,char一个string,并赋予初值。调用pu ...
分类:
编程语言 时间:
2016-08-30 00:11:41
阅读次数:
144