Forum: C++ Sep 23rd, 2006 |
| Replies: 3 Views: 3,558 I tried typing
printf("\033[34m");
for blue foreground color, and other values, but nothing worked. So I included:
device=D:\WINDOWS\system32\ansi.sys
and |
Forum: C++ Sep 19th, 2006 |
| Replies: 5 Views: 1,150 Well I coded for the backspace. Here is the code if anybody is interested...
if (str[num] == '\b')
{
str[num] = '\0';
printf(" \b");
str[num-1] = '\0';
... |
Forum: C++ Sep 18th, 2006 |
| Replies: 5 Views: 1,150 Whoops, sorry Ancient Dragon, I clicked on Advanced Reply before I realized that you had responded. I plan on coding for backspaces and everything else that is nice later, possibly tonight.
... |
Forum: C++ Sep 18th, 2006 |
| Replies: 5 Views: 1,150 I figured it out, but thanks for looking. I need the line:
str[num-1] = '\0';
Thanks :)
Diode |
Forum: C++ Sep 18th, 2006 |
| Replies: 5 Views: 1,150 Hello, :)
I have chosen to go with getch() for my keyboard input.
However, when I went to experiment with it, I got some unexpected results. The 'Y' in 'Your word was ' is missing in the... |
Forum: C++ Sep 18th, 2006 |
| Replies: 5 Views: 2,815 Would you suggest that I use getch() found in conio.h and convert it to C++ instead? I could do that, I just wanted to go old-school for fun, but whatever works.
Thanks,
Diode |
Forum: C++ Sep 18th, 2006 |
| Replies: 5 Views: 2,815 Ok,
I'm using the Dev-C++ 4 compiler along with gcc.
I would have preferred it to be standard C, but since you informed me that it cannot be done with standard C, then I might have to suffer a... |
Forum: C++ Sep 18th, 2006 |
| Replies: 5 Views: 2,815 Hello,
I am trying to develop something that, when you press a character on the keyboard, puts a char into a char-type variable. Should be easy right? Well, I don't want to require the user to... |