tag:blogger.com,1999:blog-6995795185513919756.post7828256100812617593..comments2023-04-17T03:10:17.637-07:00Comments on Ashok's Programming World: gotoxy in Code::BlocksAshok Basnethttp://www.blogger.com/profile/09198110293089374867noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6995795185513919756.post-20705367834189357932013-10-14T19:35:33.690-07:002013-10-14T19:35:33.690-07:00thanks, you made my day :)thanks, you made my day :)Abhijeet Loves Reading Comics...https://www.blogger.com/profile/16938647124774345875noreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-85700220506536124062012-08-31T11:57:11.952-07:002012-08-31T11:57:11.952-07:00Instead of #define coord = {0,0}; put the followin...Instead of #define coord = {0,0}; put the following global variable<br />COORD coord = {0, 0}; <br /><br />Since the COORD is a structure which contains the structure for holding x and y coordinates.<br />This may solve the problem.Ashok Basnethttps://www.blogger.com/profile/09198110293089374867noreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-37650250331676635592012-08-31T07:12:32.015-07:002012-08-31T07:12:32.015-07:00hi just tried this one and it had an error. help p...hi just tried this one and it had an error. help please? <br /><br /><br />here's my code.<br /><br /><br />#include <br />#include <br />#define coord = {0, 0};<br /><br /><br />void gotoxy(int x, int y){<br /> coord.X= x;<br /> coord.Y= y;<br /> SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);<br />}<br /><br />int main()<br />{<br /> gotoxy(12,10);<br /> printf("Hello world!\n");<br /> return 0;<br />}<br /><br />error:expected expression before '=' token<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-49976298141013671142012-07-05T07:56:17.129-07:002012-07-05T07:56:17.129-07:00Thank you. Timely help.Thank you. Timely help.Kaatumirandihttps://www.blogger.com/profile/10129193108687957378noreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-10118656497039082772012-05-06T07:08:52.063-07:002012-05-06T07:08:52.063-07:00hello,
this was very very helpful... thnks a lothello,<br /><br />this was very very helpful... thnks a lotAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-37443267568393396312011-03-13T18:40:30.284-07:002011-03-13T18:40:30.284-07:00Hi this was very helpful! Thanks a lot !Hi this was very helpful! Thanks a lot !Andreasnoreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-80733890238597455152011-02-11T12:46:30.576-08:002011-02-11T12:46:30.576-08:00@leila
the function definition for the gotoxy must...@<a href="#c617303463710439921" rel="nofollow">leila</a><br />the function definition for the gotoxy must be placed before main function otherwise it must be declared and defined at any place you want. hope u can get away with that error.Ashok Basnethttps://www.blogger.com/profile/00210439758656138067noreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-17446617874532794002011-02-04T20:42:15.582-08:002011-02-04T20:42:15.582-08:00You're a genious, thank you.
Muchas gracias ...You're a genious, thank you.<br /><br /><br />Muchas gracias bato loco, me ha servido un montón.<br /><br />PazReuterhttps://www.blogger.com/profile/03593967115057189175noreply@blogger.comtag:blogger.com,1999:blog-6995795185513919756.post-6173034637104399212011-01-29T07:21:32.355-08:002011-01-29T07:21:32.355-08:00thanks for help.i do this but it wasn't useful...thanks for help.i do this but it wasn't useful..<br />#include<br />#include<br />using namespace std;<br />int main()<br />{<br />gotoxy(12,5);<br />cout<<"hello";<br />}<br />error!:<br />|6|error: 'gotoxy' was not declared in this scope|<br />||=== Build finished: 1 errors, 0 warnings ===|leilanoreply@blogger.com