Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devwiki:cs [2016/08/12 22:22]
ying [.NET framework install requirement for your C# app]
devwiki:cs [2016/10/20 01:17] (current)
Line 31: Line 31:
   * For create app without using .NET frame, better creating GUIs in regular C++, Microsoft offers the bare Windows API, MFC, WTL and there are 3rd party products, like Qt or wxWidgets   * For create app without using .NET frame, better creating GUIs in regular C++, Microsoft offers the bare Windows API, MFC, WTL and there are 3rd party products, like Qt or wxWidgets
  
 +====== My Test Code ======
 +
 +<code csharp test.cs>
 +using System;
 +//using System.Collections.Generic;​
 +//using System.Linq;​
 +//using System.Text;​
 +//using System.Threading.Tasks;​
 +
 +namespace TestRun
 +{
 +    class MainApp
 +    {
 +        static void Main(string[] args)
 +        {
 +            Console.WriteLine("​Hellow World."​);​
 +            string reply = Console.ReadLine();​
 +            if (reply != ""​){
 +                Console.WriteLine("​Got it:" + reply);
 +            }
 +            else{
 +                Console.WriteLine("​nothing"​);​
 +            }
 +            int num1 = int.Parse(Console.ReadLine());​
 +            int num2 = int.Parse(Console.ReadLine());​
 +            Console.WriteLine(num1+num2);​
 +            Console.WriteLine(mult(num1,​num2));​
 +            reply = Console.ReadLine();​
 +        }
 +
 +        public static float mult(float n1, float n2)
 +        {
 +            float result = n1 * n2;
 +            return result;
 +        }
 +    }
 +}
 +
 +</​code>​