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

CÄÚǶpythonµÄÎÊÌâ

ÏëÓÃpython½âÎöÒ»¸ö´øÖÐÎĵÄxmlÎļþ£¬È»ºó°Ñ½âÎöµÃµ½µÄÊý¾ÝÒÔlistµÄÐÎʽ·µ»Ø¸øC´úÂë¡£

rel = PyObject_CallObject(func, NULL);//µ÷ÓÃpython½âÎöxml
PyList_GetItem(rel,i)£»//µÃµ½listÖеÄÿһÏî
PyString_AsString£¨£©£»//ת»¯³ÉC×Ö·û´®

µ«ÊÇÿ´Îµ÷ÓÃPyList_GetItemµÃµ½°üº¬ÖÐÎĵÄ×Ö·û´®Ê±£¬¾Í»á³öÏÖSegmentation fault£¬½âÎöÆäËûµÄ¶¼ÊÇÕý³£µÄ¡£

ÇëÎÊÔÚCÄÚǶpythonʱ£¬ÔõÑùµÃµ½´ÓpythonÖеõ½°üº¬ÖÐÎÄ¡¢ÈÕÎÄÕâÑùµÄ×Ö·û´®ÄØ£¿

ÎÒûÊÔ¹ý£¬ÎÒ²ÂÊÇUnicode×Ö·û´®

¿ÉÄÜÒª´ÓUnicodeת»¯Îªwide_char


Ïà¹ØÎÊ´ð£º

²ËÄñÇó½â:cͼÐÎÎÊÌâ

#include <stdio.h>
#include <graphics.h>
void main()
{
  int x0,y0,x1,y1,driver,mode,i;
  driver=VGA;
  mode=VGAHI;
  initgraph(&driver,&mode,&qu ......

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

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

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

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

C ³ÌÐòÎÊÌâ (¶þ) - C/C++ / CÓïÑÔ

ÎÊһϣº
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

CÈçºÎµ÷ÓÃPHPº¯Êý

ÈçÌ⣬ÇëÖªµÀµÄ¸ßÊÖÖ¸µãһϣ¬THANKS
PHPº¯Êý¶¼ÊÇÓÃCʵÏÖµÄ~
·´ÆäµÀ¶øÐÐÖ®~

HOHO£¬¹Ø¼üÊÇ£¬×ÔÒÑÔÙȥʵÏÖÕâ¸ö¹¦ÄÜÀÛ°¡£¬PHPÓÐÏֳɵľÍÖ±½Óµ÷ÓúÃÁË£¬

¶¥Æð£¬ÓиßÊÖµã½âһϣ¬»òÕßÊÇÎÒÖ±½Ó½«PHP Ô´ÂëÖÐµÄ .c ......

´ÓÎļþ¶ÁC´®µÄÎÊÌâ

¶¨ÒåÁË

ifstream fin("in.txt");

±ÈÈçÎļþÊ×ÐÐÊÇÒ»¸öÊý×Ö£¬µÚ¶þÐÐÊÇÒ»´®×Ö·û¡£

int M;
char* str;

fin>>M;
fin>>str;

M¿ÉÒÔ¶Á³öÀ´£¬str×ÜÊÇÎÞ·¨¶ÁÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ