hi,
i want the code to read the values from keyboard even if u give a character it need to convert into the valid integer.
i tryed with code
main()
{
int x;
std::cin<<(int)x;
..
.
..
.
.
}
i want the code to read the values from keyboard even if u give a character it need to convert into the valid integer.
i tryed with code
main()
{
int x;
std::cin<<(int)x;
..
.
..
.
.
}