ÔÚC++³ÌÐòÖÐÈçºÎʹÓÃpythonº¯ÊýËù·µ»ØµÄ×Öµä
ÎÒÔÚpythonÖж¨ÒåÁËÒ»¸öº¯Êý£¬º¯Êý·µ»ØÒ»¸ö×ֵ䣬¿´ÆðÀ´´óÌåÊÇÕâ¸öÑù×ӵģº
def get_a_dic():
dic = {}
#ÔÚÕâÀï¶Ô×ֵ佸ÐвÙ×÷
¡¡
return dic
È»ºóÔÙC++Öе÷ÓÃÕâ¸öº¯Êý
µÃµ½Ò»¸öPyObject* pDic
ÎÒ¸ÃÔõôʹÓÃÕâ¸öpDic£¿
ÎÒÏë»ñµÃÀïÃæµÄËùÓÐKeyºÍ¶ÔÓ¦µÄvalue£¬°ÑÕâ¸ö×ÖµäÖеÄËùÓÐitemµ¼Èëµ½Ò»¸ömapÖУ¬Ó¦¸ÃÔõô×ö£¿
ÎÒÊÇÓõÄÊÇpython3.0£¬eclipse3.5 ¹Ò½Ómingw±àÒë»·¾³£¬Ã»ÓÐʹÓÃboost¿â¡£
Çë¸ßÊÖÖ¸½Ì£¡
¿´¿´http://docs.python.org/c-api/dict.html
ͬѧһÏÂ
ѧϰѧϰ
×òÌì¼Ó°àûʱ¼äÉÏCSDN
Ê®·Ö¸Ðл¸÷λµÄ»Ø´ð£¡
ÌØ±ðÃùл notax£¡
Ïà¹ØÎÊ´ð£º
±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
#include"stdio.h"
#include"stdlib.h"
void ContrTwo(char i)
{
char str1[8];
itoa(i,str1,2);
printf("%s",str1);
}
unsigned char leftRot(char str,int i);
unsign ......
ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£
²»»á.
ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ
ËÑË÷Ï£ºjni ......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......