c没有任何图形功能 [英] c without usin any graphics function
问题描述
如果你在运行时为程序提供程序,并且希望行显示
...如何在c中执行此操作而不使用任何图形功能?
like x1,y1和x2,y2
和行应该从第一个坐标到第二个坐标
任何指针都会被赞赏
谢谢
if u give cordinates to programme at run time and want a line to be
drawn.. how to do this in c without usin any graphics function?
like x1,y1 and x2,y2
and lines should be drawn from the 1st co-ordinate to 2nd one
any pointer would be appreciated
Thanks
推荐答案
shaanxxx说:
shaanxxx said:
如果你在运行时为程序提供程序,并且希望一行是
...如何在c中执行此操作而不使用任何图形功能?
like x1,y1和x2,y2
和行应从第一个坐标到第二个坐标
if u give cordinates to programme at run time and want a line to be
drawn.. how to do this in c without usin any graphics function?
like x1,y1 and x2,y2
and lines should be drawn from the 1st co-ordinate to 2nd one
使用putchar。
Use putchar.
任何指针都会被赞赏
any pointer would be appreciated
putchar是一个指针(除非它是宏的情况) 。
-
Richard Heathfield< http://www.cpax.org.uk& gt;
电子邮件:-www。 + rjh @
谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>
Usenet是一个奇怪的放置" - dmr 1999年7月29日
putchar is a pointer (except in cases where it''s a macro).
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
shaanxxx写道:
shaanxxx wrote:
如果你在运行时向程序提供程序并且想要一行是
绘制..如何在没有任何图形功能的情况下在c中执行此操作?
if u give cordinates to programme at run time and want a line to be
drawn.. how to do this in c without usin any graphics function?
绘制一条线是一种图形功能。您可以为您的
目标系统获得一个或编写自己的系统,但在任何一种情况下,您都将使用
图形功能。
-
Thad
Drawing a line is a graphics function. You can either get one for your
target system or write your own, but in either case you would be using a
graphics function.
--
Thad
9月6日上午8:50,shaanxxx< shaan ... @ yahoo.comwrote :
On Sep 6, 8:50 am, shaanxxx <shaan...@yahoo.comwrote:
如果你在运行时为程序提供程序并希望一行是
绘制..如何在c中执行此操作使用任何图形功能?
喜欢x1,y1和x2,y2
和行应该从第一个坐标到第二个坐标
>
任何指针都会被赞赏
谢谢
if u give cordinates to programme at run time and want a line to be
drawn.. how to do this in c without usin any graphics function?
like x1,y1 and x2,y2
and lines should be drawn from the 1st co-ordinate to 2nd one
any pointer would be appreciated
Thanks
#define GIVEN_COORDINATE1_X 1
#define GIVEN_COORDINATE1_Y 1
#define GIVEN_COORDINATE2_X 2
#define GIVEN_COORDINATE2_Y 2
int main(int argc,char * argv [])
{
printf("铅笔和画线从(%d,%d)到(%d,%d)。\ n" ,
GIVEN_COORDINATE1_X,GIVEN_COORDINATE1_Y,
GIVEN_COORDINATE2_X,GIVEN_COORDINATE2_Y);
}
对于指针你可以看看在这里:
http://en.wikipedia.org/wiki/指针_(dog_breed )
或者你可以尝试做自己的作业。
#define GIVEN_COORDINATE1_X 1
#define GIVEN_COORDINATE1_Y 1
#define GIVEN_COORDINATE2_X 2
#define GIVEN_COORDINATE2_Y 2
int main(int argc, char *argv[])
{
printf("Take pencil and draw line from (%d,%d) to (%d,%d).\n",
GIVEN_COORDINATE1_X, GIVEN_COORDINATE1_Y,
GIVEN_COORDINATE2_X, GIVEN_COORDINATE2_Y);
}
And for pointers you can take a look here:
http://en.wikipedia.org/wiki/Pointer_(dog_breed)
Or you could try to do your own homework.
这篇关于c没有任何图形功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!