¹ØÓÚCµÄÒ»¸ö³õ¼¶Í¼ÐÎÎÊÌâ - C/C++ / CÓïÑÔ
×î½üÎÒÔÚÍøÉÏ¿´µ½Ò»¸öÓÃCÓïÑÔ±à³ÌÊä³öÒ»¸ö¾ØÐεijÌÐò£¬µ«ÊÇÕÕ×ųÌÐò¸´ÖÆÒ»±é£¬ÔËÐÐʱ³öÏÖÈçÏ´íÎó£º
error£ºundefine symbol 'DELECT'
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
int gdriver = DETECT, gmode, errorcode;
int left, top, right, bottom;
initgraph(&gdriver, &gmode, "");
errorcode = graphresult();
if (errorcode != grOk) {
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); }
left = getmaxx() / 2 - 50;
top = getmaxy() / 2 - 50;
right = getmaxx() / 2 + 50;
bottom = getmaxy() / 2 + 50;
rectangle(left,top,right,bottom);
getch();
closegraph();
return 0;
}
ÄÄλ´óϺ¿´¿´³öÁËʲôÎÊÌâ
ÔÚÕÒ£¬Ã»·¢ÏÖ£¬£¬£¬¿ÉÄÜÌ«²ËÄñÁË¡£
½²µÃºÜÇå³þµÄ°É£¬ÒýÓñäÁ¿Ã»Óж¨Ò壬DELECT±äÁ¿Ã»Óж¨ÒåµÄ°¡¡£¡£¡£
¸Ð¾õÔÒò¿ÉÄÜÊÇconio.hÎļþ²»ÊDZê×¼µÄ¿âÎļþ£¬ÄãûÓе÷Óõ½°É¡£
¸ÄDELECTΪDETECT,
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆÌ¨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆÌ¨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆÌ¨£ ......