摘要: /* Netbeans连接数据库 NetBeans项目的“项目属性”中“库”一栏中。Tab页“编译和运行”中已经加上jdbc的驱动文件 */ Connection conn = null;//连接数据库的对象 PreparedStatement pstmt = null;//执行sql对象 try { try { ... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(489) 评论(0) 推荐(0)
摘要: 本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/702538 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(1114) 评论(0) 推荐(0)
摘要: #include"stdio.h" #include"pthread.h" #include"unistd.h" static shdata=4; void *create(void *arg) { printf("New pthread......\n"); printf("shared data=%d \n",shdata); retu... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(195) 评论(1) 推荐(0)
摘要: public class test1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Vector v = new Vector(); v.ad... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(256) 评论(0) 推荐(0)
摘要: public class DataActivity extends Activity { private EditText filenameText; private EditText contentText; private TextView resultView; private static final String... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(117) 评论(0) 推荐(0)
摘要: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mobileEditText = (EditText) this.findViewById(R.id.app_name); ... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(151) 评论(0) 推荐(0)
摘要: public class DataActivity extends Activity { private EditText filenameText; private EditText contentText; private TextView resultView; private static final String TAG = "Data... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(121) 评论(0) 推荐(0)
摘要: #include"stdio.h" #include"unistd.h" #include"sys/types.h" #include"signal.h" #include"wait.h" void sigchld_handler(int sig) { pid_t pid; int status; for(;(pid=waitpid... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(187) 评论(0) 推荐(0)
摘要: #include"stdio.h" #include"sys/types.h" #include"unistd.h" #include"signal.h" void sigint_handler(int sig) { printf("recevied SIGINT signal successed!\n"); return; } void ma... 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(113) 评论(0) 推荐(0)
摘要: 本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/702513 阅读全文
posted @ 2014-08-10 10:03 商商-77 阅读(197) 评论(0) 推荐(0)