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ÕâÑùµÄ¿çƽ̨ÓïÑÔ³öÏÖÖ
Ïà¹ØÎĵµ£º
Ô´Âë:
# include <stdio.h>
int main()
{
int x, y;
printf("ÇëÊäÈë×Ô±äÁ¿x£º");
scanf("%d", &x);
if(x < 6)
{
  ......
Ô´Â룺
# include <stdio.h>
/* ºê¶¨Òå */
# define MAX 100
# define LEN 80
/* Ò»¸ö·Ç³£¼òµ¥µÄÎı¾±à¼Æ÷ */
int main()
{
char text[MAX][LEN]; // ¶¨Òå×Ö·ûÐÍÊý×é
register int t, i, j; /* ¶¨ÒåÈý¸ö¼Ä´æÆ÷±äÁ¿ */
  ......
Ô´Â룺
# include <stdio.h>
int main()
{
/* Óгߴç */
/* һάÕûÐÎÊý×é³õʼ»¯ */
int array1[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
/* һά×Ö·ûÐÍÊý×é³õʼ»¯£¬×îºóÒ»¸öÔªËØ×Ô¶¯Ìí¼ÓΪ‘/0 ......
Ô´Â룺
# include <stdio.h>
/* ×Óº¯ÊýÉùÃ÷ */
int square(int x); // ʵÏÖÇóƽ·½ÖµµÄ×Óº¯Êý
int cube(int y); // ʵÏÖÇóÁ¢·½ÖµµÄ×Óº¯Êý
int main()
{
int m = 12;
int n = 4;
printf("%d %d\n", sq ......
¼´Ê¹½«VirtualBox°²×°µ½±ðµÄÅÌÉÏ£¬Æä×ö³ÉµÄÐéÄâ»ú£¨ÏµÍ³£¬Ó²ÅÌ£©ÈÔ»áĬÈÏÉú³Éµ½ÏµÍ³ÅÌ£¬Ä¬ÈÏC:ÅÌÉÏ£¬Ëæ×ÅÐé»úÊýÁ¿ºÍÄÚÈÝÔö¼Ó¼·Õ¼Á˱¾À´¾Í²»´óµÄϵͳÅ̿ռ䣬ºÜÊDz»±ã¡£
¿ªÊ¼½«C:ÅÌÏÂ.VirtualBoxĿ¼ÏµĶ«Î÷È«ÅÌ¿½±´ÖÁ±ð´¦,È»ºóÔÚVirtualBoxµÄÎļþ/»·¾³ÉèÖà Öн«¡ºÄ¬ÈÏÓ²ÅÌĿ¼¡»ºÍ¡ºÄ¬ÈϼÙÏë»úÆ÷¡»×öÏàÓ¦µÄÐÞ ......