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

Pro * C ¼òµ¥Àý×Ó

#include <stdio.h>
exec sql begin declare section;
char userid[11]="hr/oracle";
char std_name[10];
int std_number;
int dept_number;
exec sql end declare section;
char temp[3];
void sql_error();
#include <sqlca.h>
main()
{
std_number=060415;
exec sql whenever sqlerror do sql_error("oracle error");
exec sql connect :userid;
printf("connect.\n");
exec sql declare gxj_cursor cursor for
select last_name
from employees
where employee_id=:dept_number;
printf("employee number?");
gets(temp);
dept_number=atoi(temp);
    exec sql open gxj_cursor;
printf("student name\n");
printf("----------------------------\n");
exec sql whenever not found do break;
while(1)
{
  exec sql fetch gxj_cursor into :std_name;
  printf("%s\n",std_name);
}
exec sql close gxj_cursor;
exec sql commit work release;
exit(0);
}
void
sql_error(msg)
char * msg;
{
char buf[500];
int buflen,msglen;
exec sql whenever sqlerror continue;
exec sql rollback work release;
buflen=sizeof(buf);
sqlglm(buf,&buflen,&msglen);
printf("%s\n",msg);
printf("%*.s\n",msglen,buf);
exit(1);
}
1. edit a pc file, for example test.pc
2. proc test.pc
3. gcc test.c -I/u01/app/oracle/product/10.2.0/db_1/precomp/public -L/u01/app/oracle/product/10.2.0/db_1/lib -lclntsh ÆäÖÐ-IÖ¸¶¨include·¾¶, -LÖ¸¶¨ÐèÒªµÄ¿âÎļþ·¾¶


Ïà¹ØÎĵµ£º

Visual C++ÖеÄCÔËÐÐʱ¿âdzÎö(lib dll)

Visual C++ÖеÄCÔËÐÐʱ¿âdzÎö(lib dll)
Ò»¡¢ÀúÊ·
¡¡¡¡CÔËÐÐʱ¿â¾ÍÊÇC run-time library£¬µ®ÉúÓÚ20ÊÀ¼Í70Äê´ú£¬ÊÇC¶ø·ÇC++ÓïÑÔÊÀ½çµÄ¸ÅÄC³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý¡£
¡¡¡¡CÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£¬Êý¾ÝÀàÐ͵ȣ©¡£ËùÒÔ£¬CÓïÑÔÄں˿ª·¢³öÀ´Ö®ºó£¬ ......

C/C++ÕÐƸµÄһЩ¸ÐÊܺ;­Ñé[ת]


C/C++ÕÐƸµÄһЩ¸ÐÊܺ;­Ñé[ת]
 
 Ç°¶Îʱ¼ä¸Õ²Î¼ÓÁËn¶à¹«Ë¾µÄC/C++Èí¼þ¹¤³ÌʦµÄÃæÊÔ£¬ÓйúÆó£¬ÍâÆó£¬Ë½Æó£¨moto£¬·É˼¿¨¶û£¬¸ÛÍ壬ÖйúÎÀÐÇXXX£¨Õâ¸öÅ££©£©µÈµÈµÈµÈ¡£¸ÐÊܸÐÏëÆĶ࣬½üÈÕÖÕÓÚ¿ÕÏУ¬Ôڴ˱íÊöһϡ£ 
    ±¾ÈË»ù±¾Ìõ¼þ£º3Ä꿪·¢¾­Ñ飬2year+ Windows development experence£¬1 ......

µäÐ͵ÄC³ÌÐò´æ´¢¿Õ¼ä²¼¾Ö

Ò»¸öµäÐ͵ÄC³ÌÐò´æ´¢¿Õ¼ä²¼¾ÖÓÉÒÔϼ¸¸ö²¿·Ö×é³É£º
    ÕýÎĶΣºCPUÖ´ÐеÄÖ¸Á·Ö£¬Ò²¾ÍÊÇÖ÷ÒªµÄ³ÌÐò´úÂë±àÒë³öÀ´µÄ½á¹û£¬Ö»¶Á£¬Í¨³£¿ÉÒÔ¹²Ïí¡£
    ³õʼ»¯Êý¾Ý¶Î£ºÍ¨³£³Æ֮ΪÊý¾Ý¶Î£¬°üº¬Á˳ÌÐòÖÐÐèÒªÃ÷È·¸³ÖµµÄ±äÁ¿£¬Æ©ÈçһЩ³õʼ»¯µÄÈ«¾Ö±äÁ¿µÈ£¬Èç int a = 10£¬±äÁ¿ÃûºÍÖµ¶¼´æ·ÅÔÚÕâ ......

C++µÄÀàÓëCÀïÃæµÄstructµÄÇø±ð


C++µÄÀàÓëCÀïÃæµÄstructµÄÇø±ð
2009-10-11 15:32
¹ØÓÚʹÓôóÀ¨ºÅ³õʼ»¯
classºÍstructÈç¹û¶¨ÒåÁ˹¹Ô캯ÊýµÄ»°£¬¶¼²»ÄÜÓôóÀ¨ºÅ½øÐгõʼ»¯
Èç¹ûûÓж¨Òå¹¹Ô캯Êý£¬struct¿ÉÒÔÓôóÀ¨ºÅ³õʼ»¯¡£
Èç¹ûûÓж¨Òå¹¹Ô캯Êý£¬ÇÒËùÓгÉÔ±±äÁ¿È«ÊÇpublicµÄ»°£¬¿ÉÒÔÓôóÀ¨ºÅ³õʼ»¯¡£
¹ØÓÚĬÈÏ·ÃÎÊȨÏÞ
classÖÐĬÈϵijÉÔ±·ÃÎÊÈ ......

ÓÃCдµÄ3DÃÔ¹¬

          Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
       ´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
         &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ