Search Results

Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: Diode ; Forum: C++ and child forums
Forum: C++ Sep 23rd, 2006
Replies: 3
Views: 3,558
Posted By Diode
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
Posted By Diode
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
Posted By Diode
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
Posted By Diode
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
Posted By Diode
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
Posted By Diode
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
Posted By Diode
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
Posted By Diode
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...
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC