B/S C/S½á¹¹¶¨ÒåµÄÏê½âºÍÇø±ð
b/s ÊÇ brower/server ¾ÍÊÇÓÃä¯ÀÀÆ÷(Èçie)ΪӦÓóÌÐò¿Í»§¶Ë²Ù×÷·þÎñÆ÷¡£ÕâÑùÓÃä¯ÀÀÆ÷À´²Ù×÷¼òµ¥Ò×Ó㬵«ÊǶÔÊäÈëûÓкܺõÄÑéÖ¤¡£Â߼ʵÏÖ²»¶à¡£±¾µØÖ»ÊÇÓÃÓÚ»ñÈ¡Êý¾ÝÈ»ºó´ó²¿·ÖÑéÖ¤ÐèÒªÌá½»·þÎñÆ÷À´Íê³É¡£
c/s ÊÇclient/server ¿Í»§¶ËÈí¼þÔòÊÇÒ»¸öÓµÓкܶàÂß¼ÑéÖ¤µÄÈí¼þ£¬±¾µØÑéÖ¤³É¹¦ºó²ÅÌá½»·þÎñÆ÷¡£
ÎÒÕÒµ½µÄ¸üÏêϸÐÅÏ¢£º
Ò»¡¢Ê²Ã´ÊÇC/SºÍB/S
ÒªÏë¶Ô“C/S”ºÍ“B/S”¼¼Êõ·¢Õ¹±ä»¯ÓÐËùÁ˽⣬Ê×ÏȱØÐë¸ãÇå³þÈý¸öÎÊÌâ¡£
µÚÒ»¡¢Ê²Ã´ÊÇC/S½á¹¹¡£
C/S £¨Client/Server£©½á¹¹£¬¼´´ó¼ÒÊìÖªµÄ¿Í»§»úºÍ·þÎñÆ÷½á¹¹¡£ËüÊÇÈí¼þϵͳÌåϵ½á¹¹£¬Í¨¹ýËü¿ÉÒÔ³ä·ÖÀûÓÃÁ½¶ËÓ²¼þ»·¾³µÄÓÅÊÆ£¬½«ÈÎÎñºÏÀí·ÖÅäµ½Client¶ËºÍServer¶ËÀ´ÊµÏÖ£¬½µµÍÁËϵͳµÄͨѶ¿ªÏú¡£Ä¿Ç°´ó¶àÊýÓ¦ÓÃÈí¼þϵͳ¶¼ÊÇClient/ServerÐÎʽµÄÁ½²ã½á¹¹£¬ÓÉÓÚÏÖÔÚµÄÈí¼þÓ¦ÓÃϵͳÕýÔÚÏò·Ö²¼Ê½µÄWebÓ¦Ó÷¢Õ¹£¬WebºÍClient/Server Ó¦Óö¼¿ÉÒÔ½øÐÐͬÑùµÄÒµÎñ´¦Àí£¬Ó¦Óò»Í¬µÄÄ£¿é¹²ÏíÂß¼×é¼þ£»Òò´Ë£¬ÄÚ²¿µÄºÍÍⲿµÄÓû§¶¼¿ÉÒÔ·ÃÎÊеĺÍÏÖÓеÄÓ¦ÓÃϵͳ£¬Í¨¹ýÏÖÓÐÓ¦ÓÃϵͳÖеÄÂß¼¿ÉÒÔÀ©Õ¹³öеÄÓ¦ÓÃϵͳ¡£ÕâÒ²¾ÍÊÇÄ¿Ç°Ó¦ÓÃϵͳµÄ·¢Õ¹·½Ïò¡£
´«Í³µÄC£¯SÌåϵ½á¹¹ËäÈ»²ÉÓõÄÊÇ¿ª·Åģʽ£¬µ«ÕâÖ»ÊÇϵͳ¿ª·¢Ò»¼¶µÄ¿ª·ÅÐÔ£¬ÔÚÌض¨µÄÓ¦ÓÃÖÐÎÞÂÛÊÇClient¶Ë»¹ÊÇServer¶Ë¶¼»¹ÐèÒªÌض¨µÄÈí¼þÖ§³Ö¡£ÓÉÓÚûÄÜÌṩÓû§ÕæÕýÆÚÍûµÄ¿ª·Å»·¾³£¬C/S½á¹¹µÄÈí¼þÐèÒªÕë¶Ô²»Í¬µÄ²Ù×÷ϵͳϵͳ¿ª·¢²»Í¬°æ±¾µÄÈí¼þ£¬ ¼ÓÖ®²úÆ·µÄ¸üл»´úÊ®·Ö¿ì£¬ÒѾºÜÄÑÊÊÓ¦°Ų̀µçÄÔÒÔÉϾÖÓòÍøÓû§Í¬Ê±Ê¹Ó᣶øÇÒ´ú¼Û¸ß£¬ ЧÂʵ͡£
µÚ¶þ¡¢Ê²Ã´ÊÇB/S½á¹¹¡£
B/S£¨Browser/Server£©½á¹¹¼´ä¯ÀÀÆ÷ºÍ·þÎñÆ÷½á¹¹¡£ËüÊÇËæ×ÅInternet¼¼ÊõµÄÐËÆ𣬶ÔC/S½á¹¹µÄÒ»Öֱ仯»òÕ߸ĽøµÄ½á¹¹¡£ÔÚÕâÖֽṹÏ£¬Óû§¹¤×÷½çÃæÊÇͨ¹ýWWWä¯ÀÀÆ÷À´ÊµÏÖ£¬¼«ÉÙ²¿·ÖÊÂÎñÂß¼ÔÚÇ°¶Ë£¨Browser£©ÊµÏÖ£¬µ«ÊÇÖ÷ÒªÊÂÎñÂß¼ÔÚ·þÎñÆ÷¶Ë£¨Server£©ÊµÏÖ£¬ÐγÉËùνÈý²ã3-tier½á¹¹¡£ÕâÑù¾Í´ó´ó¼ò»¯ÁË¿Í»§¶ËµçÄÔÔغɣ¬¼õÇáÁËϵͳά»¤ÓëÉý¼¶µÄ³É±¾ºÍ¹¤×÷Á¿£¬½µµÍÁËÓû§µÄ×ÜÌå³É±¾£¨TCO£©¡£
ÒÔÄ¿Ç°µÄ¼¼Êõ¿´£¬¾ÖÓòÍø½¨Á¢B/S½á¹¹µÄÍøÂçÓ¦Ó㬲¢Í¨¹ýInternet/IntranetģʽÏÂÊý¾Ý¿âÓ¦Óã¬Ïà¶ÔÒ×ÓÚ°ÑÎÕ¡¢³É±¾Ò²Êǽϵ͵ġ£ËüÊÇÒ»´ÎÐÔµ½Î»µÄ¿ª·¢£¬ÄÜʵÏÖ²»Í¬µÄÈËÔ±£¬´Ó²»Í¬µÄµØµã£¬ÒÔ²»Í¬µÄ½ÓÈ뷽ʽ£¨±ÈÈçLAN, WAN, Internet/IntranetµÈ£©·ÃÎʺͲÙ×÷¹²Í¬µÄÊý¾Ý¿â£»ËüÄÜÓÐЧµØ±£»¤Êý¾Ýƽ̨ºÍ¹ÜÀí·ÃÎÊȨÏÞ£¬·þÎñÆ÷Êý¾Ý¿âÒ²ºÜ°²È« ¡£ÌرðÊÇÔÚJAVAÕâÑùµÄ¿çƽ̨ÓïÑÔ³öÏÖÖ®º
Ïà¹ØÎĵµ£º
ÏñPHPºÍperlÒ»Ñù£¬MySQLÒ²ÌṩµÄCÓïÑÔʹÓõÄAPI. C´úÂëµÄAPIÊÇËæMySQLÒ»Æð·¢²¼µÄ¡£ Ëü°üº¬ÔÚmysqlclient¿âÖУ¬ ¿ÉÒÔʹC³ÌÐòÀ´·ÃÎÊÊý¾Ý¿â¡£
MySQLÔ´Âë°üÖеÄÐí¶à¿Í»§¶Ë¶¼ÊÇÓÃCдµÄ¡£ Èç¹ûÄãÕýÔÚÕÒʹÓÃÕâЩC APIµÄÀý×Ó£¬ ¿ÉÒÔ¿´¿´¿Í»§¶ËµÄд·¨¡£Äã¿ÉÒÔÔÚMySQLÔ´Âë°üµÄclientsĿ¼ÕÒµ½ÕâЩÀý×Ó¡£
& ......
2009-11-01 17:31:00
1¡¢Standard C£¬°üÀ¨»ù±¾µÄÓï·¨¶¨Ò壬¿âº¯Êý²Î¿¼
http://www-ccs.ucsd.edu/c/
»òÕß
The C Library Reference Guide
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/
2¡¢The UNIX Programming Environment
http://www.iu.hio.no/~mark/unix/unix_toc.html
»ò
The Art of ......
ÏÂÃæÕâ¸ö³ÌÐòÊä³öʲô£¿
enum {false,true};
int main()
{
int i=1;
do
{
printf("%d\n",i);
i++;
if(i < 15)
continue;
}while(false);
return 0;
}
ÄãÏàÐÅô£¿Ï ......
ÓÃÒ»¾ä»°¸ÅÀ¨extern “C”Õâ¸öÉùÃ÷µÄÕæʵĿµÄ¾ÍÊÇʵÏÖC++ÓëC¼°ÆäËüÓïÑԵĻìºÏ±à³Ì¡£
extern "C"µÄ¹ßÓ÷¨
£¨1£©ÔÚC++ÖÐÒýÓÃCÓïÑÔÖеĺ¯ÊýºÍ±äÁ¿£¬ÔÚ°üº¬CÓïÑÔÍ·Îļþ£¨¼ÙÉèΪcExample.h£©Ê±£¬Ðè½øÐÐÏÂÁд¦Àí£º
extern "C"
{
££i nclude "cExample.h"
}
¶øÔÚCÓïÑÔµÄÍ·ÎļþÖУ¬¶ÔÆäÍⲿº¯ÊýÖ»ÄÜÖ¸¶¨ÎªexternÀà ......
Àý£º#define NELE(a) (sizeof(a) / sizeof(a[0]))
int main() {
char str[] = {'E', 'M', 'C'};
for (int d=-1; d<=(NELE(str)-2);d++)
printf("%c",str[d+1]);
return 0;
}
ÅжÏprintf£¨£©Êä³öµÄÊÇʲô£¬½á¹û¿ÉÄܳöºõÒâÁÏ£¬Ê²Ã´Ò²Ã»ÓÐÊä³ö£¬ÔÒòÄØ£¿ÔÒò ......