LinuxÖÐÁ½¸ö½ø³ÌͨÐÅ - C/C++ / C++ ÓïÑÔ
Ò»¡¢ ÄÚÈÝ£º
±àдÁ½¸ö³ÌÐòmysem.c(±àÒëºóΪmysem)ºÍmyinput.c£¨±àÒëºóΪmyinput£©,ʵÏÖÁ½¸ö³ÌÐò£¨½ø³Ì£©Ö®¼äµÄͨÐÅ¡£ÒªÇóÈçÏ£º
1¡¢ mysem´´½¨Ò»¸ö¹²ÏíÄÚ´æmyshm(¹²ÏíÄÚ´æID£¬ÄÚ´æ´óСΪ512×Ö½Ú)£¬¹©mysemºÍmyinput¹²Ïí
2¡¢ mysem´´½¨Ò»¸ö×Ó½ø³Ì£¬¸Ã×Ó½ø³Ì¼ÓÔØmyinput
3¡¢ myinput´Ó¼üÅÌÒÔ×·¼Ó·½Ê½ÏòmyshmÖÐÊäÈëÐÅÏ¢£¨×Ö·ûÐÍ£©£¬mysem½ÓÊÕÐÅÏ¢²¢ÏÔʾÔÚÆÁÄ»ÉÏ
4¡¢ µ±myinput´Ó¼üÅÌÊäÈë¡°end¡±²¢´æÈëmyshmºó£¬myinput½áÊø£¨Í˳ö£©£¬mysemÊÕµ½¡°end¡±ÏÔʾºó£¬Ò²Í˳ö£¬²¢ÊÍ·ÅËùÓеÄ×ÊÔ´¡£
ÇëÎÊÔÚLINUX ÈçºÎÓôúÂëʵÏÖ£¬Çó¸ßÊÖ°ï棡£¡
google£¬ÍøÉÏÒ»¶ÑµÄ´úÂë
ÌâÄ¿É϶¼ËµÃ÷¡¡Óù²ÏíÄÚ´æÁË£¬Ä㻹ÎÊ
°Ù¶ÈËÑË÷ unix¹²ÏíÄÚ´æ
°Ù¶È°É£¬¿ÉÒÔËѳöºÜ¶à´úÂëµÄ£¬ÌáÎʵÄʱºòÏÈËÑһϣ¬ÄÜ°ïÄã½ÚÊ¡·ÖÊý¡£
Ïà¹ØÎÊ´ð£º
SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......