#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 ");/* Æô¶¯ ......
ÒÔÏÂÊÇÎÒдµÄ³ÌÐò£º
# include <stdio.h>
# define students 5
int main(int argc, char** argv)
{
int student[students];
int i;
for (i=1;i<=students;i++)
{
printf("Number %d\n", i);
scanf(&q ......
±¾ÈËѧcÓïÑÔ²»¾Ã£¬¸ú×ÅÒ»±¾¡¶ANSI CÓ¦ÓóÌÐòÉè¼Æ¡·Ñ§Ï°±à³Ì£¬ÊéÖÐÓÐÒ»³ÌÐòÒªÇó£º
¶ÁÈëһϵÁи¡µãÊý£¬²¢´òÓ¡Ò»·Ýͳ¼Æ±¨¸æ£¬Áгö×î´ó£¬×îС£¬Æ½¾ùÖµ£¬×ܺͣ¬×ÜÌå·½²îºÍ¾ù·½²î£¬ÒÔÏÂΪ³ÌÐò´úÂ룺
[code=C/C++][/code]
#include<stdio.h>
#include<math.h>
void main()
{
float x,max,min,sum,ave,sum_of_s ......
ÓÃCдÁËÒ»¸öÀàËƼÇʱ¾µÄ³ÌÐò£¬¼´Ïñ¼Çʱ¾Ò»Ñù£¬ÔÚÑ¡ÔñÎļþ—´ò¿ªºó£¬ÄܶÁÈ¡ËùÑ¡ÎļþµÄÀàÈÝ£¬µ«ÊÇÎÒдµÄÿ´ÎÖ»ÄܶÁÈ¡ÎļþÄÚÈݵĵÚÒ»ÐУ¬ÎÞ·¨¶ÁÍêÈ«²¿ÄÚÈÝ£¬ËäÈ»ÎÒÖªµÀÓÃÑ»·Óï¾ä¿ÉÒÔ½â¾öÕâ¸öÎÊÌ⣬µ«ÊÇ£¬È´²»ÖªµÀÈçºÎʹÓÃÕâ¸öÑ»·£¬Ö÷ÒªÔÚÓÚÈç¿É¿ØÖÆÕâ¸öÑ»·£¬ÔõÑùÅжÏʲôʱºò¶ÁÍêÎļþÄÚÈÝ£¬Ìø³öÑ»·....ÏÂÃæµÄÊǶÁÈ¡ ......
¸Õ¸Õ½Ó´¥cgi£¬ÎÒÓÃcдµÄ
ÎÒ×öǶÈëʽÉϵĵĿª·¢£¬ÒòΪ°å×ÓÉϵĶþ¼«¹ÜÓÃÒ»¸öÊý¾Ý¼Ä´æÆ÷£¬ÐèÒªÒ»¸öÈ«¾Ö±äÁ¿À´¿ØÖƼ¸¸ö¶þ¼«¹Ü£¬ÓÐʲô·½·¨ÊµÏÖÈ«¾Ö±äÁ¿¡£
Ïëµ½ÁËÓÃÎļþ·ÅÊý¾Ý£¬ÇëÎÊÒ»ÏÂcдcgiÔõô¶ÁдÎļþ£¬»¹ÊDz»ÄÜ£¬ÎÒÓÃfopen£¬´íÎóÁË¡£
Óà open read write Ó¦¸Ã¿ÉÒÔ£¬¾ø´ó¶àÊýƽ̨¶¼ÒÆÖ²ÁËÕâЩ»ù±¾IOµÄ
......
˵˵ÎÒµÄÇé¿ö£º
´Ó±ÏÒµ½øÈ빫˾¿ªÊ¼£¬×öÁ˼¸¸öǶÈëʽ·½ÃæµÄÏîÄ¿£¬¶¼ÊÇÖ±½ÓÓÃC»æÖƽçÃæ¡£
ËäÈ»ÊÐÃæÉÏÒ²ÓÐMicrowindows¡¢MiniGUI¡¢QtµÈǶÈëʽ½çÃ棬µ«Êµ¼Ê¹¤×÷Öв¢Î´²ÉÓùý¡£
´ó¼ÒÔÚ×öǶÈëʽ½çÃæÊÇʲôÑù×ÓÄØ£¿
ûÓÐǶÈ룬²»ÖªµÀ¡£
Ò»Ñù£¬ÎÒÒ²ÊÇ×Ô¼ºÓÃcдguiµÄ£¬Èç¹ûÒªÒÆÖ²Ö÷Á÷µÄͼÐο⣬ÐèÒªºÄ·Ñ²»Éٿռ䣬ÏÖÔÚflash· ......