Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- #include "stdlib.h"
- #include "conio.h"
- #include "cmath"
- #include "windows.h"
- void gotoxy(int x, int y)
- {
- COORD crd = {x,y};
- SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), crd);
- }
- int main()
- {
- char* s = "I like C++ very much!";
- for(double i=0, mi = 30;i<(double)strlen(s);i++)
- {
- gotoxy(i*3, -sin(i)*2 + mi);
- putc(s[int(i)], stdout);
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment