I have the following function in VB .NET:
what would a simple unmanaged C++ equivalent be? (I've never used strings in C++ before)
Visual Basic:
Public Function GetDataFromString(ByRef str As String) As String
Dim x As Integer = str.IndexOf(">")
If x = -1 Then
GetDataFromString = str
Exit Function
End If
GetDataFromString = str.Substring(0, x)
str = str.Substring(x + 1)
End Function
what would a simple unmanaged C++ equivalent be? (I've never used strings in C++ before)