I apologize up front; I'm a VB Programmer trying to pick up C++. I have a very simple program that takes a string input from the user. How can I look at a specific character in that string? VB has the Left(), Right(), and Mid() Functions. Is there something similar for C++? A sample of my code is below. In this example, how could I have the program return the "T" in "Test String" or the "g" at the end?
#include "stdafx.h"
#include <iostream>
#include <string>
#using <mscorlib.dll>
using namespace System;
using namespace std;
int _tmain()
{
string strTest;
strTest = "Test String";
cout << strTest;
return 0;
}
Joe Cody
Allied Tube & Conduit