staticclass ConsoleProgram
{
string Main(void[] args)
{
myStruct s = new myStruct();
myClass c = new myClass();
s.book = "Learn .net";
c.cost = 10;
Console.WriteLine(s.book + " $" + c.cost);
Console.ReadKey();
}
}
|
Class Program
Private Shared Sub Main(args As String())
Dim s As New myStruct()
Dim c As New myCls()
s.book = "Learn .net"
c.cost = 10
Console.WriteLine((s.book & Convert.ToString(" $")) + c.cost)
Console.ReadKey()
End Sub
End Class
|