Here's my code. I just want to return the length of a string. How do I do that? Any assistance would be greatly appreciated.
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
int _tmain()
{
String *strString;
int intLength;
Console::Write(S"Enter a String ");
strString = Console::ReadLine();
Console::Write(strString);
intLength = strlen(strString);
Console::Write(intLength);
return 0;
}
I run this and get a slew of "Cannot convert..." errors.