ファイルから読み取り、その内容を解析しています。CString
値が数字のみで構成されていることを確認する必要があります。私がそれを達成できるさまざまな方法は何ですか?
サンプルコード:
Cstring Validate(CString str)
{
if(/*condition to check whether its all numeric data in the string*/)
{
return " string only numeric characters";
}
else
{
return "string contains non numeric characters";
}
}