Author |
Message |
hellzlaker Registered Cap Buster Popping men in the ass since Oct 2005
Gender: NEVER ENOUGH! Joined: Oct 27 2005 Posts: 34 Offline
|
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Sun Apr 20, 2008 8:17 pm Post maybe stupid Post subject: |
 |
|
|
|
string[] names = new string[size];
you have to use the new statement for arrays. look it up. |
|
Back to top |
|
 |
hellzlaker Registered Cap Buster Popping men in the ass since Oct 2005
Gender: NEVER ENOUGH! Joined: Oct 27 2005 Posts: 34 Offline
|
Posted: Sun Apr 20, 2008 8:34 pm Post maybe stupid Post subject: |
 |
|
|
|
i have another question how to run commands from DOS like in C++ its "system("cmd.exe d mrs.exe");"
so how do you do it in C#? |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Sun Apr 20, 2008 8:42 pm Post maybe stupid Post subject: |
 |
|
|
|
I think there is probably a better forum for what you're doing since it isn't subspace related. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Sun Apr 20, 2008 11:17 pm Post maybe stupid Post subject: |
 |
|
|
|
The first thing that jumped out at me is that you don't need to (and shouldn't) be using all of those \n's. You should either split it up and call WriteLine for each one (it will do it for you which is actually why it is called WriteLine instead of just Write) or use Environment.NewLine.
You're not doing any validation of the number input, check out the TryParse method.
Also, you can use String.ToUpper to half the number of cases in your switch.
Running external things is done with System.Diagnostics.Process.Start _________________
 |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
|
Back to top |
|
 |
Cheese Wow Cheese is so helpful!

Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Sat Apr 26, 2008 1:03 am Post maybe stupid Post subject: |
 |
|
|
|
-deleted, was crap- _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
 |
|