A character set has 1 and 2 byte characters. One byte
characters have 0 as the first bit. You just keep
accumulating the characters in a buffer. Suppose at some
point the user types a backspace, how can you remove the
character efficiently. (Note: You cant store the last
character typed because the user can type in arbitrarily
many backspaces)
Answers were Sorted based on User's Feedback
Answer / lokesh tailor
We use the fflush(stdin) function to clear the buffer.
and then take the value of char or integer.
because the enter key is reconized as a character.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / threesome
whenever a backspace character is clicked(ASCII VALUE: 08),
I will replace the previous character with a space(ASCII
VALUE: 32)
Is This Answer Correct ? | 0 Yes | 1 No |
sir now i am studying B.Tech final year so now i am eligible for writing group 1 and 2 or not?
Streams can be for writing the data to a.txt file
int main() { int d = 10; int m = 2; int y = 3603; int c = 0; int val; val = ( d + m + y + (y/4) + c) % 7; cout << val; return 0; }
what is locative information on web.........?
how to use two diffirent gatway in one system
Whats the difference between following two array declaration in JAVA? int a[]={1,2,3,4,5}; int []a-{1,2,3,4,5};
What is the basic difference between injection speed and injection pressure in an injection molding machine?
what is defect tracking in sotware testing
Why you shifting job every other year?
What type of questions are asked in interview?
when load increase in generator in island mode, why turbine rpm is reduced
what are the different types of database servers