|
-
some questions
I have been programming in QuickBacic for a long time (unfourtionetly). I
was wondering the c++ equivalent of STR$(), VAL(), MID$(), LEFT$, and RIGHT$().
With STR$() you give it a string and ir returns it as a number, so "He has
$50." would get rewurned as 50.
VAL() turns a number into a string (it is the opposite of STR$).
MID$(a$, b, c) a$ is a string, b is the legnth of the string that you want
and c is where it starts, so MID$("Hello world!", 5, 7) would return "world".
LEFT$(a$, b) a$ is the string and b is how much of the string off of the
left side you want, so LEFT$("Hello world!", 5) would return "Hello"
RIGHT$(a$, b) does the same as LEFT$(a$, b) except it copies off of the right
side. RIGHT$("Hello world!", 6) returns "world!"
I hope this is understandable. Thank you. Lego_Boy@juno.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks