I'm a beginner in C++. I saw \b and \r in a program source code. I've seen \n and I know its purpose. But why do we use \r and \b in C++? Please clear my doubt.
Thank You.
paruse
-5
Newbie Poster
Recommended Answers
Jump to PostSee: http://msdn.microsoft.com/en-us/library/h21280bw(VS.80).aspx
For the implementations of \n and \r\n on different systems (Win vs. *nix, and others) see:
Jump to PostI'm a beginner in C++. I saw \b and \r in a program source code. I've seen \n and I know its purpose. But why do we use \r and \b in C++? Please clear my doubt.
Thank You.Those codes are called backslash codes (or character escape sequences), there's …
All 8 Replies
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
warbird43
-1
Newbie Poster
mvmalderen
commented:
rep - beggar!
-1
mvmalderen
2,072
Postaholic
csurfer
422
Posting Pro
ganga.0006
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Harshul_1
0
Newbie Poster
Shafiq_1
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.