It's ok, some one replyed to my other post and said i need to use a carrage return [\r] not just [\n] new line.
textcolor(13);
cprintf("Text here\r\n");
Type: Posts; User: Goof Program
It's ok, some one replyed to my other post and said i need to use a carrage return [\r] not just [\n] new line.
textcolor(13);
cprintf("Text here\r\n");
Thanks for the help, It has made my coding easyer.
I have one last question. If I do [cprintf("text here\r");] is that the same as [printf("text here\n");]?
Thanks
Why does [cprintf()] not work the same way as [printf()]?
Please compile my code and see what I mean.
#include <stdio.h>
#include <conio.h>
int main(void)
No thats not what I wanted to do, What I want is to know is when I use the textcolor(); and taxtbackground(); to change the colors, and then use cprintf(""); to display what ever, how come it does...
When ever I try to make my text or the background another color other then the normal DOS color (gray, black) it all ways puts my text and stuff weird. why does it do that and how can I fix it?
...
I made a program, and I would like to add this other program I made to it also. But I dont want to type in the program and make it a function. Is there a faster way to to link them?
I want this...
Thank you so much for all the help. It seems to work now.
Again thank you.
How could I do that with out having the person type there name like:
printf("Enter the first letter of your name: ");
scanf("%s",&first);
first=toupper(first);
printf("Enter the second letter...
while(done) is now while(!done), but it still wont compile because of the toupper function. I get an error
[Type mismatch in parameter '__ch' in call to 'toupper']
Ok I did the change, but it is still having problems, I eather get compilling errors (or if i edit it i dont get errors but the exe does nothing).
#include <stdio.h> //Basic funtions
#include...
Hello, I started making this program where people would type there name in and it would put the meanning of there name on the screen. I ran in to a problem with comparing what they typed. Heres the...
I deleted some of the code that killed the while loop because that might not be what you wanted. so i left it up to you so you can use what you need. thats just the base of it. It is a function on...
Yeah I did the same thing on a program of mine only i used the keys E=left, D=down, E=up, and F=right. In my program I put it in it's own function so I only had to type PLAYER(); in the main()...
Yeah I did the same thing on a program of mine only i used the keys E=left, D=down, E=up, and F=right. In my program I put it in it's own function so I only had to type PLAYER(); in the main()...
Try the getch(); for just one key press or getchar(); for more then 1 key press.
if you dont want the program to stop and wait for the key press use the kbhit(); and then later use getch(); or...
Im making a maze game for dos using the double line characters as walls. how can i make it so i dont have to type every character in (see Code)?
I hope that I may learn from the help you give me....
1)
I'm learning C from the dummies books and have some other c books. They all program for dos, whats a good book that will teach me how to program for Windows?
2)
I have Borland C++ 3.1 and...
I am making a maze game in DOS and I use the double line character's (ASCII '185' and other's). How can I make it so that my program will make a random maze, where it can be solved and it works out...
The site was not working befor so I just had to wait a while.
thanks for the help
I'd like to know if I can get DJGPP from some other place then[http://www.delorie.com/djgpp/]. Because when I cant even get to the page where i can download the files.
All Help is extremly...
¿What is that?
Why not just type the code and make one [*.exe] file?
I can make a function that would put random walls but there would be no space's to have the player move around in, I have no clue how to make it so it's a maze and not just a bunch of the double line...
Yeah, I understand that but how does the computer know where theres a wall with out me having to say "theres a wall at x,y & x,y & x,y... so on."