- -
Точки
(
http://forum.oszone.net/showthread.php?t=232327)
Точки
Вложений: 1
Здравствуйте! Как можно сделать так, как в этой программе, когда выбираешь первый пункт меню, а затем нажимаешь function one, чтобы так двигались точки? Файл прикреплен. Заранее спасибо!
|
вот так например
Код:
#include <iostream>
#include <Windows.h>
#include <stdlib.h>
#define pot "."
using namespace std;
int main()
{
int n=5;
int i=0;
HANDLE handle;
handle = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO structCursorInfo;
GetConsoleCursorInfo(handle,&structCursorInfo);
structCursorInfo.bVisible = FALSE;
SetConsoleCursorInfo( handle, &structCursorInfo );
while(true)
{
cout<<"go";
Sleep(1000);
while(i<=n)
{
cout << pot;
Sleep(1000);
i++;
}
i=0;
system("cls");
}
return 0;
}
|
ferget, спасибо Вам! Выручили)
|
Время: 06:32.
© OSzone.net 2001-