dearest
i want to make a program in which i want to move a "%" to each side of a screen so how could be made please help earlier

I'm assuming you mean a console program?
You'll have to know the width of the screen, typically is is 80x25, but it can always be different.

You can't do a gotoxy function in pure C, you'll have to read into the O/S dependent libraries for your system (I don't know what that is). If all you want to do is put a character on both sides of the screen, it would be easier to just put one, then put 78 spaces, then put another one.

>You can't do a gotoxy function in pure C, you'll have to read into the O/S dependent libraries for your system (I don't know what that is)
gotoxy() doesn't have much to do with os dependancy. It's a function that is not part of C, so many compiler's do not include it.

If i'm not mistaken, PDcurses and Ncurses libraries have more portable substitutes. You may also be able to get the screen width with them. There is no way you can do this with standard C, unless you assume the terminal width is 80 (which may not be the case).

please help me in making simplest address book program in c language.

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.