Solved

Is this right???

Posted on 2003-10-27
1
199 Views
Last Modified: 2010-04-16
I got this from a tutorial at: http://www.csharp-station.com/Tutorials/Lesson01.pdf

// Namespace Declaration
using System;

// Program start class
class NamedWelcome
{
     // Main begins program execution.
     public static void Main(string[] args)
     {
     // Write to console
     Console.WriteLine("Hello, {0}!", args[0]);
     Console.WriteLine("Welcome to the C# Station Tutorial!");
     }
}

It's not working!  Did the author leave something out?
0
Comment
Question by:chilled2003
1 Comment
 
LVL 10

Accepted Solution

by:
smegghead earned 50 total points
ID: 9629614
in what way is it not working ??

are you passing in a command line argument ?? as this is what it will display on the screen.

i.e.

NamedWelcom.exe Fred

Smg.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now