¸üºÃµÄC£¬×Ô¼ºµÄC£¬ÐµÄC - C/C++ / CÓïÑÔ
¸üºÃµÄC£¬×Ô¼ºµÄC£¬ÐµÄC
´ó¼Ò˵˵×Ô¼º¶ÔCµÄ¸Ä½ø»ò¸ÄÁ¼°æ±¾ÊÇʲôÑù×ӵġ£¿´¿´ÎÒÃǵÄÖǻۡ£
and È¡´ú &&
or È¡´ú ||
not È¡´ú !
bit and È¡´ú&
bit or È¡´ú|
bit not È¡´ú~
¿ÉÒÔ½«cµÄÃæÏò¹ý³ÌµÄ·½Ê½¸Ä³ÉÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ·½Ê½£¬µ«ÊÇÒ»¶¨Òª±£ÁôÖ¸Õ롢λÔËËãµÈµ×²ã²Ù×÷¡£
ͬѧ£¬ÄãѧVBµÄ£¿
ͬѧ£¬Çë£Ã£«£«¡£
²»ÒªÕÛÌڣá£
È«¸Ä³ÉÖÐÎĵİÉ
×Ô¼ºµÄC Õâ¸öÎұȽÏÔÞͬ¡£
±ðÈ˵ÄC»òC±àÒëÆ÷ÊÇÁôÓкóÃŵģ¬Ä㰲ȫÐÔ×öµÃÔٺã¬Ò²ÊÇÓÐÏÈÌì²»×ãµÄ£¡ÔÚ¹ú·À°²È«ÊÇÓÈÉõ£¡£¡£¡
ÏʵÄÿÈÕC~~~~~~~~~~~~
jf....
¾ÍÊǸÃÏÂÓï·¨±í´ïÓÐʲôÒâ˼?Ö±½ÓÓÃ#define²»¾Í¿ÉÒÔÁË£¿£¿
ά³ÖÔ×´
Ï£Íû²»ÒªÓÐÌ«¶àµÄÓï·¨¸Ä±ä
ÿÖÖÓïÑÔ벡¶¼ÊÇÒ»´ó¶Ñ£¬µ«ÊÇËûÃǶ¼ÊÇÔÚÇ°½øµÄ¡£ÐèҪÿ¸öÈ˵IJÎÓ룬֧³Ö¡£
²»½øÔòÍË¡£¡£
Ö§³ÖÖÐÎıäÁ¿Ãû¾Í¿ÉÒÔÁË£¬ÆäÓà×îºÃʲô¶¼±ð¸Ä¡£
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......
[align=center][/align]CÓïÑÔÖÐÈçºÎÅжÏÒ»¸ödoubleÐ͵ÄÊý×飨Èçdouble S[20]£»£©ÊÇÒ»¸ö¿ÕÊý×飬¼´Êý×éÖÐûÓзÅÈκÎÖµ¡£
û°ì·¨¡£
"ÈκÎÖµ" µÄ¶¨Òå?
¾ÍÊÇÊý×éÊǿյģ¬Ã»ÓÐΪËü¸³Öµ
¿ÉÒÔ¿¼Â ......