ideas | discover | explore

Monday, August 29, 2011

C# 2 – Variables

C# 2 - Variables

1.  Create a new C# console project.
2.  Inside main() type the following code.

string myName = "Reymon Reyes"//Put your name within the two double quotes.
int myAge = 25;
float myHeight = 162.62F;
decimal myWeight = 132.28M;

Console.WriteLine("My profile");
Console.WriteLine("Name: {0}", myName);
Console.WriteLine("Age: {0}", myAge);
Console.WriteLine("Height: {0}", myHeight);
Console.WriteLine("Weight: {0}", myWeight);

Console.WriteLine("Press any key to continue.....");
Console.ReadLine();



3. Your Program.cs will now look like this.


4. Press F5 to run your code.





  • Syntax for declaring a variable.
    • <data type> <variable name>;
    • Eg: int myAge;
  • Data type can be any of the primitive types or a class.
  • Variable names cannot begin with a number or any special characters although an underscore is allowed.
  • Variable names are case sensitive which means myAge is different from MyAge.
  • Variable names cannot be any of the reserved keywords used within C#.
  • The declaration decimal myWeight = 132.28M; contains a suffix literal M to specify the value 132.28 as decimal type.

Monday, August 22, 2011

I found The Firebird Book for Php 90 or $2.15

It was sunday. My girlfriend and I went to the mall to meet a friend. We were on the second floor and I came across a book sale stand and decided take a look. I immediately went to the computers section and to my surprise found a book that I've been looking for for a long time. Finally, I grabbed The Firebird Book and bought it. A total win!

Check The Firebird Book on Amazon.com

C# 1 – Hello World

1.  Go to File -> New -> Project… .
2.  On the left side under Installed Templates select Visual C# -> Windows. On the right side select Console Application. Enter HelloWorld on the Name. Click OK.


3.  In the opened Program.cs file. Look for the part where it says
    static void Main(string[] args)
        {
        }


4.  Enter the following code in between the curly braces “{“ and “}”.
    Console.Write("Hello World Again!");

5.  Your screen will now look like this.


6.  To execute or run your code press F5. You can also press the Play button like the one shown below.
7.  You’re probably wondering what happened when you tried to run the code and you noticed only slight flicker on your screen. The code actually executed very fast that it felt like you never saw the results of the code. Add the following code below on the next line after Console.Write.

8.  Press F5 to run and see the result.

9.  Congratulations! You’ve just run your first program. Take a break for now and enjoy life. Watch out for my next episode.

10.  Thank you.

Tuesday, August 9, 2011

On Demand IT Tech Support

If you're having problems with your PC whether software or hardware then I might be able to help you. At an affordable cost you can have solutions to your problems. Send me a message on skype elmoe01 and we'll talk about your problem.

Monday, August 1, 2011

Freelance Software Development

freelance software development
freelance development software
software development freelance
software freelance development
development freelance software
development software freelance

Software development outsourcing

software development outsourcing
development outsourcing software
outsourcing software development
development software outsourcing
software outsourcing development
outsourcing development sourcing

Game Software Development

game software development
software development
development game software