B/S½á¹¹¼ò½é¼°ÓëC/S½á¹¹µÄÇø±ð
Ò»¡¢Ê²Ã´ÊÇ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ÕâÑùµÄ¿çƽ̨ÓïÑÔ³öÏÖÖ®ºó£¬b/s¼Ü¹¹¹ÜÀíÈí¼þ¸üÊÇ·½±ã¡¢¿ì½Ý¡¢¸ßЧ¡£
µÚÈý¡¢¹ÜÀíÈí¼þÖ÷Á÷¼¼Êõ¡£
¹ÜÀíÈí¼þ¼¼ÊõµÄÖ÷Á÷¼¼ÊõÓë¹ÜÀí˼ÏëÒ»Ñù£¬Ò²¾ÀúÁËÈý¸ö·¢Õ¹Ê±ÆÚ¡£Ê×ÏÈ£¬½çÃæ¼¼Êõ´ÓÉÏÊÀ¼Ídos×Ö·û½çÃæµ½windowsͼÐνçÃ棨»òͼÐÎÓû§½çÃægui£©£¬Ö±ÖÁbrowserä¯ÀÀÆ÷½çÃæÈý¸ö²»Í¬µÄ·¢Õ¹Ê±ÆÚ¡£Æä´Î£¬½ñÌìËùÓеçÄÔµÄ
ä¯ÀÀÆ÷½çÃ棬²»½öÖ±¹ÛºÍÒ×ÓÚʹÓ㬸üÖ÷ÒªµÄÊÇ
Ïà¹ØÎĵµ£º
// SnakeMatrix.cpp : Defines the entry point for the console application.
// Create by Xianyi.Ye, May 4,2010
#include "stdafx.h"
#include <iostream.h>
/*
Question: Print a Sanke Matrix as following
i\j 1 2 3 4 5 6
1 1 2 9 10 25 26
2 4 3 8 11 24 27
3 5 6 7 12 23 28
4 16 15 14 ......
//ΪÁ˺ÍDSP¼æÈÝ£¬TSint64ºÍTUint64ÉèÖóÉTSint40ºÍTUint40Ò»ÑùµÄÊý
//½á¹ûVCÖл¹ÊÇÈÏΪÊÇ32λµÄ£¬ÏÔÈ»²»ºÏÊÊ
//typedef signed long int TSint64;
//typedef unsigned long int TUint64; &nb ......
Ñ¡Á½¸ö±È½ÏÓдú±íÐԵĺ¯Êý
Ê×ÏÈÏÂÔØ°²×°sdk£¬½«ÆäÖеÄsde.dll,pe.dllºÍsg.dll¿½±´¹ýÀ´
ʹÓÃÈçϵĴúÂ룬ָ¶¨dllºóÖ±½Óµ÷ÓÃÆäÖеĺ¯Êý£¬
/// <summary>
/// Sets the value for a small integer column.
/// </summary>
[DllImport(".\\sde91.dll", SetLastError = true, ......
Ò»Ö±¾õµÃCÓïÑÔµÄÔ¤´¦Àí
Æ÷ÊǸöÃÀÃî¶øÉñÆæµÄ¹¤¾ß£¬ÒÔºó»á½Ðø°Ñ×Ô¼ºÑ§µ½µÄ¹ØÓÚËüµÄÐÂ֪ʶ×ܽá³öÀ´¡£To be continued aways...
Ò»¡¢ #defineÌæ»»
£¨Pointer ON C
, Ch14.2.2£©
³ÌÐòÖÐÀ©Õ¹#define¶¨Òå·ûºÅºÍºêʱ£¬Éæ¼°Èçϼ¸¸ö²½Ö裺
(1) ÔÚµ÷Óúêʱ£¬Ê×ÏȶԲÎÊý½øÐмì²é£¬¿´¿´ÊÇ·ñ°üº¬ÁËÈκÎÓÉ#define ¶¨ÒåµÄ·ûºÅ£¬Èç¹ ......