制作简易计算器(6)
时间:2025-03-12
时间:2025-03-12
第三章 算法描述
第四章 开发过程描述
4.1 C语言源代码
#include<stdio.h> #include <windows.h> #include <stdlib.h> void gotoxy(int x, int y) {
HANDLE handle;
//定义句柄变量handle
//定位光标位置
COORD coord; //定义结构体coord (坐标系coord) coord.X = x; //横坐标x coord.Y = y; //纵坐标y
handle = GetStdHandle(STD_OUTPUT_HANDLE); //获取控制台输出句柄(值为-11) SetConsoleCursorPosition(handle, coord); //移动光标 }
void nnn();
int system(const char *string); int main() {
int n,s,a; char p; again:
nnn();//输出界面
gotoxy(2,1);//定位光标位置 scanf("%d",&n);
上一篇:学校安全、计划生育工作责任状
下一篇:西安回民街