View Single Post
  #2 (permalink)  
Old 07-21-2008, 02:06 PM
marwex89's Avatar   
marwex89 marwex89 is offline
Guru
 
Join Date: Jul 2008
Location: Viking-land!
Posts: 3,995
Credits: 0
Rep Power: 30
marwex89 is a jewel in the roughmarwex89 is a jewel in the roughmarwex89 is a jewel in the rough
Send a message via AIM to marwex89
Talking Re: Visual Basic to C++ Syntax Translation

Include <cstring> and take a look at the high-level functions there.

Code:
string s1, s2; // Empty strings
string s3 = "Yo dude"; // Initialized
string s4("I am cool"); // Also initialized
s2 = "C++ sucks"; // Assigning to a string
s1 = s3 + " " + s4; // Combining strings
s1 += "8"; // Appending to a string
"There are libraries for everything!" (C++ librarian)
__________________
Reply With Quote