Content Archived

This content is no longer current. Our recommendation for up to date content: http://channel9.msdn.com/Series/C-Fundamentals-for-Absolute-Beginners

Operators, Expressions and Statements Duration - 07

Sign in to queue

Description

In this lesson, we discuss how to create a properly formed C# statement. As with any language, there's a "right way" and a "wrong way" to write "complete thoughts" in C#. We discuss how statements are made up of expressions, and how expressions are made up of operators (think: verbs) and operands (think: nouns). Finally, we talk about compilation errors that occur when the syntax rules of C# are ignored.

Download the source code for Operators, Expressions and Statements Duration

 

Tags:

C#, visual stuido

Embed

Download

The Discussion

  • User profile image
    EmW

    Again, awesome and thank you. You are allowing me to finally understand how to code, i love your approach

  • User profile image
    BobTabor

    @EmW:  Awesome, glad it's working for you!

  • User profile image
    Lotfinejad

    Download links are broken!

  • User profile image
    Duncanma

    @Lotfinejad: They are all working for me... which specific link is failing for you? Two troubleshooting ideas:

    1. Can you do a tracert to video.ch9.ms to see what the results are?
    2. Can you try hitting the same link, but media.ch9.ms instead of video.ch9.ms?

    Thanks

  • User profile image
    Lucien

    This series is awesome. I've already watched several tutorials by different authors, covering the same content... but these videos are much more descriptive and easier to understand.

    Offhand, I have a question relating to the past few videos...

    Is it possible to check and see if a user input is equal to /any/ variable in a class or method? I imagine I could type the variables out one by one, but it would be much easier to just check the input against all previously defined variables within a class or method.

    If (userInput == Program.Variables.(anyvariabledefined))  or something like that.

     

  • User profile image
    Zafar

    The link is broken. Cant watch the video neither can download.

  • User profile image
    BobTabor

    @Lucien: That's a great question ... to my knowledge, there's nothing like that available.  I can see where that would be handy.

  • User profile image
    DanWoodcock

    Bob,

    Thank you so much! I have watched your vb videos as well. Your videos are a great resource for learning. You are the man.

  • User profile image
    BobTabor

    @DanWoodcock:  Smiley  Thanks, always wanted to be "the man".  Seriously though, glad these worked for you Dan.

  • User profile image
    Deniz

    Bob, you really are the best! I was struggling trying to find a good source to start learning. There really is none. And I really can't spend thousands of dollars for learning this. Internet is full of lessons that made no sense to me.

    Also even though English is not my native language, it isn't even a bit hard to understand you.

    Thank you for all and I will try to follow your work. Hopefully.

  • User profile image
    Harish

    Hello Bob,

    Awesome video tutorials, I have learned a lot. Thank you very much for your strain in giving out the best in you. Please provide us with the other tutorials on other technologies.

    Also, This video link is broken for both watching and downloading. Please verify it.

    Thanks. :)

  • User profile image
    Harish

    Hello Bob,

    Awesome video tutorials, I have learned a lot. Thank you very much for your strain in giving out the best in you. Please provide us with the other tutorials on other technologies.

    Also, This video link is broken for both watching and downloading. Please verify it.

    Thanks. :)

  • User profile image
    BobTabor

    @Deniz: Great to hear this worked for you.  Thanks for the kind words!

    @Harish: Thank you.  Other videos are on their way.  Also, I was able to download and watch this video just now.  All links seem to work.  Perhaps a temporary outage?

  • User profile image
    chidi

    Thanks alot Bob.I would like to buy the complete CD,how can i get them?

  • User profile image
    Michael

    This videos saved my life, thank you Bob ^_^

  • User profile image
    Tony B

    @Lucien

    I think what you are asking for can be achieved using Reflection:

    http://msdn.microsoft.com/en-us/library/xdtchs6z.aspx

    Tony

  • User profile image
    Syed Moinudin

    Sir Thank you very much..
    I Dont Know How To Say Thank,s ....Lot of Thank,s sir

  • User profile image
    George

    I thought i'd try out using what I learned from you so far and i'm having a bit of trouble. on line 22 I try to convert a string into an integer but when I debug it stops at that line and doesn't continue. What am I doing wrong?

    here is what I have

    http://i882.photobucket.com/albums/ac22/xGE0RG3XD/problem.png

  • User profile image
    BobTabor

    @George: Try removing the Console.Readline() in line 19.  You're doing it twice.  That means the SECOND time you hit enter, you're not sending in any value (null), and so int.Parse(null) will cause the app to break.  Hope that helps!

  • User profile image
    Supensaa

    Another great video! I love switching between a few of the kindle books I bought + music...then when I get tired of reading I come to your videos! Great work, much appreciated.

  • User profile image
    Mohd

    Bob... what is (( and )) meant for?

  • User profile image
    salman

    bob, the videos are great just from the point of view of downloading you have uploaded the files in very high resolution that's why their size are very heavy and it takes so much time while downloading.
    will appreciate if you could put the compressed videos or in other formats which are comparatively lighter.

    thanks

  • User profile image
    pastorjack

    Excellent tutorial; I am starting to think through some of the code syntax.

    Thanks!

  • User profile image
    martin

    in the OR operator what symbol was it?? ((x == x) ?? (x == x))

  • User profile image
    rajat patel

    Hello sir Bob !! the series is awesome.... n its very helpfull really......i hv downloaded all ur serieses bt this particular video is not getting downloaded..... help me sir plz..... i need this video asap to complete my study of the whole series..... help me soon sir !!

  • User profile image
    Matt

    Hello Bob,

    I am attempting to download the whole series for offline viewing but unfortunately this link appears to be broken.

    Thanks

  • User profile image
    Tajminur Rahman

    Hey Bob,
    Awesome effort. C# was giving me a very hard time and deep down in my heart I was hopeless. Then,suddenly I just saw your videos and guess what, I am back on C# again !
    Thank u Sir.

  • User profile image
    Tajminur Rahman

    Hey Bob,
    Awesome effort. C# was giving me a very hard time and deep down in my heart I was hopeless. Then,suddenly I just saw your videos and guess what, I am back on C# again !
    Thank u Sir.

Add Your 2 Cents