-
Api
Hi, i used this code, but all it does is change the cursor to arrow with hourglass:
#include <windows.h>
#include <iostream.h>
#include <string.h>
#include <dos.h>
int main()
{
string command;
date today;
getdate(&today);
cout<<"Terminal Activated ";
cout<<today.da_mon<<" "<<today.da_day<<" "<<today.da_year<<"\n";
while(command!="end")
{
cin>>command;
if(command=="cursor")
ShowCursor(FALSE);
if(command=="show")
ShowCursor(TRUE);
}
}
ive tried passing the parameter in numbers, tried it in lowercase, someone please help.
-
In one sentence that we can all understand: what do you want to do? Change the cursor?
-
I just think he wants to hide/show the cursor.
The code you are already using should do the job...
-
No, since at the moment the app is closing the cursor is reset (I think).
Oh, and you should use <string>, <iostream> and
using namespace std;
to comply with the current C++ standard.
-
i just got a new compiler that supports non .h include names yesterday night.
the app wont close till u type end, compile it, and test it