![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Sounds good. Skim through the posts (especially the IRC logs), let me know what you want to work on so I can add you to the website, and if you can, turn up to the next meeting at Sunday 8pm CST.
|
|
|
|
|
|
#12 |
|
Hobbyist Programmer
|
I tried the Hello, World program that tama wrote in sharpdevelop, and I got an error that said ReadKey() was not in System. I took it out and it worked fine. But what do I need to make ReadKey work?
|
|
|
|
|
|
#13 |
|
Programmer
Join Date: Dec 2004
Posts: 35
Rep Power: 0
![]() |
>I got an error that said ReadKey() was not in System.
ReadKey is new with C# 2.0. Get the latest version of the .NET framework and C# compiler and things will work nicely. That's why I suggested that you get Visual C# 2005 Express to get you started. It would save you the trouble of versioning source code. That's a big problem with C++ and Java. I would love to avoid it with C#. |
|
|
|
|
|
#14 |
|
Hobbyist Programmer
|
I downloaded visual c# express and it took forever. Then after it was done installing everything it didn't work, so i downloaded #develop. Is there any other program besides vc#express and #develop that it will work on?
|
|
|
|
|
|
#15 |
|
Programming Guru
![]() ![]() ![]() |
Try my code below... It was coded in MS Studio .NET but should also work in #Develop, MCS/Mono also... Good to see you are interested in the project. I have a bit of network code (to support multiple clients) that you can take a stab at if you are interested.
using System;
namespace test
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.Write("Enter your name: ");
string name = Console.ReadLine();
Console.WriteLine("Hello {0}!",name);
}
}
}
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#16 |
|
Hobbyist Programmer
|
What does [STATread] mean?
|
|
|
|
|
|
#17 |
|
Hobbyist Programmer
Join Date: Sep 2004
Posts: 207
Rep Power: 4
![]() |
I know I'm kind of floating you off topic but I have a bit of advice.
Before you dive right into C# get a thorough understanding of OOP(Object-Oriented Programming). I found trying to learn OOP in C# very difficult. However I went also programmed some PHP at the time and found that programming PHP with OOP help me understand how I could use C# and OOP. Thats just my word of advice. As far as what other langauge to learn first. I would recommend PHP but you may have no use for that.
__________________
_______________________________ BlazingWolf |
|
|
|
|
|
#18 |
|
Programming Guru
![]() ![]() |
Mono/mcs also runs on Winblows if anybody cares :-)
however, linux is far supreme :-P
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#19 |
|
Programming Guru
![]() ![]() ![]() |
[StatThread] is not really needed in that example, just some extra stuff that my compiler threw in. Its a marker of sorts that indicates when the execution starts.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#20 |
|
Hobbyist Programmer
|
I already know the basics of oop. I know c++ and that uses oop.
So, [STAThread] is not really important or necessary, and if I were to leave it out it would still compile? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|