C_¹ØϵºÍÂß¼ÔËËã
Ô´Âë:
# include <stdio.h>
int main()
{
/* ¶¨ÒåÒ»¸öÕûÊýÀàÐ͵ıäÁ¿£¬ÓÃÀ´´æ·ÅºóÃæËãʽµÄÖµ */
int logic;
int a = 1;
int b = 2;
int c = 3;
logic = a+b>c&&b<=c; // ((a+b)>c)&&(b<=c)
printf("logic = %d\n", logic);
logic = a>=b+c||b==c; // (a>=(b+c))||(b==c)
printf("logic = %d\n", logic);
logic = !(a<c)+b!=1&&(a+c)/2; // (((!(a<c))+b)!=1)&&((a+c)/2)
printf("logic = %d\n", logic);
return 0;
}
Ïà¹ØÎĵµ£º
SmartGWTÊÇÒ»¸öÀûÓÃGWT·â×°SmartClientµÄ¿ªÔ´ÏîÄ¿¡£ÀàËÆÓÚGWT-Ext¡£SmartClientÊÇÒ»¸öÆóÒµ¼¶µÄajax¿ò¼Ü£¬°üÀ¨·Ç³£³öÉ«µÄUI¿â¡¢¹¤¾ß¿âºÍ¿Í»§¶Ë·þÎñ¶ËÊý¾Ý°ó¶¨µÈ¹¦ÄÜ¡££¨ÒýÓã©
UI¿â£ººÜ¶à¿ò¼ÜµÄUI¿âºÜ³öÉ«£¬¿¼ÂǵĺÜÍêÉÆ£¬ä¯ÀÀÆ÷¼æÈÝÐÔÒ²ºÜºÃ£¬µ«ÍùÍùÖ»ÊÇǰ̨µÄ£¬µ±ÄãÏëÉîÈë×öµãÓ¦ÓÃʱ£¬¾Í»á·¢Ïֺͺǫ́ ......
Àý£º#define NELE(a) (sizeof(a) / sizeof(a[0]))
int main() {
char str[] = {'E', 'M', 'C'};
for (int d=-1; d<=(NELE(str)-2);d++)
printf("%c",str[d+1]);
return 0;
}
ÅжÏprintf£¨£©Êä³öµÄÊÇʲô£¬½á¹û¿ÉÄܳöºõÒâÁÏ£¬Ê²Ã´Ò²Ã»ÓÐÊä³ö£¬ÔÒòÄØ£¿ÔÒò ......
ͻ 񻣼
¡¡±¾ÎÄÕë¶ÔÄ¿Ç°C/SģʽϱàдµÄÓ¦ÓóÌÐò¿Éά»¤ÐÔ²îµÄÌص㣬Ìá³öÁËÒ»Ì××Ô¶¯ÔÚÏßÉý¼¶µÄ½â¾ö·½°¸£¬·ÖÎöÁËÔÚÏßÉý¼¶µÄÀ§ÄѼ°ÊµÏÖÔÀí£¬²¢¸ø³öÁËʵÏÖÉý¼¶µÄ²¿·Ö´úÂ룬¾ßÓÐʵ¼Ê²Î¿¼¼ÛÖµºÍÏÖʵÒâÒå¡£±¾ÎijÌÐò´úÂë¾ùÔÚ.Net Framework 1.1 ºÍWindows2000ϲâÊÔͨ¹ý¡£
¡¡¹Ø¼ü´Ê£ºC#£»ÔÚÏßÉý¼¶£»×Ô¶¯Éý¼¶£ ......
Ìá³öÎÊÌ⣺
»Øµ÷º¯ÊýÊÇ»ùÓÚC±à³ÌµÄWindows SDKµÄ¼¼Êõ£¬²»ÊÇÕë¶ÔC++µÄ£¬³ÌÐòÔ±¿ÉÒÔ½«Ò»¸öCº¯ÊýÖ±½Ó×÷Ϊ»Øµ÷º¯Êý£¬µ«ÊÇÈç¹ûÊÔͼֱ½ÓʹÓÃC++µÄ³ÉÔ±º¯Êý×÷Ϊ»Øµ÷º¯Êý½«·¢Éú´íÎó£¬ÉõÖÁ±àÒë¾Í²»ÄÜͨ¹ý¡£
·ÖÎöÔÒò£º
ÆÕͨµÄC++³ÉÔ±º¯Êý¶¼Òþº¬ÁËÒ»¸ö´«µÝº¯Êý×÷Ϊ²ÎÊý£¬Ò༴“this”Ö¸Õ룬C++ͨ¹ý´«µÝÒ»¸öÖ¸Ïò×ÔÉíµÄÖ¸ ......
Ô´Âë:
# include <stdio.h>
int main()
{
/* »»Ðзû'\n'£¬ÓÃÓÚÊä³ö»»ÐÐ */
printf("How are you?\n");
printf("I am fine.\n\n");
/* ºáÏòÌø¸ñ·û'\t'£¬Ê¹Ìøµ½ÏÂÒ»¸öÊä³öÇø */
  ......