Invoke ENTER KEY
-
Hi all, I am trying to run one console based application, Where i reading a argument from command line. If i press ENTER ,i am writing the sane to the command line. How can i print the same without pressing ENTER. Can i execute the second printf without pressing ENTER This is the code i am using
int main(int argc, char* argv[])
{
int aNumber;
char aChar;
printf("\nEnter a number:");
scanf("%d", &aNumber);
printf("\nThe number entered is %d\n", aNumber);
return 0;
}Thanks Sharan
-
Hi all, I am trying to run one console based application, Where i reading a argument from command line. If i press ENTER ,i am writing the sane to the command line. How can i print the same without pressing ENTER. Can i execute the second printf without pressing ENTER This is the code i am using
int main(int argc, char* argv[])
{
int aNumber;
char aChar;
printf("\nEnter a number:");
scanf("%d", &aNumber);
printf("\nThe number entered is %d\n", aNumber);
return 0;
}Thanks Sharan
-
Hi all, I am trying to run one console based application, Where i reading a argument from command line. If i press ENTER ,i am writing the sane to the command line. How can i print the same without pressing ENTER. Can i execute the second printf without pressing ENTER This is the code i am using
int main(int argc, char* argv[])
{
int aNumber;
char aChar;
printf("\nEnter a number:");
scanf("%d", &aNumber);
printf("\nThe number entered is %d\n", aNumber);
return 0;
}Thanks Sharan
-
Hi all, I am trying to run one console based application, Where i reading a argument from command line. If i press ENTER ,i am writing the sane to the command line. How can i print the same without pressing ENTER. Can i execute the second printf without pressing ENTER This is the code i am using
int main(int argc, char* argv[])
{
int aNumber;
char aChar;
printf("\nEnter a number:");
scanf("%d", &aNumber);
printf("\nThe number entered is %d\n", aNumber);
return 0;
}Thanks Sharan
Hi, try to run this program from the windows command prompt..