473,378 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Code to output backspaces as '\b' chars

I want to make this rogram which ,on inserting a string from keyboard substitute a backsace with /b.Here the difficulty I am facing that backsace is not read by comiler even after using getch function and scanf function
Aug 4 '08
2 1355
JosAH
11,448 Expert 8TB
Maybe the backspace key on your keyboard is broken as well as your 'p' key.

kind regards,

Jos
Aug 4 '08
arnaudk
424 256MB
You'll need to capture keyboard interrupts and there are no standard C/C++ libraries which can do this as it's platform-dependent. There are third-party libraries which can help you with this, you might like to check out the Allegro API for example.
Aug 4 '08

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Zulik | last post by:
Hello, I have a problem with MessageDigest MD5 in Java. I want to calculate the digest from a file, encode it in base64 and display it. Now, according to MD5 spec, digest shall be 128 bits so,...
8
by: Steven D'Aprano | last post by:
I have a string containing Latin-1 characters: s = u"© and many more..." I want to convert it to HTML entities: result => "© and many more..." Decimal/hex escapes would be...
2
by: peridian | last post by:
I've gotten a really weird result crop up on my site, and I can't find any information on the web that it has been seen elsewhere. Given how weird this is, I guess it's probably a symptom of either...
0
by: cybertechk | last post by:
hi all, i have to send value of perl variable through javascript function from one page to another page. plz somone can help me showing simple snnipet. that how to send by javascript and how...
2
by: jeffcbr | last post by:
I am very new to programming and do not know what is wrong with this code... project due soon. need feedback asap please... #include <stdio.h> // Constant #define COST_OF_GLASS .02
7
by: amanda22 | last post by:
I know this is probably something silly, but I am missing something. I put the following into my compiler and I am not getting it. I know I need something to make this work, because everyone else...
3
by: andrewkl | last post by:
hi, I have the following Perl code that inserts a string to an Oracle DB via a stored procedure: #!/usr/local/bin/perl ## Perl v5.8.6 built for sun4-solaris use strict; BEGIN...
1
by: marmar12 | last post by:
int a = 17, b; 59. 60. b = a; 61. printf ("b = %d\n", b); 62. 63. b = b + 1; 64. printf ("b = %d\n", b); 65. 66. b = a / b; 67. printf ("b = %d\n\n\n", b);
3
by: .rhavin grobert | last post by:
this is m$ vc++, but the question itself is c++ specific... TCHAR is a 'char' in non-unicode. functions return... TCHAR* CString::GetBuffer(int); int CString::GetLenght(int);...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.