1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#include <iostream>
#include <conio.h>
#include <stdio.h>
#include <windows.h>
using namespace std;
int main(){
COORD curser;
int ch;
ch=getch();
for(; ;){
if(ch=getch()){
cout<<(char)ch;
if((ch=getch())==8){
--curser;
ch=32;
}
}
}
return 0;}
|
How can i do delete a char with my cursor?--cursor is wrong in this.Can u say alternative way pls?
Last edited on
output a '\b' or a '\x7f'.
prinf('\b') method is binding cursor in bow screen.I tried new
method.So delete
stayed in my codes.
Last edited on