想要C或汇编程序的源代码 什么都行
来源:百度知道 编辑:UC知道 时间:2024/06/22 00:15:48
不然就是WINDOWS API的程序
我想要的是DOS的程序源代码
一楼的好基础的代码
不过我想要的是比较有实用性的代码
例如:文本编辑器 五子棋 等...的源代码
// Borland C++ - (C) Copyright 1991 by Borland International
// BARCHART Example Program
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <graphics.h>
#include <math.h>
#include <conio.h>
#define MAX 50
#define ARRAYMAX 10
void makegraph(float p[]);
void main(void)
{
int i;
int scores[ARRAYMAX];
float percents[ARRAYMAX];
for (i = 0; i < ARRAYMAX; i++)
{
printf("\nEnter score between 0 and %d: ", MAX);
scanf("%d", &scores[i]);
}
for (i = 0; i < ARRAYMAX; i++)
percents[i] = ((float) scores[i]) / MAX;
printf("\n\n\n\tSCORE\tPERCENT");
for (i = 0; i < A