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

Pro*C Á¬½ÓÊý¾Ý¿âʱdbname µÄÉèÖÃ

    ×î½üÒ»¶Îʱ¼äÔÚÑо¿ Pro*C Óöµ½Á˺ܶà³õ¼¶ÎÊÌâ¡£ÔÚ Pro*C ÖÐÁ¬½ÓÊý¾Ý¿âʱ£¬ÎÒÃÇÒ»°ãÊÇʹÓÃÔÚ“tnsnames.ora”ÖÐÅäÖúÃÁ¬½Ó£¬Ð´ÆðÀ´ºÜ¼òµ¥£¬Óï·¨ÈçÏ£º
    EXEC SQL CONNECT :username IDENTIFIED BY :password USING :dbname;
    /* ÕâÀïµÄ dbname ¾ÍÊÇÔÚ“tnsnames.ora” ÅäÖúõÄÃû³Æ */
    ÄÇôÈç¹ûûÓÐÔÚ“tnsnames.ora”ÖÐÅäÖÃÏàÓ¦µÄÁ¬½ÓÐÅÏ¢£¬ÒªÈçºÎд dbname ÄØ£¿ÎÒÔÚÍøÉÏÕÒÁ˺ÃÒ»Õó¶¼Ã»ÕÒµ½ºÏÊʵĴ𰸣¬Ö»ÄÜ×Ô¼ºÊÔÁË¡£ÊÔÁ˼¸´ÎÖÕÓڵõ½Á˴𰸣¬Æäʵ dbname ÉèÖÃÓдËÀàËÆȥдJDBCÖеÄÁ¬½Ó×Ö·û´®£¬¼´£º“IPµØÖ·:¶Ë¿ÚºÅ/ʵÀýÃû” ÀýÈ磺Á¬½Ó±¾µØµÄ Oracle Express ¾Í¿ÉÒÔд³É“localhost:1521/XE”¡£


Ïà¹ØÎĵµ£º

ÓÃC#£¨C++£©Socketºǫ́±àд×Ô¼ºµÄIIS·þÎñÆ÷´úÌæIIS

 ±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËдÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àдÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊصÄ×¼ÔòºÍ±ê×¼ÓÖÊÇʲôÄØ£¿
Õâ¾ÍÊÇht ......

C Sharp ÈëÃÅ£¨Ò»£©¿ØÖÆ̨

 C#ºÍVBScript£¬ActionScript£¬C++·Ç³£ÏàËÆ£¡
ÏÈÔÚCSÖн¨Á¢Ò»¸ö¿ØÖÆ̨³ÌÐò£¬ÔÙ´ò¿ª“Program.cs”¡£
ÔÚ void_Main ÊäÈëÒÔÏ´úÂ룺
 
            //ÕâÊÇ×¢ÊÍ£¬×¢ÊͽöÔÚµ÷ÊÔʱÓÐÓÃ
         ......

Cö¾ÙÀàÐ͵ÄʹÓ÷½·¨

1.  ö¾ÙµÄ¶¨Òåö¾ÙÀàÐͶ¨ÒåµÄÒ»°ãÐÎʽΪ£º
    enum ö¾ÙÃû{ ö¾ÙÖµ±í };
ÔÚö¾ÙÖµ±íÖÐÓ¦ÂÞÁгöËùÓпÉÓÃÖµ¡£ÕâЩֵҲ³ÆΪö¾ÙÔªËØ¡£
ÀýÈ磺
   
¸Ãö¾ÙÃûΪweekday£¬Ã¶¾ÙÖµ¹²ÓÐ7¸ö£¬¼´Ò»ÖÜÖеÄÆßÌì¡£·²±»ËµÃ÷ΪweekdayÀàÐͱäÁ¿µÄÈ¡ÖµÖ»ÄÜÊÇÆßÌìÖеÄijһÌì¡£
2.  ö¾Ù±äÁ¿µ ......

c/c++ÖеÄconst¹Ø¼ü×Ö

const£¬c\c++Öзdz£³£ÓõĹؼü×Ö¡£
Ê×ÏÈÎÒÃÇ¿´¿´constÓÐÄÇЩÐÞÊη½·¨¡£
×îÇ°ÃæÎÒÃÇÀ´¿´Ò»¸öÎÊÌâ¡£
char *p = "123";
¿ÉÄÜÓеÄÈ˲»ÖªµÀ£¬ÕâÀïµÄÕâ¸ö"123"ÊÇ´æ´¢ÔÚ³£Á¿ÇøµÄ£¬²»ÈÝÐíÐ޸ĵġ£
Ò²¾ÍÊÇ˵ËüÊǸöconstÀàÐ͵ġ£
±ê×¼µÄд·¨Ó¦¸ÃÊÇ
char const *p = "123";
ÖÁÓÚΪʲô±àÒëÆ÷ÈÝÐíÉÏÃæµÄÄǸö²»±ê×¼µÄд·¨£¬¿ÉÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ