4*4¼üÅÌɨÃèC³ÌÐò
4*4¼üÅÌɨÃèC³ÌÐò
#include<reg52.h>
#define uchar unsigned char
uchar code table[]={0xC0,0xF9,0xA4,0xB0,0x99,
0x92,0x82,0xF8,0x80,0x90,
0x88,0x83,0xC6,0xA1,0x86,0x8E};
uchar temp,num;
void display(uchar);
void delay(uchar a)
{
uchar b;
for(;a>0;a--)
for(b=200;b>0;b--);
}
void main()
{
while(1)
{
P2=0x7f;
temp=P2;
temp&=0x0f;
if(temp!=0x0f)
{
delay(50);
if(temp!=0x0f)
{
switch(temp)
{
case 0x07: num="0"; break;
case 0x0b: num="1"; break;
case 0x0d: num="2"; break;
case 0x0e: num="3"; break;
}
}
}
P2=0xbf;
temp=P2;
temp&=0x0f;
if(temp!=0x0f)
{
delay(50);
if(temp!=0x0f)
{
switch(temp)
{
case 0x07: num="4"; break;
case 0x0b: num="5"; break;
case 0x0d: num="6"; break;
case 0x0e: num="7"; break;
}
}
}
P2=0xdf;
temp=P2;
temp&=0x0f;
if(temp!=0x0f)
{
delay(50);
if(temp!=0x0f)
{
switch(temp)
{
case 0x07: num="8"; break;
case 0x0b: num="9"; break;
case 0x0d: num="10"; break;
case 0x0e: num="11"; break;
}
}
}
P2=0xef;
temp=P2;
temp&=0x0f;
if(temp!=0x0f)
{
delay(50);
if(temp!=0x0f)
{
switch(temp)
{
&nb
Ïà¹ØÎĵµ£º
Á½¸öÔÂÇ°£¬Ò²¾ÍÊÇ9Ô·ݣ¬ÐÄѪÀ´³±ÔÚwindowsÏÂʵÏÖÁËÓÃCÁ¬½ÓÊý¾Ý¿â£¬µ±Ê±ºÜÊÇÓаÑlinuxÏÂÒ»²¢¸øʵÏÖÁË¡£µ«ÊÇûÓÐÏëµÃÄÇô¼òµ¥¡£Õâ¸öÈÎÎñÒ»Ö±ÍƳٵ½ÁËÏÖÔÚ²ÅÍê³É£¬¾¿ÆäÔÒò£º1.ÎÒÖ±½ÓÓÃeclipse¿ª·¢¹¤¾ß£¬¶ÔÓÚ»·¾³±äÁ¿µÄÉèÖò»ÊǺÜÊì¡£2.linuxϵͳ¿âÎļþ½á¹¹²»ÊìϤ£¬¶ÔÓÚmysqlÌṩµÄ¿âÎļþûÓÐ·Å¶Ô ......
Ç°Á½ÌìдC++ʵϰ×÷Òµ£¬Í»È»·¢ÏÖI/OÊÇÄÇôµÄÄ°Éú£¬´òÁ˺ó¤Ê±¼äµÄÎļþ¶¼Ã»Óдò¿ª£¬½ñÌìÖÕÓÚÓеãʱ¼äÁË£¬¾ö¶¨ÕÒ±¾Ê飬ºÃºÃÕûÀíһϣ¬ºÍ´ó¼Ò¹²Ïí¡£
C++I/O
C++Ö§³ÖÁ½ÖÖI/O£¬µÚÒ»ÖÖÊÇ´ÓCÓïÑԼ̳ÐÀ´µÄ£¬Ò»ÖÖÊÇÓÉC++¶¨ÒåµÄÃæÏò¶ÔÏóI/Oϵͳ¡£
1¡¢int getchar(void);·µ»ØÒ»¸öÕûÊýÖµ£¬Ò²¿ÉÒÔÖ¸¶¨Õâ¸öֵΪchar±äÁ¿£¬ÒòΪÕâ¸ö×Ö·û°ü ......
CÓïÑԺ궨ÒåʵÓÃ×ܽá
ºê¶¨ÒåÁËÒ»¸ö´ú±íÌض¨ÄÚÈݵıêʶ·û¡£
Ô¤´¦Àí¹ý³Ì»á°ÑÔ´´úÂëÖгöÏֵĺê±êʶ·ûÌæ»»³Éºê¶¨ÒåʱµÄÖµ¡£
ºê×î³£¼ûµÄÓ÷¨ÊǶ¨Òå´ú±íij¸öÖµµÄÈ«¾Ö·ûºÅ¡£
ºêµÄµÚ¶þÖÖÓ÷¨ÊǶ¨Òå´ø²ÎÊýµÄºê£¬ÕâÑùµÄºê¿ÉÒÔÏóº¯ÊýÒ»Ñù±»µ÷Ó㬵«ËüÊÇÔÚµ÷ÓÃÓï¾ä´¦Õ¹¿ªºê£¬²¢Óõ÷ÓÃʱµÄʵ¼Ê²ÎÊýÀ ......
C/S½á¹¹£¬¼´Client/Server(¿Í»§»ú/·þÎñÆ÷)½á¹¹£¬ÊÇ´ó¼ÒÊìÖªµÄÈí¼þϵͳÌåϵ½á¹¹£¬Í¨¹ý½«ÈÎÎñºÏÀí·ÖÅäµ½Client¶ËºÍServer¶Ë£¬½µµÍÁËϵͳµÄͨѶ¿ªÏú£¬¿ÉÒÔ³ä·ÖÀûÓÃÁ½¶ËÓ²¼þ»·¾³µÄÓÅÊÆ¡£ÔçÆÚµÄÈí¼þϵͳ¶àÒÔ´Ë×÷ΪÊ×Ñ¡Éè¼Æ±ê×¼¡£
B/S½á¹¹£¬¼´Browser/Server(ä¯ÀÀÆ÷/·þÎñÆ÷)½á¹¹£¬ÊÇËæ×ÅInternet¼¼ÊõµÄÐËÆ𣬶ÔC/S½á¹¹µÄÒ»Öֱ仯 ......