摘要:
字符转换为数字:#include atoi(); 将字符转换为整型 例:char ch1;int i=atoi(ch1); atol(); 将字符转化为长整型 例:char ch2;long l=atol(ch2); atof(); 将字符转化为浮点型 例:char ch3;f... 阅读全文
posted @ 2014-04-26 21:02
istatic
阅读(595)
评论(0)
推荐(0)
摘要:
字符读写函数 :fgetc和fputc字符串读写函数:fgets和fputs数据块读写函数:freed和fwrite格式化读写函数:fscanf和fprinf1.字符读写: fgetc函数的功能是从指定的文件中读一个字符,函数调用的形式为: 字符变量=fgetc(文件指针); fputc函数... 阅读全文
posted @ 2014-04-26 20:57
istatic
阅读(468)
评论(0)
推荐(0)
摘要:
1.在用windows模式登陆sql server 数据库 简历一个student的数据库,然后新建查询:create table student( id int auto_increment primary key, name char(10) not null, sex cha... 阅读全文
posted @ 2014-04-26 20:46
istatic
阅读(444)
评论(0)
推荐(0)
摘要:
1.过程: 1>注册驱动器类:Class.forName() 2>连接数据库: String url = "jdbc:sqlserver://localhost:1433;DatabaseName=DataBaseName"; String uername = "dbuser"... 阅读全文
posted @ 2014-04-26 20:17
istatic
阅读(1075)
评论(0)
推荐(0)

浙公网安备 33010602011771号