DA-LION-619
Honorary Master
http://channel9.msdn.comI don't understand.
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
http://channel9.msdn.comI don't understand.
Too many or used the wrong type?
You mean // or /// or do you just mean pressing spacebar/enter?I can't really see the formatting of your code all that well as I'm using Tapatalk, but learn to use indentation (spaces before lines of code) to your advantage. It makes your code easier to read for yourself and others and makes the identification of missing or overused brackets and braces easier...
Oh man I have much to learn. Thank you.the brackets of your for loop should be { instead of (, ie for (conditions) {}. Then, brackets again, PrintFooToScreen{} should be PrintFooToScreen().
Read up on when to use the different types of brackets.
Well, I have only watched one 15 min youtube video tutorial so I don't even know what crap code looks like. This is the first time I've ever even been exposed to any coding at all or even heard of Visual Studio. That's like yelling at a skinny person for not being muscular when they've only trained once in their entire life.The problems are elementary dude. If you're stuck here, how are you going to progress?
Your code looks like crap on Tapatalk, but the obvious errors are too many closing braces in your first print method, a random closing bracket in the middle of your for loop in your second print method, along with the brackets and braces subsequently switched.
There may be other problems, but I'm not going to scrutinise code that looks like that any further.
You cannot use {}, use ()Hmm, I changed it to 'for{int counter=0}; counter <= 100; counter++}' using { instead of ( and removed what seemed to be one } too many.
But I still get my 'void' underlined as in the aforementioned issue.
Is '()' called brackets and '{}' called parenthesis?
Oh man I have much to learn. Thank you.
Well, I have only watched one 15 min youtube video tutorial so I don't even know what crap code looks like. This is the first time I've ever even been exposed to any coding at all or even heard of Visual Studio. That's like yelling at a skinny person for not being muscular when they've only trained once in their entire life.
I'm trying to learn here, I've already learned a lot just by asking questions ITT.
Thanks for your help though, just keep in mind I need to learn everything. When you say 'first print method' are you referring to my first 'static void PrintFooToScreen()'?
Hmm, I changed it to 'for{int counter=0}; counter <= 100; counter++}' using { instead of ( and removed what seemed to be one } too many.
But I still get my 'void' underlined as in the aforementioned issue.
+1I think you need to download some youtube vids and ebooks. Study, practice, study, practice....over and over.
You cannot use {}, use ()
for(int i =0;i<6;i++){
//do something
}
"//" makes words after the double slash comments in your code+1
I only watched one video so far and I basically just tried to copy this guy, but the resolution of the video was too low for me too actually see his brackets every time even at 480p.
That's what I had originally, I thought the '(' was the problem originally. I actually feel really stupid atm for not understanding this.
I don't know what '//do something' means.
Well... I'm off to the interwebz to try and learn more.
Braces are not called parenthesis. Brackets are (), braces are {} and crotchets or square brackets are [].
You can tell which methods I was referring to just from my reference to the for loop.
Why are you trying to teach yourself C# using Youtube? You're going to be asking for help on MyBB every day at this rate. Rather sign up at Codecademy and do their helpful courses.
I told you what you did wrong and you've done something else to correct it. In any case, the guy you tried to listen to was telling you to do a for loop like this:
for (int x = 1; x <= 20; x++)
{
Console.WriteLine(x);
}
You're supposed to feel stupid because you're not approaching it correctly. Forget about youtube and do some entry level tutorials on code academy. They'll explain the correct use of braces, brackets, etc.+1
I only watched one video so far and I basically just tried to copy this guy, but the resolution of the video was too low for me too actually see his brackets every time even at 480p.
That's what I had originally, I thought the '(' was the problem originally. I actually feel really stupid atm for not understanding this.
I don't know what '//do something' means.
Well... I'm off to the interwebz to try and learn more.
Much appreciated, really.
I signed up at Codeacademy, but I can't find 'C#' I only see Python, javaScript, PHP and a few others.
Thanks again everyone, especially for being so patient.
Yup, very similar.Doesn't matter, do Java, very similar to C#
MSDN is way better than YouTube IMO, there's videos, ebooks etc.Yup, very similar.
Msdn have a load of tutorials as well.
MSDN is way better than YouTube IMO, there's videos, ebooks etc.
+1MSDN is way better than YouTube IMO, there's videos, ebooks etc.