ListOfItem with name / property
ID: 108
using uCalcSoftware;
var uc = new uCalc();
Console.WriteLine("Items with the Prefix property");
Console.WriteLine("------------------------------");
foreach(var item in uc.GetItems(ItemIs.Prefix)) {
Console.WriteLine(item.Name);
}
Console.WriteLine("");
Console.WriteLine("Different versions of the + operator");
Console.WriteLine("------------------------------------");
foreach(var item in uc.GetItems("+")) {
Console.WriteLine(item.Text);
}
Items with the Prefix property
------------------------------
!
+
-
not
~
Different versions of the + operator
------------------------------------
Operator: 70 +{x}
Operator: 50 {x} + {y}
Operator: 50 {x As Int} + {y As Int} As Int
Operator: 50 {x As String} + {y As String} As String
Operator: 50 {x As Complex} + {y As Complex} As Complex
Operator: 50 {ByHandle x As AnyType Ptr} + {y As Int} As SameTypeAs:0 Ptr
Operator: 50 {ByHandle x As AnyType} + {ByHandle y As String} As String
Operator: 50 {ByHandle x As String} + {ByHandle y As AnyType} As String using uCalcSoftware; var uc = new uCalc(); Console.WriteLine("Items with the Prefix property"); Console.WriteLine("------------------------------"); foreach(var item in uc.GetItems(ItemIs.Prefix)) { Console.WriteLine(item.Name); } Console.WriteLine(""); Console.WriteLine("Different versions of the + operator"); Console.WriteLine("------------------------------------"); foreach(var item in uc.GetItems("+")) { Console.WriteLine(item.Text); }
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
cout << "Items with the Prefix property" << endl;
cout << "------------------------------" << endl;
for(auto item : uc.GetItems(ItemIs::Prefix)) {
cout << item.Name() << endl;
}
cout << "" << endl;
cout << "Different versions of the + operator" << endl;
cout << "------------------------------------" << endl;
for(auto item : uc.GetItems("+")) {
cout << item.Text() << endl;
}
}
Items with the Prefix property
------------------------------
!
+
-
not
~
Different versions of the + operator
------------------------------------
Operator: 70 +{x}
Operator: 50 {x} + {y}
Operator: 50 {x As Int} + {y As Int} As Int
Operator: 50 {x As String} + {y As String} As String
Operator: 50 {x As Complex} + {y As Complex} As Complex
Operator: 50 {ByHandle x As AnyType Ptr} + {y As Int} As SameTypeAs:0 Ptr
Operator: 50 {ByHandle x As AnyType} + {ByHandle y As String} As String
Operator: 50 {ByHandle x As String} + {ByHandle y As AnyType} As String #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; cout << "Items with the Prefix property" << endl; cout << "------------------------------" << endl; for(auto item : uc.GetItems(ItemIs::Prefix)) { cout << item.Name() << endl; } cout << "" << endl; cout << "Different versions of the + operator" << endl; cout << "------------------------------------" << endl; for(auto item : uc.GetItems("+")) { cout << item.Text() << endl; } }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Console.WriteLine("Items with the Prefix property")
Console.WriteLine("------------------------------")
For Each item In uc.GetItems(ItemIs.Prefix)
Console.WriteLine(item.Name)
Next
Console.WriteLine("")
Console.WriteLine("Different versions of the + operator")
Console.WriteLine("------------------------------------")
For Each item In uc.GetItems("+")
Console.WriteLine(item.Text)
Next
End Sub
End Module
Items with the Prefix property
------------------------------
!
+
-
not
~
Different versions of the + operator
------------------------------------
Operator: 70 +{x}
Operator: 50 {x} + {y}
Operator: 50 {x As Int} + {y As Int} As Int
Operator: 50 {x As String} + {y As String} As String
Operator: 50 {x As Complex} + {y As Complex} As Complex
Operator: 50 {ByHandle x As AnyType Ptr} + {y As Int} As SameTypeAs:0 Ptr
Operator: 50 {ByHandle x As AnyType} + {ByHandle y As String} As String
Operator: 50 {ByHandle x As String} + {ByHandle y As AnyType} As String Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Console.WriteLine("Items with the Prefix property") Console.WriteLine("------------------------------") For Each item In uc.GetItems(ItemIs.Prefix) Console.WriteLine(item.Name) Next Console.WriteLine("") Console.WriteLine("Different versions of the + operator") Console.WriteLine("------------------------------------") For Each item In uc.GetItems("+") Console.WriteLine(item.Text) Next End Sub End Module