Displaying the data type of a parsed expression

ID: 41

				
					using uCalcSoftware;

var uc = new uCalc();
Console.WriteLine(uc.Parse(" 3 + 6 * 10 ").DataType.Name);
Console.WriteLine(uc.Parse(" 'This ' + 'is a string' ").DataType.Name);
Console.WriteLine(uc.Parse(" 2 + 8 * #i / 2").DataType.Name);
Console.WriteLine(uc.Parse(" 10 + 2 > 3").DataType.Name);
				
			
double
string
complex
bool
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   cout << uc.Parse(" 3 + 6 * 10 ").DataType().Name() << endl;
   cout << uc.Parse(" 'This ' + 'is a string' ").DataType().Name() << endl;
   cout << uc.Parse(" 2 + 8 * #i / 2").DataType().Name() << endl;
   cout << uc.Parse(" 10 + 2 > 3").DataType().Name() << endl;
}
				
			
double
string
complex
bool
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Console.WriteLine(uc.Parse(" 3 + 6 * 10 ").DataType.Name)
      Console.WriteLine(uc.Parse(" 'This ' + 'is a string' ").DataType.Name)
      Console.WriteLine(uc.Parse(" 2 + 8 * #i / 2").DataType.Name)
      Console.WriteLine(uc.Parse(" 10 + 2 > 3").DataType.Name)
   End Sub
End Module
				
			
double
string
complex
bool