wow... last time it took 2 hours to get a reply :P tnx for the replies.
Anyway, I finally found a way 2 do this (I did not think I was going to get a reply so fast)
Code:
int main ()
{
int Counter = 0, x = 0;
char c, d[8];
do
{
c=getch();
putchar (c);
Counter++;
d[x] = c;
x++;
if (Counter == 3)
{
putchar ('-');
d[x] = '-';
x++;
}
// if (c == '\b')
// gotoxy(2,1);
} while (Counter != 7);
d[x] = '\0';
cout << "\n" << d;
return 0;
}}}
7stud you example does make string look easier. But does it have the power? I mean, if you look at the code above, can it do that? I still also have to make sure the user can backspace (will need to use gotoxy (hence keep track of where I am at all times, and also derease my conuter))... And still got like one other big things 2 do.... I would not even know where to start if I were to use string.h
---
I also will need to learn how to capitalize letters (ie if someone input there name, I want to capitalize the first letter (this can be done after it stored in a variable though)), but I could probably find that on google (or these boards) when I need 2 do it.
--