Added: 3 years ago
From: babyyoyoboy
Views: 8,291
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (22)

Sign In or Sign Up now to post a comment!
  • thanks ive been searching for a way to convert int to work with switches, but i was trying to use a string then back to int.

  • thanks mate, you have saved me, and your probally going to quite alot today with this piece of programming i have got to do

  • @blackmage0 Just message me if you need more help :P

  • You don't need to put break, unless you don't want a fall through effect

    You can also put default anywhere not just the bottom

    Consider this:

    for default and condition A you want statements X, Y and Z

    for condition B you want statements Y and Z

    for condition C you want statement Z

    then you could do:...

  • Thanks for this and all other videos. Free knowledge at this convenience is seriously awesome. I really appreciate everyone who does this stuff.

  • The C# language is 10000000000times easier the C language

  • I dont understand what the Convert.ToInt32 means...... what does the 32 mean??

  • By far the best C# instruction out there!

    I'm working in Expression Blend and VS and have to load a dynamic url into the MediaElement of an silverlight media project I'm doing. I'm usiing C# in the code behind. Know anything about how to do that?

  • you just fixed my entire program by showing me the conversion lol. thanks

  • im glad i could help

  • if you ant to change the color and add A title here is a few tips

    ok first you add this source above

    int myInt;

    Console.Title = "YOUR TXT HERE");

    Console.ForegroundColor = ConsoleColor.Red;

    Note you can also use Blue,Green,DarkGreen and mant other colors

  • First off...

    int myInt; right there is worthless...

    Second...

    Console.Title = "YOUR TXT HERE"); would cause an error because there is a random )

    The 3rd line you provided would compile but you didn't provide any specifics about how the line works...

  • above is my email address without the spaces

  • it doesnt let me leave an email address

  • I left my account on ur youtube account page

  • i didn't get any o.o

    send me a message

  • ive tried loads of time to leave a comment.but its not workin, see if this one sticks!

  • got this one

  • do u know the cod to get min and max for a set of numbers manually entered by a user,and aslo min and max for a set of random numbers. i know u have to use math.min and math.max somehow.... but im not sure of the entire code sequence, thanks if u get chance... : )

  • Do you have an AOL Messenger or Windows Live Messenger acc?

    It'd be easier to talk to you there.

  • is it possible to have an else statement in a switch or do i have to start again?

  • Since cases are pre-defined, I can't see why you would have an if statement, but it is possible.

  • Yea I can do the maths.... just not the programming

  • Like I said, switch statements are for pre-determined cases, if you want more flexibility, go with if else statements

  • the first switch is to have:

    case1: =random numbers

    case 2: =manual input

    then inside these 2 you can choose from the second switch:

    case1: scaled sum

    case 2: average

    case 3: min and max

    the switches work fine but i dont know how to find the above cases 1, 2 and 3. if u cud give me a little help id be very thankful : )

  • I gotta go to school now...Look into the Math class if you are just looking for the functions, but switch statements are meant for pre-determined cases =/

  • not sure if u got that reply i sent u a second ago... doesnt show it on the comment list?

  • I don't think so

  • ahhh, u cant fall from one case to another, does this mean i have to use a loop?

  • Hi thanks for the videos they're a great help.. but i was wonderin if u can help with this example... i have 2 primary switches (called option) which both contain a further secondary switch (called option2) inside them. does it matter if i call the cases in the priamary switch called 1 and 2, with cases 1 and 2 in the secondary switch. they seem to conflict eachother eventhough the switches have different names and i have enough breaks to seperate them, if u get chance to answer it wud be great!

  • I'd like to know why you need two switch statements actually o.o

    I'm not so sure about having one inside one, perhaps a theoretical snippet would help me understand your problem.

  • I like your lessons, they are explaining pretty much what they teach us in school.

    Thank you.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more