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

PRO cÔÚvs2005ϵÄÅäÖÃ


   PRO*C/C++ÔÚvs2005ϵÄÅäÖÃ
 
×î½üÓÉÓÚ¿ª·¢ÐèÒªÓõ½PRO*C/C++±à³Ì£¬ËùÒÔѧϰÏÂPRO*C/C++±à³Ì¡£ÆäʵPRO*C/C++±à³Ìµ¹²»ÊǺÜÄÑ£¬²»¹ýËüµÄ»·¾³ÅäÖõ¹ÊÇÓÐЩÂé·³¡£Ïл°ÉÙ˵£¬vs2005ÏÂPRO*C/C++»·¾³ÅäÖÃÈçÏ£º 
£¨1£©¼ÓÈëÏà¹ØÍ·Îļþ¡£Ñ¡Ôñ¹¤¾ß-¡·Ñ¡Ïî-¡·ÏîÄ¿ºÍ½â¾ö·½°¸-¡·VC++Ŀ¼¡£¼ÓÈëPROÔ¤±àÒëÍ·ÎļþĿ¼ºÍociÍ·ÎļþĿ¼£¬ÈçÏÂͼ£¨ÎÒµÄoracle×°ÔÚdÅÌ£¬´ó¼Ò¿ÉÒÔ¸ù¾Ý×Ô¼ºoracle°²×°µÄĿ¼½øÐÐÏà¹ØµÄµ÷Õû£©£º
         
 
£¨2£©¼ÓÈë¿âÎļþ¡£Ñ¡Ôñ¹¤¾ß-¡·Ñ¡Ïî-¡·ÏîÄ¿ºÍ½â¾ö·½°¸-¡·VC++Ŀ¼¡£¼ÓÈëPROÔ¤±àÒë¿âÎļþĿ¼ºÍoci¿âÎļþĿ¼£¬ÈçÏÂͼ£¨ÎÒµÄoracle×°ÔÚdÅÌ£¬´ó¼Ò¿ÉÒÔ¸ù¾Ý×Ô¼ºoracle°²×°µÄĿ¼½øÐÐÏà¹ØµÄµ÷Õû£©£º
         
 
£¨3£©¼ÓÈë¿ÉÖ´ÐÐÎļþĿ¼¡£ÓÉÓÚÎÒ±àдµÄPROC³ÌÐòÐèÒªoracleÌṩproc.EXE½øÐÐÔ¤±àÒëÉú³Éc³ÌÐò¡£ËùÒÔÎÒÃÇÐèÒª¼ÓÈëproc.EXE³ÌÐòËùÔÚµÄĿ¼¡£ÈçÏÂͼ£¨ÎÒµÄoracle×°ÔÚdÅÌ£¬´ó¼Ò¿ÉÒÔ¸ù¾Ý×Ô¼ºoracle°²×°µÄĿ¼½ø
    
 
 
Ïà¹ØµÄµ÷Õû£©£º  
 
£¨4£©»·¾³²î²»¶à´î½¨ºÃÁË¡£ÏÖÔÚÎҾͱàдһ¸öpro*C/C++³ÌÐò¡£Ð½¨Ò»¸öwin32¿ØÖÆÌ¨³ÌÐò£¬ÃüÃûΪTestÏîÄ¿£¬Ñ¡Ôñ¿ÕÏîÄ¿¡£
£¨5£©±àдpro³ÌÐò¡£´úÂëÈçÏ£º£¨´ó¼Ò¿ÉÒÔÖ±½Ó¸´ÖÆ´úÂë±£´æÎªtest.pc£©
      #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
#include <sqlca.h>
EXEC SQL INCLUDE sqlca;
EXEC SQL INCLUDE oraca;
EXEC ORACLE OPTION(ORACA=YES);
int main()
{
char username[10],password[10],server[10];
printf("ÊäÈëÓû§Ãû£º\n");
gets(username);
printf("ÊäÈë¿ÚÁ\n");
gets(password);
printf("ÊäÈëÍøÂç·þÎñÃû£º\n");
gets(server);
EXEC SQL CONNECT:username IDENTIFIED BY:password USING:server ;
if(sqlca.sqlcode==0)
{
printf("Á¬½Ó³É¹¦£¡\n");
}
else
{
printf("%.*s\n",sqlca.sqlerrm.sqlerrml,sqlca.sqlerrm.sqlerrmc);
}
EXEC SQL COMMIT RELEASE;
getch();
return 0;
}

 
£¨6£©°Ñ±£´æºóµÄtest.pc¼ÓÈëTestÏîÄ¿¡£ÈçÏÂͼ£º
 
   &nbs


Ïà¹ØÎĵµ£º

VB/C++/C#´®¿ÚͨѶԴ´úÂ롾¸½ÏêϸעÊÍ¡¿


VB
    If MSComm1.PortOpen = True Then MSComm1.PortOpen = False
    MSComm1.CommPort = i1
    MSComm1.PortOpen = True
    MSComm1.InputMode = comInputModeBinary
    MSComm1.InBufferCount = 0
& ......

ÓÃCÓïÑÔÀ©Õ¹PythonµÄ¹¦ÄÜ

µ±½ñÓÐÐí¶àÃâ·ÑµÄ RDBMS£¨Relational Database Management
System£¬¹ØÏµÊý¾Ý¿â¹ÜÀíϵͳ£©£¬ÆäÖÐһЩÊÇ¿ª·ÅÔ´ÂëÈí¼þ£¬ÁíһЩÊÇÉÌÒµ³§ÉÌÌṩµÄÃâ·Ñ²úÆ·¡£Èç¹ûÄúÕýÔÚʹÓà C/C++¡¢Java™¡¢.NET
»ò PHP
¿ª·¢Ó¦ÓóÌÐò£¬ÏëѰÕÒÒ»ÖÖ¿É¿¿µÄÊý¾Ý·þÎñÆ÷£¬Ï£ÍûËüÖ§³ÖÏȽøµÄ¼¼Êõ¡¢¾ßÓв»¶ÏÀ©´óµÄ¿ª·¢ÈËÔ±ÉçÇø²¢ÒѾ­²¿ÊðÔÚÐí¶à¹Ø¼ ......

C±ê×¼¿âÔ´Âë½âÆÊ(10)£ºÇøÓòÉèÖú¯Êýlocale.h

    ¹ú¼Ò¡¢ÎÄ»¯ºÍÓïÑÔ¹æÔò¼¯³ÆÎªÇøÓòÉèÖã¬locale.hÍ·ÎļþÖж¨ÒåÁËÇøÓòÉèÖÃÏà¹ØµÄº¯Êý¡£setlocaleº¯ÊýÓÃÓÚÉèÖûò·µ»Øµ±Ç°µÄÇøÓòÌØÐÔ£¬localeconvÓÃÓÚ·µ»Øµ±Ç°ÇøÓòÖеÄÊý×ֺͻõ±ÒÐÅÏ¢£¨±£´æÔÚstruct lconv½á¹¹ÊµÀýÖУ©¡£setlocaleµÄµÚÒ»¸öʵ²ÎÖ¸¶¨Òª¸Ä±äµÄÇøÓòÐÐΪÀà±ð£¬Ô¤¶¨ÒåµÄsetlocaleÀà±ðÓУº
 &n ......

DSP CÓÅ»¯2

3.4Àí½â±àÒëÆ÷µÄ·´À¡ÐÅÏ¢
    ÔÚ±àÒëC´úÂëʱ£¬±àÒëÆ÷ÔÚ²úÉúµÄ.asmÎļþÀïÏò³ÌÐòÔ±·´À¡ÁËÐí¶àÐÅÏ¢£¬Àí½âÕâЩÐÅÏ¢£¬°´ËüµÄÌáʾÐÞ¸ÄC´úÂ룬¶Ô¾¡¿ìÓÅ»¯´úÂëºÜÓкô¦¡£Ö»ÒªÓÃ-kÁî±àÒëÆ÷±£Áô.asmÎļþ£¬¾Í¿É¶Áµ½ÕâЩÐÅÏ¢¡£
    ¶ÔÓÚCÓÅ»¯£¬Öصã¾ÍÊÇÑ­»·£¬¶ÔÓÚ·´À¡ÐÅÏ¢£¬ÎÒÃÇÖ÷Òª¿¼²ì±àÒëÆ÷¶ÔÁ÷Ë®Ïß ......

CÖг£Á¿²ÎÓëÔËËãµÄÎÊÌâ

×î½üÔÚ¿ª·¢ÖУ¬¶Ô³£Á¿²ÎÓëÔËËãʱºò£¬³öÁ˼¸¸öÎÊÌâ£¬ÌØ¼Ç¼ÈçÏ£º
1.Àý×ÓÒ»£¨KEIL-51£©
   unsigned char recsum,xorsum;
   recsum == 0xFF; 
   xorsum == 0x00;
   if(recsum != (xorsum-1))  //Õâʱºò²»ÏàµÈ
   if(recsum != (unsigned ch ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ