`
trix
  • 浏览: 82353 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
#include<stdio.h> #include<conio.h> #define error 0 #define ok 1 #define equal 1 #define overflow -1 #define stack_init_size 100 #define stackincrement 10 typedef int status; struct stu{ char name[20]; char stuno[10]; int age; int score; }; typedef struct stu selemtype; struct stack { s ...
#include <stdio.h> #include <stdlib.h> #define   STACK_INIT_SIZE   100 #define   INCREMENT_SIZE   10 typedef   char   ElemType; typedef   struct   { ElemType   *base,*top; int   stacksize; }SqStack; int   StackInit(SqStack   *); int   Push(SqStack   *); int   pop(SqStack   *) ...
<%@ page contentType="text/html; charset=gb2312" %> <%@ page language="java" %> <%@ page import="com.mysql.jdbc.Driver" %> <%@ page import="java.sql.*" %> <% //驱动程序名 String driverName="com.mysql.jdbc.Driver"; //数据库用户名 ...
要在文件夹的右键菜单中添加“命令提示符”选项。在注册表HKEY_CLASSES_ROOT\Directory\shell分支下新建一项“CommandPrompt”,修改右侧窗格中的“默认”键值为“命令提示符”,并在该项下级再建一个新项“Command”,将右侧窗格中“默认”键值设为“cmd.exe /k cd %1”。现在我们就可以不需要输入长长的CD命令就切换到指定的目录了。
最近看线程,今天复习时发觉自己并没有搞明白sleep,interrupt和wait,notify的区别,以前曾见人这么分析二者:   sleep()方法是使线程停止一段时间的方法。在sleep 时间间隔期满后,线程不一定立即恢复执行。这是因为在那个时刻,其它线程可能正在运行而且没有被调度为放弃执行,除非(a)"醒来"的线程具有更高的优先级。 (b)正在运行的线程因为其它原因而阻塞。   wait()是线程交互时,如果线程对一个同步对象x 发出一个wait()调用,该线程会暂停执行,被调对象进入等待状态,直到被唤醒或等待时间到。       但我还是不怎么明白,就 ...
The first thing you should master is macro. Ace define a lot of macro itself including : ACE_TRACE ACE_DEBUG ACE_ASSERT ACE_TEXT ACE_Log_Msg is Log class you can use in ACE. So you should master this class first , if you do that ,you can debug ACE program youselft which is really important when ...
首先,建一個倉庫來放 askeet 項目 $ svnadmin create $SVNREP_DIR/askeet $ svn mkdir -m "layout creation" file:///$SVNREP_DIR/askeet/trunk file:///$SVNREP_DIR/askeet/tags 然後,你必須做第一次匯入,cache/和log/這些檔就省略掉不用匯入了。 (只要對“原始碼”的部分匯入即可) $ cd /home/sfprojects/askeet $ rm -rf cache/* $ rm -rf log/* $ svn import - ...
原文:http://www.ibm.com/developerworks/cn/linux/l-tune-lamp-1/index.html 包含较为激进的网络设置的 /etc/sysctl.conf                 # Use TCP syncookies when needed net.ipv4.tcp_syncookies = 1 # Enable TCP window scaling net.ipv4.tcp_window_scaling: = 1 # Increase TCP max buffer size net.core.rmem_max = 16777216 ...
在 Zend 引擎 1 代,驱动了 PHP4,对于变量的 static 和 global 定义是以 references 的方式实现的。例如,在一个函数域内部用 global 语句导入的一个真正的全局变量实际上是建立了一个到全局变量的引用。这有可能导致预料之外的行为,如以下例子所演示的: <?php function test_global_ref() {     global $obj;     $obj = &new stdclass; } function test_global_noref() {     global $obj;     $obj = new st ...
http://www.ibm.com/developerworks/cn/linux/l-tune-lamp-1/index.html
Global site tag (gtag.js) - Google Analytics