Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

c/c++¾­µäÃæÊÔÊÔÌâ¼°±ê×¼´ð°¸

¾­¹ý¼¸´ÎÃæÊÔ£¬·¢ÏÖ±ÊÊÔÌâ»ù±¾É϶¼ÊÇÄǼ¸µÀ£¬Ã»ÓÐʲô´´Ð»òÕ߸ı䣬×ܽá³öÀ´¸ø´ó¼Ò²Î¿¼²Î¿¼.
  
Ò»¡¢ÇëÌîдBOOL , float, Ö¸Õë±äÁ¿Óë“ÁãÖµ”±È½ÏµÄ if Óï¾ä¡££¨10·Ö£©
Çëд³ö BOOL flag Óë“ÁãÖµ”±È½ÏµÄ if Óï¾ä¡££¨3·Ö£©
±ê×¼´ð°¸£º
    if ( flag )
    if ( !flag )
ÈçÏÂд·¨¾ùÊô²»Á¼·ç¸ñ£¬²»µÃ·Ö¡£
    if (flag == TRUE)  
    if (flag == 1 )    
    if (flag == FALSE)
        if (flag == 0)
Çëд³ö float x Óë“ÁãÖµ”±È½ÏµÄ if Óï¾ä¡££¨4·Ö£©
±ê×¼´ð°¸Ê¾Àý£º
const float EPSINON = 0.00001;
if ((x >= - EPSINON) && (x <= EPSINON)
²»¿É½«¸¡µã±äÁ¿ÓÓ==”»ò“£¡=”ÓëÊý×ֱȽϣ¬Ó¦¸ÃÉ跨ת»¯³É“>=”»ò“<=”´ËÀàÐÎʽ¡£
ÈçÏÂÊÇ´íÎóµÄд·¨£¬²»µÃ·Ö¡£
    if (x == 0.0)  
    if (x != 0.0)      
Çëд³ö char *p Óë“ÁãÖµ”±È½ÏµÄ if Óï¾ä¡££¨3·Ö£©
±ê×¼´ð°¸£º
    if (p == NULL)
    if (p != NULL)
ÈçÏÂд·¨¾ùÊô²»Á¼·ç¸ñ£¬²»µÃ·Ö¡£
    if (p == 0)
    if (p != 0)    
    if (p)
        if (!)     
¶þ¡¢ÒÔÏÂΪWindows NTϵÄ32λC++³ÌÐò£¬Çë¼ÆËãsizeofµÄÖµ£¨10·Ö£©
 char str[] = “Hello” ;
 char   *p = str ;
int     n = 10;
Çë¼ÆËã
sizeof (str ) = 6   £¨2·Ö£©
sizeof ( p ) =   4   £¨2·Ö£©
sizeof ( n ) =   4   £¨2·Ö£©
 
void Func ( char str[100])
{
Çë¼ÆËã
sizeof( str ) =   4     £¨2·Ö£©
}
void *p = malloc( 100 );
Çë¼ÆËã
sizeof ( p ) = 4      £¨2·Ö£©
 
 Èý¡¢¼ò´ðÌ⣨25·Ö£©
 
1¡¢Í·ÎļþÖÐµÄ ifndef/define/endif ¸ÉʲôÓã¿£¨5·Ö£©
´ð£


Ïà¹ØÎĵµ£º

JAVA²Ù×÷XMLµÄÍêÕûÀý×Ó——W3C DOMƪ

ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
 <book>
  <name>¹þÀï²¨Ì ......

C/C++ÎļþµÄ²Ù×÷£¨fread() fwrite()£©

freadº¯ÊýºÍfwriteº¯Êý
1.º¯Êý¹¦ÄÜ
  ÓÃÀ´¶Áдһ¸öÊý¾Ý¿é¡£
2.Ò»°ãµ÷ÓÃÐÎʽ
  fread(buffer,size,count,fp);
  fwrite(buffer,size,count,fp);
3.˵Ã÷
  £¨1£©buffer£ºÊÇÒ»¸öÖ¸Õ룬¶ÔfreadÀ´Ëµ£¬ËüÊǶÁÈëÊý¾ÝµÄ´æ·ÅµØÖ·¡£¶ÔfwriteÀ´Ëµ£¬ÊÇÒªÊä³öÊý¾ÝµÄµØÖ·¡£
  £¨2£©size£ºÒª¶ÁдµÄ×Ö½ÚÊý ......

͸ÎöC/SºÍB/SÁ½ÖÖģʽµÄ²âÊÔ

C/SÓÖ³ÆClient/Server»ò¿Í»§/·þÎñÆ÷ģʽ¡£·þÎñÆ÷ͨ³£²ÉÓøßÐÔÄܵÄPC¡¢¹¤×÷Õ¾»òСÐÍ»ú£¬²¢²ÉÓôóÐÍÊý¾Ý¿âϵͳ£¬ÈçOracle¡¢Sybase¡¢Informix»ò SQL Server¡£¿Í»§¶ËÐèÒª°²×°×¨ÓõĿͻ§¶ËÈí¼þ¡£
¡¡¡¡B/£ÓÊÇBrower/ServerµÄËõд£¬¿Í»§»úÉÏÖ»Òª°²×°Ò»¸öä¯ÀÀÆ÷£¨Browser£©£¬ÈçNetscape Navigator»òInternet Explorer£¬·þÎñÆ÷°²×°O ......

ÓÃEclipse CDT ÅäÖà C/C++ ±àÒë»·¾³

1¡¢Java JDKµÄ°²×°
EclipseÊÇÒ»¿î¿çƽ̨µÄ¹¤¾ß£¬Ö»ÐèÒª»ù±¾µÄjavaÐéÄâ»ú¾Í¿ÉÒÔÔËÐС£
°²×°Java
SDKºÜ¼òµ¥¡£µ½http://java.sun.comÉÏÕÒµ½ÊʺÏÄãµÄ²Ù×÷ϵͳµÄJava
JDK°²×°³ÌÐò£¬ÏÂÔØÖ®²¢ÔËÐУ¬Java SDK¾Í»á°²×°µ½ÄãµÄϵͳÖС£
×¢Ò⣬¸ü¸ß°æ±¾µÄEclipseÐèÒª¸ü¸ß°æ±¾µÄJava JDK¡£
2¡¢Eclipse¼°CDTµÄ°²×°
µ½EclipseµÄ¹Ù·½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ