Back Forum Reply New

C# Console Application

Post Last Edit by ePrasart at 14-3-2009 05:19

This is a simple C# Console Application.

using
System;
namespace Console1
{
class Program
{
static void Main(string[] args)
{
Console.Title = "C# Console Application";
Console.WriteLine("Welcome to C# Console Application!");
Console.Write("\nPlease enter your name: "); // Prompt
Console.ForegroundColor = ConsoleColor.Green; // Change text color to green
string sName = Console.ReadLine(); // Read string from keyboard and assign to sName
Console.WriteLine("\n\nHello {0}. Have a nice day.", sName.ToUpper()); // print out
Console.ForegroundColor = ConsoleColor.Gray; // Change text color to default
Console.Write("\n\nPress enter to exit.");
Console.ReadLine(); // Wait for enter
}
}
}
screen.jpg

Console1.zip (4.95 KB)

ePrasart.
whoa, c#, c brai. lolz Anyway nice to have you here, ePrasart. You post quite a number of posts. Can you advice me some basic or step to learn web programming? I only know java programming and none other beside it. I want to study one web programming language but don't know which one i should... I'm Khmer year1 student in Singapore, computer science. And  you?
I used to study PHP at school.
This site also uses PHP. The Admin may have a good answer to your question.
Honestly, I don't know any web programming language. I don't like programming the web.
There are a bunch of web programming languages.
One is not better than others. It may depend on many factors.
You may do a search on your own on.
Here they are: PHP, Perl, Python, Ruby, ASP and more .

Foreign student in Singapore? Sound interesting.
ePrasart.
I see thanks.
for web programming,if you have the basic programming, it is good to start.
now let me explain what is the different between using ASP.net and PHP to build the web.
ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language.

PHP is a scripting language originally designed for producing dynamic web pages. It has evolved to include a command line interface capability and can be used in standalone graphical applications
While PHP was originally created by Rasmus Lerdorf in 1995, the main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification
software released under the PHP License, however it is incompatible with the GNU General Public License (GPL), due to restrictions on the usage of the term PHP.
for my experience:
PHP is an open source web programming, so if you are very good at source code, and you want to explore more powerful web application,it is very good to start with PHP.PHP is old technology,but it seems late very long time because it works so great with open source operating system like Unix and Linux. since most of  the Server service is open source, so people tend to build thier web application with PHP.
on other hand, when PHP working with MySQL and it operate on the Linux,like Red Hat, it works so great.
for my experiece continue:
if you are a new guy, you can start to learn from ASP.net, it is  a package tool than contail alot of small web tool application and it very easy for the new learner to learn.
it works great with Window server. but i am not sure with open source operating system like Red hat.

PS: you have to have Web design knowledge to design a very good web.
Back Forum