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

boost.python ¹ØÓÚ´øÖ¸Õë²ÎÊýµÄCº¯ÊýµÄµ¼³ö

Èç¹ûÀûÓÃboost.python µ¼³ö´øÓÐÖ¸Õë²ÎÊýµÄCº¯Êý£¬Ìṩ¸øpython½Å±¾µ÷Óá£

È磺
int func(int * pi)
{
    *pi = 3;
    cout < < "new pi:" < < *pi < < endl;
    return 0£»
}

½«ÒÔÉϺ¯ÊýÀûÓÃboost.pythonµ¼³ö¡£

Èç¹û×ö²»µ½£¬ÄÇÄÜ·ñµ¼³öÒýÓòÎÊýµÄº¯ÊýÄØ£¿
È磺
int func(int & pi)
{
    pi = 3;
    cout < < "new pi:" < < pi < < endl;
    return 0£»
}

Èç¹ûµ¼³ö£¿



pythonÀ©Õ¹ºÍÄÚǶÓкܶàÖÖ·½·¨
¿ÉÒԲο¼´ËÌù·½·¨ http://topic.csdn.net/u/20090914/19/6b2c396a-c4f4-4fc3-9e7c-3fcfba504568.html?80658

ÎұȽÏϲ»¶ÓÃswigµÄ·½·¨À´°ü×°µ¼³ö

ÌùÒ»ÏÂswigµÄ·½·¨
C/C++ code:
/* messagebox.c */

#include <windows.h>

void MsgBox(char* lpszTitle, char* lpszMsg){
MessageBox(NULL, lpszMsg, lpszTitle, MB_OK);
}


±àдmessagebox.i
C/C++ code:
%module messagebox
%{
extern void MsgBox(char* lpszTitle, char* lpszMsg);
%}

extern void MsgBox(char* lpszTitle, char* lpszMsg);


ʹÓÃswigÉú³Émessagebox_wrap.


Ïà¹ØÎÊ´ð£º

Ò»¸ö¼òµ¥µÄcÓÎÏ·

13¸öÈËΧ³ÉһȦ£¬´ÓµÚÒ»¸öÈË¿ªÊ¼Ë³Ðò±¨ºÅ1£¬2£¬3¡£·²±¨µ½3ÕßÍ˳öȦ×Ó£¬ÕÒ³ö×îºóÁôÔÚȦ×ÓÖеÄÈËÔ­À´µÄÐòºÅ
½á¹ûÓ¦¸ÃÊÇ13 ¿ÉÎҵijÌÐòµÄ½á¹ûÊÇ11 Ï£ÍûºÃÐÄÈË°ï¸ÄÒ»ÏÂ
#include <stdio.h>
#include < ......

PHPÀ©Õ¹CʱµÄÎÊÌâ

ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ

²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿

ÔËÐÐÁË/ext_skel --extname=Ä ......

ÄÜÓÃC/C++¼òµ¥ÊµÏÖÎå×ÓÆå³ÌÐòÂð?

×î½üͻȻÏë×Ô¼ºÀ´ÊµÏÖÒ»¸öÎå×ÓÆå³ÌÐò,µ«²»ÖªµÀÔõô¿ªÊ¼,×Ô¼ºÒ²Ã»Ñ§»­Í¼Ðκ¯Êý,ÄÜÔÚ¿ØÖÆ̨ÏÂÖ±½ÓдÂð>>>?????
¿ØÖÆ̨£¿±ÈͼÐνçÃæ¸üÂé·³¡£
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......

ÇóÓÃCд°Ë»Êºó³ÌÐòµÄ´úÂë

¸÷룬ÈçºÎÓÃCÓïÑÔдһ¸ö°Ë»ÊºóµÄ³ÌÐò°¡ ÓÐÖªµÀµÄ»¹Çë´Í½Ì лл
ÔÚÇ廪µÄÊý¾Ý½á¹¹ÊéÓÐÕⶫ¶«£¡Ì«¾ÃÍüÁË£¡

C/C++ code:
#include<stdio.h>
#include<math.h>
#define N 8
int x[N+1];
int coun ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ