[C#] Needing help with a little code written.
Hey all.
I'm following a tutorial for learning C#, and I've gotten pretty far with it, but this seems to be giving me some problems. I wrote a little code for a new console program and I got two errors, I've searched around and couldn't find a possible solution. I then tryed to edit somethings for myself using what I've learned so far & no results. Can someone lend a hand & know what might be wrong?
http://i539.photobucket.com/albums/f...udd/CError.png
Waves,
Grey
Re: [C#] Needing help with a little code written.
The "MyClass" class doesn't exist, so you can't use it.
Re: [C#] Needing help with a little code written.
Okay, I have figured that out, but this is where the biggest problem is, How can I create it? If I can't, then what can I use?
Re: [C#] Needing help with a little code written.
Right-click your solution->New->Class. Or something along those lines.
You'll also have to create all the functions inside (Add(), Sum()).
Re: [C#] Needing help with a little code written.
I had to right click the ConsoleApplication > Add > Class. I added a new Class named "MyClass". How can I create all the functions inside it?
Re: [C#] Needing help with a little code written.
Re: [C#] Needing help with a little code written.
I'll give that a try, I knew I have to write them, but where to & how.
C# is hard to learn, but I'm starting to get better & better while practicing & with the help of you all.
Thanks,
Grey
Re: [C#] Needing help with a little code written.
Quote:
Originally Posted by
ProjectGrey
I'll give that a try, I knew I have to write them, but where to & how.
C# is hard to learn, but I'm starting to get better & better while practicing & with the help of you all.
Thanks,
Grey
I must disagree Visual C# is one of the easiest and user friendly Languge/IDE ( <-- Visual Studio ) i've ever been working with. Acutally Visual Studio with C# is the only reason i've installed Windows on my notebook.
Yes i'm aware that there are substitues for C#/.NET for other systems ( actually there is one ) like Mono, but i'ver tried it on OpenSUSE and it was the biggest fail i've ever seen, it crashes every few minutes, few lines, every few controls you drop on your form.
As form where & how i guess you should just read about object oriented programming in general, so you will catch the idea as you do that it won't be so hard.