yes that will also work. but in my programme i am taking integer and float type of data,lots of time so instead for check ach and every input we take ,i wrote entire code in
}block 47 is '/'(forward slash)
for more detail i'll post my coding too.
Please help n thank you zeroliken....
Take digits one by one till null and subtract '0', multiply by 10 and add to convert char to int. For int to char, take %10 and add to character variable with value '0' till all digits, then reverse string
In order to convert a single character to integer, u have to subtract the ascii value of '0' from it since the characters 0,1,2.. take continuous ascii values. Put that in a loop to extract digits one by one and then the integer can be made.
Here cnum is the number as string and inum is the integer
Similarly to convert integer to character, find reminder on div by 10 to extract the last digit, add to character variable initialised to '0' and catenate to a string. But since the digits are extracted from the end, the reverse string will be formed. So u need to reverse the string in the end
Actually i am dealing with numbers as i said above.
So, exit from anyWhere will will work if input char from getch()/getche()
while(kbhit()!=27) //for escape key
This will work.
And this will not work in my project anymore.
Even though u have tried that its great, but yet not the same! The solution is simple.
When using getch(), when u press any key its ASCII Value is saved.
Also , u are correct the Ascii value for the esc button is 27. U can just do the following :
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...