You might want to look a bit more closely then
-PreludePiece of cake, but you will have to make use of the gotoxy function that is defined in the Cprogramming FAQ.
This is a discussion on My first "real" program.......is really smal is mostly for practice. within the C++ Programming forums, part of the General Programming Boards category; You might want to look a bit more closely then Piece of cake, but you will have to make use ...
You might want to look a bit more closely then
-PreludePiece of cake, but you will have to make use of the gotoxy function that is defined in the Cprogramming FAQ.
My best code is written with the delete key.
oh, sorry..looks like im 4getting sumthin.. brain maybe? hehe .. btw u wouldnt know the ascii for enter + space would yah?
why is this function hella crappin up my proggy?
when i try to run it, in the middle of the program it gives me an error about system.c
[code]
tinput(char* path, char color1, char color2,char color3)
{
HANDLE h;
h = GetStdHandle ( STD_OUTPUT_HANDLE );
int j = 1;
for (int i = 0;Text[i] != '\0';i++)
{
switch(j)
{
case 1:
SetConsoleTextAttribute (h, color1);
j = 2;
break;
case 2:
SetConsoleTextAttribute (h, color2);
j = 0;
break;
default:
SetConsoleTextAttribute (h, color3);
j = 1;
break;
}
cin>>path[i];
}
return *path;
}