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

c/C++±àÒëµÄ³ÌÐòÕ¼ÓõÄÄÚ´æÇé¿ö ÎÄ×Ö³£Á¿Çø

Ê×ÏÈ¿´ÏÂÏÂÃæÕâ¶Î£º
int main()
{
char *name = "fengkewei";
char name1[] = "fengkewei";
char *name2 = "fengkewei";
char *name3 = "woaifengkewei";
int i = 10;
int j = 10;
int k = 11;
return 0;
}
ÈôÄú¾õµÃËüÃÇÓ¦¸Ã¶¼±£´æÔÚÄÚ´æÖеÄÒ»¿éµØ·½£¬ÄÇÇëÍùÏ¿´¡£¡£¡£¡£
ÏÂÃæÊDZàÒëÆ÷Ϊ¸÷¸ö±äÁ¿·ÖÅäµÄÄÚ´æµØÖ·£¬ÓÉÓÚ·ÖÅäÔÚÕ»ÉÏ ËùÒÔµØÖ·ÊǵݼõµÄ
---------------------Õ»Çø------------------------------------
+   &name 0x0013ff5c unsigned char * *
+   &name1 0x0013ff48 unsigned char [10]*
+   &name2 0x0013ff3c unsigned char * *
+   &name3 0x0013ff30 unsigned char * *
+   &i 0x0013ff24 int *
+   &j 0x0013ff18 int *
+   &k 0x0013ff0c int *
---------------------------------------------------------------
&name ºÍ&name1[] Ïà²î20¸ö×Ö½Ú µ«"fengkewei"Ö»ÓÐ10¸ö×Ö½Ú£¨´ø¿Õ×Ö·û£©
&name1[]ºÍ&name2 Ïà²î12¸ö×Ö½Ú
ºóÃ涼Õý³£ÁË ¶¼²î12
ΪʲôÊÇ12£¿
————————————————————————————————————————————
ÏÂÃæÊǸ÷×Ö·û´®µÄÊ×µØÖ· ËüÃǶ¼ÔÚÎÄ×Ö³£Á¿ÇøÀï ÏàͬҲ¾ÍÏàͬÁË ²»Í¬ÔòÊǵÝÔö·ÖÅäµÄ£¨ ÎÄ×Ö³£Á¿ÇøÒ²ÊǵÝÔö·ÖÅäµÄ)
---------------------------ÎÄ×Ö³£Á¿Çø-------------------------------------------------
+   name 0x004156b8 "fengkewei" unsigned char *
+   name2 0x004156b8 "fengkewei" unsigned char *
+   name3 0x00416010 "woaifengkewei" unsigned char *
+   name1 0x0013ff48 "fengkewei" unsigned char [10]
¿É¼ûname1[]ÊÇÔÚÒ»¸ö²»Í¬µÄµØ·½µÄ Ò²¾ÍÊÇ˵Ëü¾ÍÊÇÔÚÕ»ÉÏ
 
 
ÏÖÔÚÎÒÃÇÉèÖÃÒ»¸öÕûÐÍÖ¸Õë
int *p;
p = &i;
ÄÇpµÄµØÖ·Ó¦¸ÃÊÇÖ¸ÏòiµÄµØÖ·£¬Ö¸ÏòÕ»Çø
¹ûÈ»£º
+   &i 0x0013ff24 int *
+   p 0x0013ff24 int *
----------------------------------------------------------


Ïà¹ØÎĵµ£º

TCP£¨SOCKETS£©±à³Ì C/C++ʵÏÖ

ͨÐÅ
Server£º
#pragma comment(lib, "ws2_32.lib")
#include <Winsock2.h>
#include <stdio.h>

void main()
{
//°æ±¾Ð­ÉÌ
WORD wVersionRequested;
WSADATA wsaData;
int err;

wVersionRequested = MAKEWORD(1,1); //0x0101
err = WSAStartup ......

C/C++λ²Ù×÷

C/C++λ²Ù×÷
Ò»¡¢´«Í³µÄC·½Ê½Î»²Ù×÷£º
1.»ù±¾²Ù×÷£º
  ʹÓÃÒ»¸öunsigned int±äÁ¿À´×÷ΪλÈÝÆ÷¡£
2.²Ù×÷·û£º
|  °´Î»»ò²Ù×÷·û£ºresult=exp1|exp2;µ±exp1ºÍexp2ÖжÔӦλÖÐÖÁÉÙÓÐÒ»¸öΪ1ʱ£¬resultÖжÔӦλΪ1£¬·ñÔòΪ0¡£
&  °´Î»Óë²Ù×÷·û£º£ºresult=exp1&exp2;µ±exp1ºÍexp2ÖжÔӦλȫΪ1ʱ ......

PRO*C±à³ÌÖгöÏֵĴíÎó


1. linuxÏÂÆô¶¯oracle
su - oracle
sqlplus /nolog
conn /as sysdba
startup
exit
lsnrctl start
exit
2. linuxϹرÕoracle
su - oracle
sqlplus /nolog
conn /as sysdba
shutdown immediate
exit
lsnrctl stop
exit
3¡¢Æô¶¯¼àÌýÆ÷
oracle@suse92:~> lsnrctl start
4¡¢Í£Ö¹¼àÌýÆ÷
oracle@suse92:~ ......

¡¶the c programming language¡·»Ø¹ËÖ®Ò»

1,³ÌÐò¿ØÖÆÖеĿØÖÆÁ÷Óï¾äÓÃÓÚ¿ØÖƸ÷¼ÆËã»ú²Ù×÷Ö´ÐеĴÎÐò¡£
 Ê²Ã´ÊÇ¿ØÖÆÁ÷Óï¾äÏëÁË°ëÌ죬ԭÀ´²»¹ýÊÇÕâЩ£¬if-elseÓï¾ä£¬else-ifÓï¾ä£¬switchÓï¾ä£¬whileÑ­»·£¬forÑ­»·£¬do-whileÑ­»·µÈ¡£
2,»¨À¨ºÅ{}£¬ÆäÖеÄÓÒ»¨À¨ºÅÓÃÓÚ½áÊø³ÌÐò¿é£¬Æäºó²»ÐèÒª·ÖºÅ¡£
  µ±³õÒ»¿´µ½“Æäºó²»ÐèÒª·ÖºÅµÄ”ʱºòÏëÁË°ëÌ ......

CÖÐÈçºÎµ÷ÓÃC++£¿C++ÖÐÈçºÎµ÷ÓÃC

CÖÐÈçºÎµ÷ÓÃC++£¿C++ÖÐÈçºÎµ÷ÓÃC?Õâ¸öÎÊÌâÊÇÐí¶àÈí¼þ¹«Ë¾ÃæÊÔ¹ý³ÌÖлáÎʵ½µÄÒ»¸ö³£¼ûÎÊÌâ¡£»Ø´ðÕâ¸öÎÊÌâ²¢²»À§ÄÑ£¬ÄǾÍÊÇʹÓÃ
extern "C",µ«ÊÇÃæÊÔ¹Ù¿ÉÄÜÏëͨ¹ýÕâ¸öÎÊÌâÁ˽âÄã¶ÔC/C++ÕÆÎյij̶ȡ£ÏÂÃæ×Ðϸ·ÖÎö¸ÃÎÊÌâ¡£
    Ê×ÏÈ£¬×÷
ΪexternÊÇC/C++ÓïÑÔÖбíÃ÷º¯ÊýºÍÈ«¾Ö±äÁ¿×÷Ó÷¶Î§£¨¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ