B/S½á¹¹ºÍC/S½á¹¹
Ò»¡¢Ê²Ã´ÊÇB/S½á¹¹ºÍC/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£©£¬Ö±ÖÁBrowse
Ïà¹ØÎĵµ£º
ÕâƪÎÄÕÂÊÇʹÓÃSQLite C/C++½Ó¿ÚµÄÒ»¸ö¸ÅÒª½éÉܺÍÈëÃÅÖ¸ÄÏ¡£
ÓÉÓÚÔçÆÚµÄSQLiteÖ»Ö§³Ö5¸öC/C++½Ó¿Ú£¬Òò¶ø·Ç³£ÈÝÒ×ѧϰºÍʹÓ㬵«ÊÇËæ×ÅSQLite¹¦ÄܵÄÔöÇ¿£¬ÐµÄC/C++½Ó¿Ú²»¶ÏµÄÔö¼Ó½øÀ´£¬µ½ÏÖÔÚÓг¬¹ý150¸ö²»Í¬µÄAPI½Ó¿Ú¡£ÕâÍùÍùʹ³õѧÕßÍû¶øÈ´²½¡£ÐÒÔ˵ÄÊÇ£¬´ó¶àÊýSQLiteÖеÄC/C++½Ó¿ÚÊÇרÓõģ¬Òò¶øºÜÉÙ±»Ê¹Óõ½¡£¾¡¹ÜÓÐÕâ ......
´æ´¢ÆÚstorage duration(extent)£¬ ָΪ¶ÔÏóÅäÖõÄÄÚ´æµÄ´æ»îÆÚ£¬±ÈÈçlocal extent
Éú´æ¿Õ¼äscope£¬Ö¸¶ÔÏóÔÚ³ÌÐòÄڵĴæ»îÇøÓò£¬¼´¿É±»·ÃÎʵķ¶Î§£¬±ÈÈçfile scope, static scope, local scope
C
local static object
º¯ÊýÄÚ²¿µÄobject£¬¾ßÓÐlocal scope£¬µ«ÊÇÿ´Îº¯Êý±»µ÷Óúó¸Ã¶ÔÏóµÄÄÚ´æ²»ÇåÀí£¬µ½Ï´ε÷Óû¹±£ ......
½ñÌì²Î¼Ó±ÊÊÔ,ÆäÖÐÓÐÁ½ÌâÊÇ·ÖÅäÄÚ´æµÄ,µÚÒ»ÌâÊǶ¯Ì¬·ÖÅäÒ»¸öһάÊý×é,µÚ¶þ¸öÌâÊǶ¯Ì¬·ÖÅäÒ»¸ö¶þάÊý×é.µÚÒ»ÌâºÍµÚ¶þÌâÎÒ·Ö±ðÊÇÕâÑùдµÄ:
/*µÚÒ»Ìâ*/
p=(float*)malloc(sizeof(float[M]));
/*µÚ¶þÌâ*/
p=(float*)malloc(sizeof(int[M][N]));
½á¹û˵ÎÒµÚ¶þÌâ´íÁË,ÎÒ»¹²»Ã÷°×´íÄÄÁË,ÎÒÓÖÎÊд³ÉM*N¶Ô²»,½á¹û»¹ÊÇ˵²»¶Ô.¸Õ² ......
Õ⼸ÌìÓÉÓÚÒª¶ÁÈ¡½Ï´óµÄÎı¾Îļþ£¬ËùÒԾͱȽÏÁËÒ»ÏÂÁ½ÕßÖ®¼äµÄЧÂÊÎÊÌâ¡£ ËùÒª¶ÁÈ¡µÄÎı¾Îļþ½á¹¹ÎªÃ¿ÐÐÓÉ5¸öÊý×é³É£¬int int int float int£¬²âÊÔµÄÎļþÓÐ33WÐУ¬´óСΪ9M¡£ÏÖÔÚÒª½«Æä¶Áµ½Ò»¸öcube½á¹¹ÌåÀïÃæÈ¥£¬½á¹¹ÌåÓÐ5¸ö³ÉÔ±±äÁ¿ÓëÖ®¶ÔÓ¦¡£ Á½ÖÖ²Ù×÷µÄ´úÂëÈçÏ start = clock();
......
ÓÉÓÚ³ÌÐòÔËÐÐʱռÓõÄÄÚ´æ¹ý´ó£¬ËùÒÔÏë°ì·¨¸ø³ÌÐòÊÝÉí¡£
ÔÚµ÷ÊÔÖз¢ÏֽṹÌåÕ¼ÓõÄsize¾¹È»ºÍÔ¤ÏëµÄ²»Ò»Ñù£¬ÔÀ´……
¿´¿´ÏÂÃæ½²µÄ°É£¬¿Ï¶¨»á²»Í÷´Ë¿´Å¶£¡
1,±ÈÈç:
struct{
short a1;
short a2;
short a3;
}A;
struct{
long a1;
short a2;
}B;
sizeof(A)=6, sizeof(B)=8,Ϊʲô£¿
×¢£ºsizeof(sho ......