C/SÓëB/S¼Ü¹¹
C/S½á¹¹£¬¼´Client/Server(¿Í»§»ú/·þÎñÆ÷)½á¹¹£¬ÊÇ´ó¼ÒÊìÖªµÄÈí¼þϵͳÌåϵ½á¹¹£¬Í¨¹ý½«ÈÎÎñºÏÀí·ÖÅäµ½Client¶ËºÍServer¶Ë£¬½µµÍÁËϵͳµÄͨѶ¿ªÏú£¬¿ÉÒÔ³ä·ÖÀûÓÃÁ½¶ËÓ²¼þ»·¾³µÄÓÅÊÆ¡£ÔçÆÚµÄÈí¼þϵͳ¶àÒÔ´Ë×÷ΪÊ×Ñ¡Éè¼Æ±ê×¼¡£
B/S½á¹¹£¬¼´Browser/Server(ä¯ÀÀÆ÷/·þÎñÆ÷)½á¹¹£¬ÊÇËæ×ÅInternet¼¼ÊõµÄÐËÆ𣬶ÔC/S½á¹¹µÄÒ»Öֱ仯»òÕ߸ĽøµÄ½á¹¹¡£ÔÚÕâÖֽṹÏ£¬Óû§½çÃæÍêȫͨ¹ýWWWä¯ÀÀÆ÷ʵÏÖ£¬Ò»²¿·ÖÊÂÎñÂß¼ÔÚÇ°¶ËʵÏÖ£¬µ«ÊÇÖ÷ÒªÊÂÎñÂß¼ÔÚ·þÎñÆ÷¶ËʵÏÖ£¬ÐγÉËùν3-tier½á¹¹¡£B/S½á¹¹£¬Ö÷ÒªÊÇÀûÓÃÁ˲»¶Ï³ÉÊìµÄWWWä¯ÀÀÆ÷¼¼Êõ£¬½áºÏä¯ÀÀÆ÷µÄ¶àÖÖScriptÓïÑÔ(VBScript¡¢JavaScript…)ºÍActiveX¼¼Êõ£¬Í¨¹ýͨÓÃä¯ÀÀÆ÷ʵÏÖÁËÔÀ´ÐèÒª¸´ÔÓרÓÃÈí¼þ²ÅÄÜʵÏÖµÄÇ¿´ó¹¦ÄÜ£¬²¢½ÚÔ¼ÁË¿ª·¢³É±¾£¬ÊÇÒ»ÖÖȫеÄÈí¼þϵͳ¹¹Ôì¼¼Êõ¡£
C/S Óë B/S µÄÇø±ð£º
1£®Ó²¼þ»·¾³²»Í¬:
C/S Ò»°ã½¨Á¢ÔÚרÓõÄÍøÂçÉÏ, С·¶Î§ÀïµÄÍøÂç»·¾³, ¾ÖÓòÍøÖ®¼äÔÙͨ¹ýרÃÅ·þÎñÆ÷ÌṩÁ¬½ÓºÍÊý¾Ý½»»»·þÎñ¡£
B/S ½¨Á¢ÔÚ¹ãÓòÍøÖ®ÉϵÄ, ²»±ØÊÇרÃŵÄÍøÂçÓ²¼þ»·¾³£¬ÀýÓëµç»°ÉÏÍø, ×âÓÃÉ豸. ÐÅÏ¢×Ô¼º¹ÜÀí. ÓбÈC/S¸üÇ¿µÄÊÊÓ¦·¶Î§, Ò»°ãÖ»ÒªÓвÙ×÷ϵͳºÍä¯ÀÀÆ÷¾ÍÐС£
2£®¶Ô°²È«ÒªÇó²»Í¬
C/S Ò»°ãÃæÏòÏà¶Ô¹Ì¶¨µÄÓû§Èº, ¶ÔÐÅÏ¢°²È«µÄ¿ØÖÆÄÜÁ¦ºÜÇ¿. Ò»°ã¸ß¶È»úÃܵÄÐÅϢϵͳ²ÉÓÃC/S ½á¹¹ÊÊÒË. ¿ÉÒÔͨ¹ýB/S·¢²¼²¿·Ö¿É¹«¿ªÐÅÏ¢¡£
B/S ½¨Á¢ÔÚ¹ãÓòÍøÖ®ÉÏ, ¶Ô°²È«µÄ¿ØÖÆÄÜÁ¦Ïà¶ÔÈõ, ÃæÏòÊDz»¿ÉÖªµÄÓû§Èº¡£
3£®¶Ô³ÌÐò¼Ü¹¹²»Í¬
C/S ³ÌÐò¿ÉÒÔ¸ü¼Ó×¢ÖØÁ÷³Ì, ¿ÉÒÔ¶ÔȨÏÞ¶à²ã´ÎУÑé, ¶ÔϵͳÔËÐÐËٶȿÉÒÔ½ÏÉÙ¿¼ÂÇ¡£
B/S ¶Ô°²È«ÒÔ¼°·ÃÎÊËٶȵĶàÖصĿ¼ÂÇ, ½¨Á¢ÔÚÐèÒª¸ü¼ÓÓÅ»¯µÄ»ù´¡Ö®ÉÏ. ±ÈC/SÓиü¸ßµÄÒªÇó¡£B/S½á¹¹µÄ³ÌÐò¼Ü¹¹ÊÇ·¢Õ¹µÄÇ÷ÊÆ¡£
4£®Èí¼þÖØÓò»Í¬
C/S ¹¹¼þµÄÖØÓÃÐÔ²»ÈçÔÚB/SÒªÇóÏµĹ¹¼þµÄÖØÓÃÐÔºÃ.
B/S µÄ¶àÖؽṹ,ÒªÇó¹¹¼þÏà¶Ô¶ÀÁ¢µÄ¹¦ÄÜ£¬Äܹ»Ïà¶Ô½ÏºÃµÄÖØÓ᣾ÍÈçÂòÀ´µÄ²Í×À¿ÉÒÔÔÙÀûÓÃ,¶ø²»ÊÇ×öÔÚǽÉϵÄʯͷ×À×Ó¡£
5£®ÏµÍ³Î¬»¤²»Í¬
C/S ³ÌÐòÓÉÓÚÕûÌåÐÔ, ±ØÐëÕûÌ忼²ì, ´¦Àí³öÏÖµÄÎÊÌâÒÔ¼°ÏµÍ³Éý¼¶¡£Éý¼¶ÄÑ£¬¿ÉÄÜÊÇÔÙ×öÒ»¸öȫеÄϵͳ¡£
B/S Óɹ¹¼þ×é³É,·½±ã¹¹¼þ¸ö±ðµÄ¸ü»»,ʵÏÖϵͳµÄÎÞ·ìÉý¼¶. ϵͳά»¤¿ªÏú¼õµ½×îС.Óû§´ÓÍøÉÏ×Ô¼ºÏÂÔØ°²×°¾Í¿ÉÒÔʵÏÖÉý¼¶.
6£®´¦ÀíÎÊÌⲻͬ
C/S ³ÌÐò¿ÉÒÔ´¦ÀíÓû§Ãæ¹Ì¶¨, ²¢ÇÒÔÚÏàͬÇøÓò, °²È«ÒªÇó¸ßÐèÇó, Óë²Ù×÷ϵͳÏà¹Ø. Ó¦¸Ã¶¼ÊÇÏàͬµÄϵͳ¡£
B/S ½¨Á¢ÔÚ¹ãÓòÍøÉÏ, ÃæÏò²»Í¬µÄ
Ïà¹ØÎĵµ£º
ÒÔÏÂÕª×Ô¡¶edyang ÓA·£º
¼Çסһ¸öÈË£¬×îÖØÒªµÄÊǼÇסËû/Ëý/ËüÊÇÄÐÈË/Å®ÈË/¶«¶«£¬ÓÐûÓбá¹ý£¬ÓÐûÓÐÎǹý£¬ÓÐûÓÐÒ§¹ý£¬Ãû×ּDz»×¡·´¶ø¹Ø½ôÒª¡£
C Runtime Library
´ó¼ÒÔÚѧ¹ýC++Ö®ºó£¬¿ÉÄܶÔC Runtime LibraryÕâ¸öÃû×ÖÓÐÒ»¶¨µÄÎó»á£¬¿ÉÄÜÈÏΪÊÇÔËÐÐʱ¿âÊǶ¯Ì¬Á´½ÓµÄ£¬Æäʵ²»È»£¬ÏëÏëCÓïÑÔÆäʵûÓÐ ......
ÔÎĵØÖ·£ºhttp://www.henryxu.com/post/1.html
C++µÄ¸ñʽ»¯×Ö·û´®¾³£ÓÃ×÷¸ñʽ»¯Êý×ÖµÄÊä³ö¡¢×Ö·û´®ºÏ²¢ºÍת»»µÈµÈºÜ¶à³¡ºÏ¡£
1. ¸ñʽ»¯¹æ¶¨·û
©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥
·ûºÅ &nbs ......
Ò»¡¢
ÏÈ¿´Ò»¸ö³ÌÐò
#include <stdio.h>
int main()
{
const int a = 5;
int b[a];
return 0;
}
ÔÚvc6.0ÖÐÃüÃûΪ.cÎļþ£¬±àÒë»á³ö´í£¬ÊÇint b[a]ÕâÒ»ÐУºexpected constant expression
ÃüÃûΪ.cppÎļþ£¬Ã»ÎÊÌâ¡£
ÔÚcodeblocks(Ò»¸öÃâ·Ñ¿ªÔ´µÄ±àÒëÆ÷)ÖбàÒ붼à ......
1¡¢¶þάָÕëµÄÓ÷¨ËµÃ÷
a[i]´ÓÐÎʽÉÏ¿´ÊÇaÊý×éÖеĵÚi¸öÔªËØ¡£
Èç¹ûaÊÇһάÊý×飬Ôòa[i]´ú±íaÊý×éµÚi¸öÔªËØËùÕ¼µÄÄÚ´æµ¥ÔªµÄÄÚÈÝ¡£a[i]ÊÇÓÐÎïÀíµØÖ·µÄ£¬ÊÇÕ¼ÄÚ´æµ¥ÔªµÄ¡£
µ«Èç¹ûaÊǶþάÊý×飬Ôòa[i]ÊÇ´ú±íһάÊý×éÃû¡£ËüÖ»ÊÇÒ»¸öµØÖ·£¨ÈçͬһάÊý×éÃûÖ»ÊÇÒ»¸öÖ¸Õë³£Á¿Ò»Ñù£©¡£a£¬a+i£¬a[i], *(a+i), *(a+i)+j, a[i]+j¶¼Ê ......
ÊÔÌâ1£ºÇëдһ¸öCº¯Êý£¬Èô´¦ÀíÆ÷ÊÇBig_endianµÄ£¬Ôò·µ»Ø0£»ÈôÊÇLittle_endianµÄ£¬Ôò·µ»Ø1
½â´ð£º
int checkCPU( )
{
{
union w
{
&n ......