Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

cÎļþ²Ù×÷: (1)ÎļþµÄ»ù±¾¸ÅÄî

¡¡¡¡Ëùν“Îļþ”ÊÇÖ¸Ò»×éÏà¹ØÊý¾ÝµÄÓÐÐò¼¯ºÏ¡£ Õâ¸öÊý¾Ý¼¯ÓÐÒ»¸öÃû³Æ£¬½Ð×öÎļþÃû¡£ ʵ¼ÊÉÏÔÚÇ°ÃæµÄ¸÷ÕÂÖÐÎÒÃÇÒѾ­¶à´ÎʹÓÃÁËÎļþ£¬ÀýÈçÔ´³ÌÐòÎļþ¡¢Ä¿±êÎļþ¡¢¿ÉÖ´ÐÐÎļþ¡¢¿âÎļþ (Í·Îļþ)µÈ¡£Îļþͨ³£ÊÇפÁôÔÚÍⲿ½éÖÊ(Èç´ÅÅ̵È)Éϵģ¬ ÔÚʹÓÃʱ²Åµ÷ÈëÄÚ´æÖÐÀ´¡£´Ó²»Í¬µÄ½Ç¶È¿É¶ÔÎļþ×÷²»Í¬µÄ·ÖÀà¡£´ÓÓû§µÄ½Ç¶È¿´£¬Îļþ¿É·ÖΪÆÕͨÎļþºÍÉ豸ÎļþÁ½ÖÖ¡£
¡¡¡¡ÆÕͨÎļþÊÇָפÁôÔÚ´ÅÅÌ»òÆäËüÍⲿ½éÖÊÉϵÄÒ»¸öÓÐÐòÊý¾Ý¼¯£¬¿ÉÒÔÊÇÔ´Îļþ¡¢Ä¿±êÎļþ¡¢¿ÉÖ´ÐгÌÐò£» Ò²¿ÉÒÔÊÇÒ»×é´ýÊäÈë´¦ÀíµÄԭʼÊý¾Ý£¬»òÕßÊÇÒ»×éÊä³öµÄ½á¹û¡£¶ÔÓÚÔ´Îļþ¡¢Ä¿±êÎļþ¡¢¿ÉÖ´ÐгÌÐò¿ÉÒÔ³Æ×÷³ÌÐòÎļþ£¬¶ÔÊäÈëÊä³öÊý¾Ý¿É³Æ×÷Êý¾ÝÎļþ¡£
¡¡¡¡É豸ÎļþÊÇÖ¸ÓëÖ÷»úÏàÁªµÄ¸÷ÖÖÍⲿÉ豸£¬ÈçÏÔʾÆ÷¡¢´òÓ¡»ú¡¢¼üÅ̵ȡ£ÔÚ²Ù×÷ϵͳÖУ¬°ÑÍⲿÉ豸Ҳ¿´×÷ÊÇÒ»¸öÎļþÀ´½øÐйÜÀí£¬°ÑËüÃǵÄÊäÈë¡¢Êä³öµÈͬÓÚ¶Ô´ÅÅÌÎļþµÄ¶ÁºÍд¡£Í¨³£°ÑÏÔʾÆ÷¶¨ÒåΪ±ê×¼Êä³öÎļþ£¬ Ò»°ãÇé¿öÏÂÔÚÆÁÄ»ÉÏÏÔʾÓйØÐÅÏ¢¾ÍÊÇÏò±ê×¼Êä³öÎļþÊä³ö¡£ÈçÇ°Ãæ¾­³£Ê¹ÓõÄprintf,putchar º¯Êý¾ÍÊÇÕâÀàÊä³ö¡£¼üÅÌͨ³£±»Ö¸¶¨±ê×¼µÄÊäÈëÎļþ£¬ ´Ó¼üÅÌÉÏÊäÈë¾ÍÒâζ×Å´Ó±ê×¼ÊäÈëÎļþÉÏÊäÈëÊý¾Ý¡£scanf,getcharº¯Êý¾ÍÊôÓÚÕâÀàÊäÈë¡£ 
¡¡¡¡´ÓÎļþ±àÂëµÄ·½Ê½À´¿´£¬Îļþ¿É·ÖΪASCIIÂëÎļþºÍ¶þ½øÖÆÂëÎļþÁ½ÖÖ¡£
¡¡¡¡ASCIIÎļþÒ²³ÆΪÎı¾Îļþ£¬ÕâÖÖÎļþÔÚ´ÅÅÌÖдæ·Åʱÿ¸ö×Ö·û¶ÔÓ¦Ò»¸ö×Ö½Ú£¬ÓÃÓÚ´æ·Å¶ÔÓ¦µÄASCIIÂë¡£ÀýÈ磬Êý5678µÄ´æ´¢ÐÎʽΪ£º
ASCÂ룺 ¡¡00110101 00110110 00110111 00111000
¡¡¡¡¡¡¡¡¡¡↓ ¡¡¡¡¡¡¡¡↓¡¡¡¡¡¡¡¡↓ ¡¡¡¡¡¡↓
Ê®½øÖÆÂ룺 5¡¡¡¡¡¡¡¡¡¡6¡¡¡¡¡¡¡¡7¡¡¡¡¡¡¡¡8 
¹²Õ¼ÓÃ4¸ö×Ö½Ú¡£ASCIIÂëÎļþ¿ÉÔÚÆÁÄ»ÉÏ°´×Ö·ûÏÔʾ£¬ ÀýÈçÔ´³ÌÐòÎļþ¾ÍÊÇASCIIÎļþ£¬ÓÃDOSÃüÁîTYPE¿ÉÏÔʾÎļþµÄÄÚÈÝ¡£ ÓÉÓÚÊÇ°´×Ö·ûÏÔʾ£¬Òò´ËÄܶÁ¶®ÎļþÄÚÈÝ¡£
¡¡¡¡¶þ½øÖÆÎļþÊÇ°´¶þ½øÖƵıàÂ뷽ʽÀ´´æ·ÅÎļþµÄ¡£ ÀýÈ磬 Êý5678µÄ´æ´¢ÐÎʽΪ£º 00010110 00101110Ö»Õ¼¶þ¸ö×Ö½Ú¡£¶þ½øÖÆÎļþËäȻҲ¿ÉÔÚÆÁÄ»ÉÏÏÔʾ£¬ µ«ÆäÄÚÈÝÎÞ·¨¶Á¶®¡£CϵͳÔÚ´¦ÀíÕâЩÎļþʱ£¬²¢²»Çø·ÖÀàÐÍ£¬¶¼¿´³ÉÊÇ×Ö·ûÁ÷£¬°´×Ö½Ú½øÐд¦Àí¡£ ÊäÈëÊä³ö×Ö·ûÁ÷µÄ¿ªÊ¼ºÍ½áÊøÖ»ÓɳÌÐò¿ØÖƶø²»ÊÜÎïÀí·ûºÅ(Èç»Ø³µ·û)µÄ¿ØÖÆ¡£ Òò´ËÒ²°ÑÕâÖÖÎļþ³Æ×÷“Á÷ʽÎļþ”¡£
¡¡¡¡±¾ÕÂÌÖÂÛÁ÷ʽÎļþµÄ´ò¿ª¡¢¹Ø±Õ¡¢¶Á¡¢Ð´¡¢ ¶¨Î»µÈ¸÷ÖÖ²Ù×÷¡£ÎļþÖ¸ÕëÔÚ£ÃÓïÑÔÖÐÓÃÒ»¸öÖ¸Õë±äÁ¿Ö¸ÏòÒ»¸öÎļþ£¬ Õâ¸öÖ¸Õë³ÆΪÎļþÖ¸Õ롣ͨ


Ïà¹ØÎĵµ£º

ÔÚC³ÌÐòÀïºÍshellͨÐÅ

Ò»°ãÎÒÃǵ÷ÓÃshell½Å±¾¶¼ÓÃsystem()À´ÊµÏÖ£¬È»ºó·¢ÏÖsytem·µ»ØÖµ²»ºÃ¿ØÖƶøÇÒת»»Âé·³(»¹ÒªÓÒÒÆ4λ¼´/256)£¬ÓÚÊÇÎÒÓÃpopenÀ´»ñÈ¡shellµÄ·µ»ØÖµ¡£¹ûÈ»ÔÚUnixÊÀ½çÀïÃ棬ͨµÀ¾ÍÊÇÁ¬½á¸÷¸ö·½ÃæµÄÇÅÁº°¡£¡
´úÂëÀý×ÓÈçÏ£º
#include<stdio.h>
#include<stdlib.h>
#include<sys/wait.h>
int main (int argc ......

cºÍc++ÏÂÓÃջʵÏÖÊýµÄ½øÖÆת»»

1. CµÄʵÏÖ
//stack.h
#ifndef STACK_H
#define STACK_H
#define STACK_CAPACITY 20//maximum size of stack
typedef int stackEle;
typedef struct
{
stackEle myArray[ STACK_CAPACITY ];
int myTop;
}stack;
//construct(initialize) an empty stack
stack *stack_init(void);
//return 1 if stack is em ......

B/S½á¹¹¼ò½é¼°ÓëC/S½á¹¹µÄÇø±ð


Ò»¡¢Ê²Ã´ÊÇc/sºÍb/s
ÒªÏë¶Ô“c/s”ºÍ“b/s”¼¼Êõ·¢Õ¹±ä»¯ÓÐËùÁ˽⣬Ê×ÏȱØÐë¸ãÇå³þÈý¸öÎÊÌâ¡£
µÚÒ»¡¢Ê²Ã´ÊÇc/s½á¹¹¡£
c/s£¨client/server£©½á¹¹£¬¼´´ó¼ÒÊìÖªµÄ¿Í»§»úºÍ·þÎñÆ÷½á¹¹¡£ËüÊÇÈí¼þϵͳÌåϵ½á¹¹£¬Í¨¹ýËü¿ÉÒÔ³ä·ÖÀûÓÃÁ½¶ËÓ²¼þ»·¾³µÄÓÅÊÆ£¬½«ÈÎÎñºÏÀí·ÖÅäµ½client¶ËºÍserver¶ËÀ´ÊµÏÖ£¬½µµÍÁ ......

Symbian C/S »úÖÆ·ÖÎö| symbian os

http://www.devdiv.net/blog/space-14481-do-blog-id-458.html

ÒÔÏ·ÖÎö»ùÓÚ£º
Developer Platform :S60 3rd Edition, Feature Pack 2 SDK
Operating System :Symbian OS v9.3
Ò»£¬ÎªÊ²Ã´ÒªÊ¹ÓÃClient/Server¼Ü¹¹
ÔÚSymibian OSÖÐËùÓеÄÒì²½·þÎñ¶¼ÊÇServerͨ¹ýC/S¼Ü¹¹À´ÊµÏֵġ£ClientÊÇÀûÓÃServerÌṩµÄÌض¨· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ