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

c ÎÊÌâ - C/C++ / CÓïÑÔ

#include <graphics.h> /*°üº¬Í¼Ðο⺯ÊýµÄÍ·Îļþ*/
#include <math.h>
#define pi 4.1415926
main(argc,argv)
int argc;char *argv[]; /* ¶¨Òå´ø²ÎÊýµÄm a i n ( ) */
{
int x,y,r1,rs,color;
double a;
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"..\\bgi ");/* Æô¶¯Í¼Ðι¤×÷·½Ê½*/
r1 = atoi(argv[1]); /*¼ÆËã»ù´¡Ô²°ë¾¶*/
rs = atoi(argv[2]); /*¼ÆËãͬÐÄÔ²°ë¾¶*/
color = atoi(argv[3]); /*±³¾°É«*/
cleardevice(); /*Çå³ýͼÐÎÆÁÄ»*/
setbkcolor(color); /*ÉèÖñ³¾°É«*/
setcolor(4); /*ÉèÖÃͼÐÎÏÔʾÑÕÉ«*/
for(a=0; a<=2*pi;a+=pi/18) /*»æÖÆͬÐÄÔ²*/
{
x = r1*cos(a)+320;
y = r1*sin(a)+240;
circle(x,y,rs); /*ÒÔÔ²ÐÄ×ø±êΪx¡¢y£¬°ë¾¶Îªr s»­Ô²*/
}
getch(); /*µÈ´ý°´¼ü¼ÌÐø*/
closegraph(); /*¹Ø±ÕͼÐι¤×÷·½Ê½*/[size=16px][/size]

µ÷ÊÔ¹ý²»ÁË°¡°¡ £¬ÊDz»ÊDZàÒëÆ÷²»Ö§³Ö°¡£¡
Â¥Ö÷£¬³ÌÐòûÎÊÌâÁË°¡¡£
ÎÒÔÚtcÏÂÊÔ¹ýÁË.
±àÒëÁ´½ÓÍêºó£¬
ÔÚtcÏ°´f10->file->os shell.
½øÈëÃüÁîÐÐģʽ,cd ../output
 ½øÈëoutputĿ¼, È»ºóÊäÈët24(¿ÉÖ´ÐÐÎļþµÄÃû×Ö) 100(Ô²°ë¾¶) 3(±³¾°É«)

Õâ¸ö³ÌÐòÖ»ÄÜÓà TC ºÍ BC ±àÒ룬³ýÕâÁ½ÕßÒÔÍâµÄ±àÒëÆ÷¶¼²»ÐС£


#define pi 4.1415926
Åå·þ°¡£¡

ѧϰ¡£¡£¡£¡£¡£

À×µ½ÁË


ÒýÓÃ
#include <graphics.h> /*°üº¬Í¼Ðο⺯ÊýµÄÍ·Îļþ*/
#include <math.h>
#define pi 4.1415926
main(argc,argv)
int argc;char *argv[]; /* ¶¨


Ïà¹ØÎÊ´ð£º

Çó½Ìc/c++ÓïÑÔÏà¹ØÎÊÌâ - C/C++ / CÓïÑÔ

ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......

c¾²Ì¬±àÒëÁíÒ»¸öÎļþ¼ÐµÄ¿âº¯Êý - C/C++ / CÓïÑÔ

ÔÚ¸ùĿ¼/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Öж¨ÒåµÄ·½·¨ ......

ÇóÖú£ºC´úÂëchange toVB´úÂë - VB / »ù´¡Àà

ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó­¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......

c# listviewÌí¼ÓºÏ¼ÆÐÐ - .NET¼¼Êõ / C#

ÓÃlistviewÏÔʾ³ö´ÓÊý¾Ý¿âÖвéѯ³öµÄ¼Ç¼£¬ÏëÔÚ×îºó¼Ç¼ºóÃæÌí¼ÓÒ»ÌõºÏ¼ÆÐУ¬ÈçºÎʵÏÖ£¡Ð»Ð»´ó¼Ò£¡
°ó¶¨Êý¾ÝÄãÓ¦¸ÃûÎÊÌâ°É£¬°ó¶¨ÍêÒÔºóÓÃÒ»¸öÑ­»·°ÑÄãҪͳ¼ÆÊý¾ÝµÄÁÐÖеÄÊý¾Ý×ܺÍÓÃÒ»¸ö±äÁ¿½ÓÊÜ£¬È»ºóÔÚÑ­»·ÍâÃæne ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ