I know that there is way to make a line fix on top of the window. But is it possible to make the text fix on either left or right hand side of the windows? Something like area for inputting on one side and instructions on the other side...
I know that there is way to make a line fix on top of the window. But is it possible to make the text fix on either left or right hand side of the windows? Something like area for inputting on one side and instructions on the other side...
Yes. You can do it yourself in console mode, or you can use Window's API, or a library like ncurses.
First thing is, what is your operating system and do you have a header file called "conio.h"?
What compiler are you using?
It's not complicated, but it takes some time to work out the details. Moreso when you're a beginner, but you learn something, too. That can be a good trade off.
I wouldn't do this for a program that I was never going to see again or cared about, but for a solid learning experience on a program that I wanted to develop - yeah, it's worth it!
We don't need no stinking web sites!
Honestly, I never looked for one when I did this. Google is your friend, though.
Try to compile and run this program. Let's see if you have the conio.h header file
We don't have to have conio.h to do this, but it might help.Code:#include <stdio.h> #include <conio.h> int main() { int i; gotoxy(10, 10); for(i = 0; i < 10; i++) printf("%d", i); getch(); return 0; }
Let me know.