Console application that scrolls a text message following a sine curve

The program must be in the following order:
It must allow the user to change the amplitude of the wave, Period of the wave, Direction of the text, Frame speed

I got the function code. But don't know to execute it full program.

My function code:
void GotoXY(int _iX, int _iY)
{
COORD point;
point.X= _iX;
point.Y= _iY;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE);

GetConsoleScreenBufferInfo(hConsole, &csbi);
dwConSize= csbi.dwSize.X * csbi.dwSize.Y;

FillConsoleOutputCharacter(hConsole, TEXT(' '),dwConSize,coordScreen, &cCharsWritten);
GetConsoleScreenBufferInfo(hConsole, &csbi);
FillConsoleOutputAttrribute(hConsole, csbi.wAttributes, dwConSize,coordScreen, &cCharsWritten);
SetConsoleCursorPosition(hConsole, coordScreen);
}
closed account (48T7M4Gy)
http://www.cplusplus.com/forum/beginner/174264/
Thank you so much
Yeah i can get through that solution. but in my program the user should give the data so that the output should be in form of sine wave
Topic archived. No new replies allowed.