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

C bulider¼ÆËãÆ÷³õ²½

//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
int   flag=0; //ÓÃ×÷±êÖ¾ÔËËãÖÖÀà
int   clearflag=0;//¿ÉÓÃÀ´±êÖ¾°´ÏÂÔËËã·û²»Á¢¼´ºóÇå¿ÕÎı¾¿ò£¬¹¦ÄÜÀàËÆ¼ÆËãÆ÷
int   temp1;//ÓÃ×÷¼Ä´æÔËËãǰµÄÊý
float temp2;//ÓÃ×÷¼Ä´æÔËËãµÄ½á¹û
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
        Form1->Edit1->Clear();
        temp1=0;
        temp2=0;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
        if(clearflag==0)//±íʾÕâÊǰ´ÏÂÔËËã·û¼üÖ


Ïà¹ØÎĵµ£º

´î½¨eclipseϵÄcºÍc++¿ª·¢»·¾³


 
ÎÒÃÇÐèÒªÒ»¸öcdt£¬Õâ¸ö¿ÉÒÔÔÚEclipse¹ÙÍøÏÂÔØ¡£
ÎÒÃÇÐèÒªMinGW——C/C++±àÒëÆ½Ì¨£¬ÏÂÔØºóÐèÒª°²×°£¬Í¬Ê±Ñ¡ÖÐg++¡¢MinGW Make£¬Í¬Ê±ÉèÖû·¾³±äÁ¿£¬½«%MinGW_HOME%\binÉèÖõ½PATHÖУ¬È»ºóÎÒÃÇ¿ÉÒÔͨ¹ýÃüÁîÐÐÇû÷gcc£¬¿´ÊÇ·ñÓÐЧ¹û¡£
ÎÒÃÇÐèÒªgdb——C/C++µ÷ÊÔÆ½Ì¨£¬ÏÂÔØºó°²×°£¬Ä¬Èϵ½MinGW_ ......

C++ÖÐextern ¡°C¡±Ïê½â£¡£¡

Ò»Ö±ÖªµÀÔÚC++ÖÐÓÃextern “C” {
}µ÷ÓÃCÓïÑÔ£¬µ«ÊDz»ÖªµÀΪʲô£¬ËäȻҲ֪µÀ±àÒëÆ÷µÄÃüÃû¹æÔò£¬²»¹ýûÓÐÁªÏëµ½Õâ¸öÉÏÃæ£¬¿´µ½ÕâÆªÎÄÕ£¬²Å»ÐÈ»´óÎò¡£²»¹ý£¬ÒòΪ×Ô¼ºÒ»Ö±ÔÚlinuxÏÂʹ
ÓÃCÓïÑÔ£¬Ã»ÓÐʹÓÃC++µÄ¾­ÑéµÄÔµ¹Ê°É£¬Ï£ÍûÒÔºóÄÜÓУ¬ÕâÑù²ÅÄÜÈÚ»á¹áͨ¡£
¹Ø¼üµã£ºº¯ÊýÖØÔØ£¬ÃüÃû¹æÔò
Ò»¡¢C++ÓëC»úÖÆ±àÒëº ......

C Ö¸Õë

#include
void printptr(int *i){
printf("&i of printfptr = %#X\n",&i);
printf("i of printfptr = %#X\n",i);
printf("*i of printfptr = %d\n",*i);
printf("i+1 of printfptr = %#X\n",i+1);
printf("*(i + 1) of printfptr = %d\n",*(i ......

ÓÃCʵÏÖ´®Æ¥ÅäµÄ¼¸ÖÖ·½·¨,kmpºÍBM

±¾À´²»Ïë×Ô¼ºÐ´µÄ£¬µ«ÍøÉϵĴó¶¼ÊÇc++ʵÏֵģ¬ÓÐЩ×Ô³ÆÊÇCʵÏÖµÄ ¸´ÖƵ½±àÒëÆ÷Éϸù±¾ÔËÐв»ÁË¡£
KMP»¹ÊǺܾ­µäµÄËã·¨£¬ÎҾͲ»¼Ó×¢ÊÍÁË£¬Ö±½Ó·µ»ØµÚ¼¸¸öÊýÆ¥Åä..
#include <stdio.h>
#include <stdlib.h>
void getNext(char t[]);
int next[80];
int main()
{
    char s[80],t[80];
  ......

Ê·ÉÏ×î¼òµ¥ÔªµÄpro*c³ÌÐò

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
EXEC SQL include sqlca;
EXEC ORACLE OPTION (RELEASE_CURSOR = YES);
EXEC SQL BEGIN DECLARE SECTION;
       & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ