#include <graphics.h>
#include <conio.h>
#include <stdio.h>
void main()
{
// 初始化图形窗口
initgraph(640, 480);
// 定义字符串缓冲区,并接收用户输入
char s[10];
InputBox(s, 10, "请输入半径");
// 将用户输入转换为数字
int r;
sscanf(s, "%d", &r);
// 画圆
circle(320, 240, r);
// 按任意键退出
getch();
closegraph();
}
各位大神!!这段代码在VS2013中如何实现?
#include <conio.h>
#include <stdio.h>
void main()
{
// 初始化图形窗口
initgraph(640, 480);
// 定义字符串缓冲区,并接收用户输入
char s[10];
InputBox(s, 10, "请输入半径");
// 将用户输入转换为数字
int r;
sscanf(s, "%d", &r);
// 画圆
circle(320, 240, r);
// 按任意键退出
getch();
closegraph();
}
各位大神!!这段代码在VS2013中如何实现?


