码迷,mamicode.com
首页 >  
搜索关键字:main    ( 65088个结果
枚举,给枚举赋值
/**************枚举*****************///public enum Colors{//Red,Yellow,Blue,Black,White//}//public static void main(String[] args) {//Colors c = Colors....
分类:其他好文   时间:2014-07-06 17:01:16    阅读次数:204
ODBC操作excel
//ODBC连接Excelpublic static void main(String[] args) {Connection conn = null;Statement stm = null;ResultSet rs = null;try {//加载ODBC驱动Class.forName("sun...
分类:数据库   时间:2014-07-06 16:51:33    阅读次数:234
事务处理
/************事务处理*****************/public static void main(String[] args) {String sql1 = "insert into stuInfo values(123910,'小建',23,'男','普宁')";String ...
分类:其他好文   时间:2014-07-06 16:45:37    阅读次数:168
C primer plus 练习题 第三章
5. 1 #include 2 3 int main() 4 { 5 float you_sec; 6 printf("请输入你的年龄:"); 7 scanf("%f", &you_sec); 8 printf("年龄合计:%e 秒!\n", you_sec * ...
分类:其他好文   时间:2014-07-06 16:24:54    阅读次数:162
并发批量管理500台以上服务器脚本分享(shell版)
也许很多人认为shell不能并发任务,其实可通过其它一些方式来实现。下面的脚本是我批量快速管理500+服务器脚本,阅读该脚本前建议先看《自动执行远程主机命令expect脚本》、《自动远程拷贝expect脚本》和《getopt:命令行选项、参数处理》用法:Usage: ./multi_main.sh ...
分类:其他好文   时间:2014-07-06 16:22:24    阅读次数:270
Mysql 驱动程序,连接数据库的代码
public static void main(String[] args) { String usname= "root"; String pwd = "000000"; String driver="com.mysql.jdbc.Driver"; String url = "jdbc:mys.....
分类:数据库   时间:2014-07-06 15:55:17    阅读次数:246
【深度探索C++对象模型】data语义学
class X{};class Y :public virtual X{};class Z :public virtual X{};class A :public Y, public Z{};void main(){ cout x=0;当Point3D是一个derived class,而在其继...
分类:编程语言   时间:2014-07-06 15:28:39    阅读次数:241
给字符数组赋值的方法
main() { char s[30]; strcpy(s, "Good News!"); /*给数组赋字符串*/ . . . } 上面程序在编译时, 遇到char s[30]这条语句时, 编译程序会在内存的某处留 出连续30个字节的区域, 并将第一个字节的地址赋给s。当遇到strcpy( strc...
分类:其他好文   时间:2014-07-06 14:15:26    阅读次数:251
水仙花数
/*Input输入数据有多组,每组占一行,包括两个整数m和n(100#includeint main(){int m,n,k,ge,shi,bai;int flag=0;while(scanf("%d%d",&m,&n)!=EOF){ flag=0; if(m>n || m999) ...
分类:其他好文   时间:2014-07-06 13:41:48    阅读次数:196
用递归通过单字符输出打印多位的数字
#include using namespace std;void printDigit( int n ){ cout = 10 ) printOut( n / 10 ); printDigit( n % 10 );}int main( ){ printOut( 1...
分类:其他好文   时间:2014-07-06 13:05:31    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!