ÓÃC±àдstate machine
ÓÐ4¸östate µÄstate machine
x=0, y=0 state0
x=1, y=0 state1
x=0, y=1 state2
x=1, y=1 state3
ÏëÇë½Ì¸÷λ´óÏÀ ÊDz»ÊÇ¿ÉÒÔÕâÑù±àдstate machine£¿
´ó¼Ò¹¤×÷ÖÐÒ»°ã¶¼ÓÃʲô·½·¨±àдstate machineÄØ£¿
int main()
{
¡£¡£¡£
while (1)
{
while (x=0, y=0)
{
state0;
}
while (x=0, y=1)
{
state1;
}
while (x=1, y=0)
{
state2;
}
while (x=1, y=1)
{
state3;
}
}
¡£¡£¡£
}
дµÃÌ«´ÖÁË£¬ºÇºÇ¡£
Ïà¹ØÎÊ´ð£º
±àÒëÆÕͨµÄcûÎÊÌâ°¡£¬µ«±àÒëjavahÉú³ÉµÄ¾Í±¨´í£º
gcc -O0 -g3 -Wall -c -fmessage-length=0 -oHelloWorld.o ..\HelloWorld.c
gcc -otest.exe HelloWorld.o
d:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../. ......
µØµãÔÚÉîÛÚÄÏɽ
¡¡¡¡×öCÈí¼þ¡£ÊÔÓÃ2K£¬²»ÖªµÀתÕý¸ø¹«Ë¾Ì¸¶àÉÙºÏÊʰ¡£¿
¡¡¡¡ÁíÍ⣬±¾ÈËС±¾£¬Ó¢ÓïÁù¼¶£¬ÊÔÓÃÈý¸öÔ±íÏÖµÃÒ²ËãÖÐÉÏˮƽ¡£µ«ÊÇÏÖÔÚ»¹²»ÄÜ×öÏîÄ¿¡£ÁíÍâ±ÏҵѧУûÓÐÃûÆø¡£
¡¡¡¡×ªÕý¸ø¹«Ë¾Ì¸¶àÉ ......
±àд³ÌÐòdetab, ½«ÊäÈëÖеÄÖÆ±í·ûÌæ»»³ÉÊʵ±ÊýÄ¿µÄ¿Õ¸ñ£¬Ê¹¿Õ¸ñ³äÂúµ½ÏÂÒ»¸öÖÆ±í·ûÖÕÖ¹µÄµØ·½¡£¼ÙÉèÖÆ±í·ûÖÕֹλµÄλÖÃÊǹ̶¨µÄ£¬±ÈÈçÿ¸ônÁоͻá³öÏÖÒ»¸öÖÆ±í·ûÖÕֹλ¡£
£££££££££££££££££££ ......
¹¤×÷ÄÚÈÝ Ñз¢
×ʸñÒªÇó£º
211ºÍÖØµãԺУ±¾¿Æ 3Ä깤×÷¾Ñé
211ºÍÖØµãԺУ˶ʿ 1Ä깤×÷¾Ñé
ÆÕͨԺУÔÚ¹¤×÷ÄêÏÞÉϸ÷¼Ó1Äê
ÓÐͨÐÅÏà¹Ø¿ª·¢¾ÑéÕßÓÅÏÈ£¬µ±È»C/C++ »ù´¡ÒªÔúʵ
à ......
#include <stdio.h>
main()
{
int a,b,sum;
a=1;b=2;
sum=a+b;
printf("sum is %d\n");
}
½á¹ûÊÇ£º2367460
Ϊʲô£¿
printf("sum is %d\n", ......