Please help me with this:

#include<stdio.h>
#include<dos.h>
main()
{
int x;
for(x=1;x<=50;x++)
{
gotoxy(x,2);
delay(1000);
printf("TEXT");
}
return 0;
}

I am planning to run the word "TEXT" in this program to the right side, but it didnt work.

WHAT'S WRONG WITH MY CODES?

Recommended Answers

All 2 Replies

Just curious. What C compile allows main to have no return type?

I dont have an idea about this one!
So, what could be the code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.