[Mono-list] How To Start Writing Code in Monodevelop IDE?
Costantino Pipero
cos at beeond.net
Tue Mar 2 17:37:41 EST 2010
To keep the console up (what you call a "dosbox") until you press <Enter>
add a ReadLine() call to you code. Like this:
// Namespace Declaration
using System;
// Program start class
class WelcomeCSS
{
// Main begins program execution.
static void Main()
{
// Write to console
Console.WriteLine("Welcome to the C# Station Tutorial!");
Console.ReadLine();
}
}
In MonoDevelop there is also an option to make the console projects run
until you press enter in the project's options, but for now the ReadLine()
should be sufficient for you.
Cos
--------------------------------------------------
From: "abrogard" <abrogard at yahoo.com>
Sent: Tuesday, March 02, 2010 4:56 PM
To: <mono-list at lists.ximian.com>
Subject: [Mono-list] How To Start Writing Code in Monodevelop IDE?
>
>
> I've just started learning C#
>
> found what looks like a good place: C# Station.
>
> Want to do their first exercise - a 'hello world' thing. Wrote the script
> and submitted it to csc.exe only to find hassles on my machine. Command
> line
> compiling won't work. Too many messed up installations of Visual Studio.
>
> So thought I'd use Monodevelop and write it in there and let it compile
> it.
>
> But I can't find where to write it!
>
> Can anyone help?
>
> Here's what I want to write, in the interests of making it all clear:
>
>
> // Namespace Declaration
> using System;
>
> // Program start class
> class WelcomeCSS
> {
> // Main begins program execution.
> static void Main()
> {
> // Write to console
> Console.WriteLine("Welcome to the C# Station Tutorial!");
> }
> }
>
>
> (and I think I'll need some trick to keep the dosbox open for while when
> it
> runs...)
>
> regards,
>
> ab :)
>
> --
> View this message in context:
> http://n4.nabble.com/How-To-Start-Writing-Code-in-Monodevelop-IDE-tp1575796p1575796.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list