session three builders & developers workshop microsoft tech club 2015
TRANSCRIPT
Builders & Developers Workshop
session three
Prepared & presented by:
Moatasim Magdy
Calculator Demo
Arrays
Arrays
static void Main(string[] args){
int []grades = new int[3];int[] grades2 = { 12, 3, 4 };grades[0] = int.Parse(Console.ReadLine());grades[1] = int.Parse(Console.ReadLine());grades[2] = int.Parse(Console.ReadLine());for ( int i=0; i < 3; i++ )Console.WriteLine(grades[i]);Console.ReadKey();
}
Functions
Functions
• What do you want the function to do ?
• what`s the output type ?
• What inputs do you want to get the output.
• How to call the function ?
Functions
Calling The Functionsclass MyClass
{
String name = "Moatasim";
int summation (int x,int y)
{
return x+y;
}
static void Main(string[] args)
{
MyClass s = new MyClass();
s.summation(5,13);
Console.WriteLine(s.name);
Console.ReadKey();
}
Where We Are Now ?
What`s our aim ?
We can develop it using Visual Studio .. But first, What`s this ?
Windows Applications
Grid Application
Split Application
Windows Phone Applications
Panorama Application
Example
Pivot application
Universal Applications
Blank Application
Hub Applicationwindows phone
Windows Hub Application
Our first Universal
app