C_Êý¾ÝÀàÐÍת»»
Ô´Âë:
# include <stdio.h>
int main()
{
/* ¶¨Òå±äÁ¿²¢¸³³õÖµ */
int a = 5;
char c = 'a'; // 'a'µÄASCÂëµÄֵΪ97
float f = 5.3;
double m = 12.65;
double result;
/* ͬÀàÐÍÊý¾Ý¼ä½øÐÐÔËËã²¢Êä³ö½á¹û */
printf("a + c = %d\n", a + c); // 97+5=102
printf("a + c = %c\n", a + c); // 102¶ÔÓ¦µÄASCIIÂë×Ö·ûΪ'f'
printf("f + m = %f\n", f + m); // 5.3+12.65=17.95
/* ²»Í¬ÀàÐÍÊý¾Ý¼ä½øÐÐÔËËã²¢Êä³ö½á¹û */
printf("a + m = %f\n", a + m); //5+12.65=17.65
printf("c + f = %f\n", c + f); //97+5.3=102.3
/* ½«ÉÏÊöËĸö±äÁ¿½øÐлìºÏÔËË㣬²¢Êä³ö½á¹û */
result = a + c * (f + m);
printf("double = %f\n", result); //5+97*(5.3+12.65)=1746.15
return 0;
}
Ïà¹ØÎĵµ£º
µ±Ï¶¨¾öÐÄÈ¥×öÒ»¼þÊÂÇéµÄʱºò,¾ÍûÓÐʲô¿ÉÒÔ×èµ²ÎÒ£¡Æ©Èçȥ˯¾õ--! from ¡¶¾õÖ÷ÓA·
ÁîÎÒìþìý²»°²µÄ¸ßÊýѧλ֤¿¼ÊÔ¹ýÈ¥ÁË£¬½á¹û»¹ÊÇÂúÒâµÄ¡£ËäÈ»»¨ÁË3ÖܵÄʱ¼äÈ¥×¼±¸¸´Ï°Êýѧ£¬µ«ÊÇÎÒÈ´·¢ÏÖ£¬ÕæÕýȥѧϰµÄʱºòÖ»ÓÐ×îºóÄÇÁ½Ì죬ÒÔÍùµÄʱ¼äÈ«ÊÇÀ˷ѵôÁË¡£ËìÃ÷
°×£¬ÎªÊ²Ã´Í¬Ò»ÖÖ»·¾³ÏµÄÈË£¬ÓеijÉÁËÌì²Å£¬ÓеÄÂÙÎ ......
ÓÃC/C£«£«Ð´CGI³ÌÐò
ʹÓÃCGIC¿âµÄ¼òÒª£º
¿âµÄº¯Êý˵Ã÷£º http://www.boutell.com/cgic/#cgiFormStringNoNewlines
1. ´òÓ¡CGI±ê×¼Êä³öÍ·²¿£º
cgiHeaderContentType£¨"text/plain"£©£»
»òÕߣº
......
#include<reg52.h>
#include<intrins.h>
#define uint unsigned int
#define uchar unsigned char
uint date;
uchar mm=0,n=0;
uint k1,k2,k3,k4,k5,k6;
uchar code b[]={
0x3f,0x06,0x5b,0x4f,0x66, //0,1,2,3,4,
0x6d,0x7d,0x07,0x7 ......
ÄÚ´æ·ÖÅ䷽ʽÓÐÈýÖÖ£º
£¨1£© ´Ó¾²Ì¬´æ´¢ÇøÓò·ÖÅä¡£ÄÚ´æÔÚ³ÌÐò±àÒëµÄʱºò¾ÍÒѾ·ÖÅäºÃ£¬Õâ¿éÄÚ´æÔÚ³ÌÐòµÄ
Õû¸öÔËÐÐÆÚ¼ä¶¼´æÔÚ¡£ÀýÈçÈ«¾Ö±äÁ¿£¬static ±äÁ¿¡£
£¨2£© ÔÚÕ»ÉÏ´´½¨¡£ÔÚÖ´Ðк¯Êýʱ£¬º¯ÊýÄÚ¾Ö²¿±äÁ¿µÄ´æ´¢µ¥Ôª¶¼¿ÉÒÔÔÚÕ»ÉÏ´´½¨£¬º¯
ÊýÖ´ÐнáÊøÊ±ÕâЩ´æ´¢µ¥Ôª×Ô¶¯±»ÊÍ·Å¡£Õ»ÄÚ´æ·ÖÅäÔËËãÄÚÖÃÓÚ´¦ÀíÆ÷µÄÖ¸Áî¼ ......
×òÌìÒ»¸öͬѧºÍÎÒ̸ÆðËûÔÚ²âÊÔC³ÌÐòʱʱ·¢ÏÖʹÓÃ-1ΪϱêÀ´·ÃÎÊÊý×飬gcc²¢Ã»Óб¨´í£¬¶øÇÒÄܹ»ÔËÐгɹ¦£¬Õâ¸öÒÔǰÎÒ»¹Ã»ÊÔ¹ý£¬´¦ÓÚºÃÆæ£¬½ñÌìÏÂÎç³éÁ˵ãʱ¼ä¿´ÁËһϡ£
ÏÂÃæÊÇÎÒʹÓõIJâÊÔ´úÂ룬ÔËÐл·¾³ÊÇDEV-C++4.9.9.2£¬±àÒëÆ÷ʹÓõÄÊÇgcc¡£
&nb ......