I would like to know how can i compare a switch case 1 and case 2 in C# is it possible to do that? obs i am a begginer :)
i would like to know how can i compare a switch case 1 and case 2 in C# is it possible to do that? obs i am a begginer :) I tried to do it with search and sort but it did not go well
let me give you an example if you add a word case 1( lagg ord) how can i compare that word with case 2 words ( in case 2 already exist 5 words)
here is the my program
using System;
namespace ConsoleApplication1
class Program
static void Main(string[] args)
//Meny
Console.WriteLine("\n HÄNGA GUBBE\n");
Console.WriteLine(" 1) Lägg till ord");
Console.WriteLine(" 2) Lista alla ord");
Console.WriteLine(" 3) Spela");
Console.WriteLine(" 4) Avsluta");
bool utgång = false;
do
int Valet;
Console.Write("\n\tVälj 1-4: \n ");
try
Valet = int.Parse(Console.ReadLine());
catch (Exception)
Console.WriteLine("Du skriver fel character!\n" +
"\nSkriv bara mellan 1 och 4");
continue;
switch (Valet)
case 1:
Console.WriteLine("\n lägg ett till ord! ");
var input = Console.ReadLine();
break;
case 2:
Console.WriteLine("\n Lista med alla ord :\n");
string[] array = { " Lev", " Skratta", " Gledje", " Gråt", " Njut" };
Array.Sort<string>(array);
foreach (var c in array)
Console.WriteLine(c);
Console.WriteLine("\n");
break;
case 3:
string guesses, bokstäver;
Console.Write("\n Hur många fel får man ha? ");
guesses = (Console.ReadLine());
Console.WriteLine(" Utmärkt, då spelar vi!\n");
Console.WriteLine(" Felgisningar :" + "0/" + guesses);
Console.Write(" Gissade bokstäver ");
bokstäver = (Console.ReadLine());
Console.WriteLine("Aktuellt ord");
Console.Write("Gissa bokstav : " + bokstäver + " \n");
break;
case 4:
Console.WriteLine("\n HEJ DÅ! \n");
Console.Beep();
utgång = true;
break;
//avbryter while loopen, avslutar spelet
} while (!utgång);
Similar Messages
-
I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..
-
I lost my Iphone 3GS. My brother has given me his Iphone 4 now. We both use the same notebook to update and sync our phones. I would like to know how can i reconnect back to my account using the Iphone which was previous used by my brother.
If you are saying that you both have iCloud accounts and use the same icloud ID, then yes, the contacts will be deleted. The idea is that all devices using the same icloud ID are kept in sync. You need to use different IDs. You can keep the same iTunes ID so you can share the songs and apps. But use different icloud IDs.
-
I have a Samsung S5 and I got an email with a ringtone on it so I would like to know how can I put that ringtone on my phone from my email?
Did the ringtone come as an attachment? If so just save the file. If you downloaded it when you opened the email it should be in your downloads.
-
I would like to know how can I delete emails from my email block have more than 8000? Thank you.
I want to say, delete the 8000 not one by one, or 50 in 50... Minimum of 200 by
200 -
I would like to know how can I have the templates from premiere as customer of adobe creative cloud
I would like to know how can I have the templates from premiere.
I am Adobe Creative Cloud member.
Thanks
Dmitre RaposoNot sure what you are referring to. If you have any files MIA, simply re-download and reinstall the app via AAM.
Mylenium -
Hi, I would like to know how can I recover a document from pages that I didn't save anytime and instead of saving the doc I clicked the delete button. Is there any way to recover it?
Regardless of application, the first step that I take is to save and name the current document — even if it has no content yet. With Pages, this good habit enables autosave. As you add content, your document revision history is restorable via the File Revert To menu. The delete key has the same document foreboding as only teaching a pet raven to speak "Nevermore."
-
I am trying to update my account in iTunes but it asked me to spend all the money that I do have on my account before !! for that reason I would like to know How can I spend 0.16 $ in iTunes ?
jonathanfrommcallen wrote:
I am trying to update my account in iTunes but it asked me to spend all the money that I do have on my account before !! for that reason I would like to know How can I spend 0.16 $ in iTunes ?
How are you trying tp "update" your account?
Changing countries? -
Hi Mates!
I had to format my machine.
Thereforeso, I would like to know how can I re-download OS Lion without paying for it again.
Thanks a lot.ludzf wrote:
I had to format my machine.
Thereforeso, I would like to know how can I re-download OS Lion without paying for it again.
If you used your 10.6 install disk to wipe the drive completely:
Then your going to have to install 10.6, Software Update to 10.6.8, go to the AppStore and log in with your AppleID and hold on option key while clicking on Purchases to redownload the Lion installer like you did before.
When you install OS X Lion it creates a hidden partition on the drive that you can hold command and r (option) keys down while booting to load it, it's called Recovery HD.
It has Disk Utility which can erase the Macintosh HD and also install Lion again from Apple's servers with your AppleID and password.
Your AppleID ties you to the install OS X, because it was used to purchase it earlier from AppStore. -
I got my ipod touch (4th generation) on March 20, 2012, and it fell out of my pocket when I jumped. Unfortunantly, the screen cracked very badly, and it has become a hazard, not only for the many cuts I have gotton on my fingers from the ipod screen's broken glass, but for what I type (because the screen is cracked so badly, I cannot see what I am doing). The ipod has become pointless to own in its condition. I would like to know how much the repair would be, where the best place to get it done is located, and how much future insurance would cost in the United States. Thank you for you time.
See "Repair Pricing."
No clue where you can purchase insurance but it's probably not worth the price. -
I have a iMac, I have a scanned application that I Iave inputed data on, I need to sign the application. I need to know where can I access this feature (electronic signature) and input it on the scanned document. Thanks.
jonie from caHi Jonie,
See if these help...
http://osxdaily.com/2011/08/17/sign-pdf-with-digital-signature-mac-os-x/
http://scansnapcommunity.com/tips-tricks/1416-digitally-signing-pdf-documents-us ing-adobe-acrobat-9-an-introduction/ -
I want to make another panel appears and runs, but i don´t want to use a subpanel. So, i would like to use somenthing similar to Loadpanel and Displaypanel, that you can use in Labwindows CVI, but in Labview, is ti possible?I hope your answers, thank you!!!
Hi Bichillo,
I posted an example here.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=50650000000500000014570100&HTHREAD=000087828&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
It demonstrates how to do what you are asking.
I do not mind you laughing at the code.
Have fun!
Ben -
Please help me It is drivng me crazy having all these contacts
Go to SETTINGS, then ACCOUNTS AND SYNC select facebook and uncheck sync contacts and then do the same for yahoo.
back up contacts w/ backup assistant that is under accounts and sync.
then go back to SETTINGS then APPLICATIONS then MANAGER APPLICATIONS then ALL select PEOPLE then clear data. this will erase your contacts so make sure you have it backed up.
then go to SETTINGS then ACCOUNTS and SYNC then backup assistant and sync now and this should put all your contacts back on your phone without being relinked to facebook or yahoo at least i remember it being something like this when i was trying to get rid of facebook being linked to my contacts on my Tbolt. -
Would like to know, how to add cover to doc. in Numbers '11..
I'm working on a budgetoverview and I would like to know how can I add a cover/frontpage to my document.
So that I can recognise it, trough my other spreadsheet document on my MacBook and iPhone.
something like the picture shown bellow, which Apple show's on their website.
please help me out!Cx,
Add a new Sheet to your document and Delete the default blank table from that sheet. Then add your graphic or other visual content to this new sheet. Lastly, Drag the new sheet tab to the left side of the row of tabs. This tab on the left will be the one that is displayed on the file icon.
Jerry -
HT1977 I would like to know how do I re-download the movies I purchased to my new computer?
I would like to know how can I re-download my movies that I purchased over a year ago to my new computer?
Assuming you are in an area where repeat downloads are allowed, and the content is still in the store... authorize the computer to your account, sign into the store, then go to iTunes Store > Quicklinks > Purchased > Movies > Not on this computer > Download all.
tt2
Maybe you are looking for
-
Error while Scheduling Java Jobs - IDM
Hi I am getting the below error when I try to schedule a Java Job for every hour or every minute. However the same job runs perfectly fine when I put in On Demand and run it manually. I even tried with the Dummy Job and it spits the same error. Below
-
Is there some preferences setting to be able to control the ordering of choices for the right-click menus?
-
Tree control - How to get the full path of selected Item in tree control
I am Flex newbie. When the user clicks the particular item in the tree control I just wanted to get it name along with it's full parent. Here is my XML var dirXML:XML=<root basename="/home/tcegrid"> <Directories> <Dir Name=".autosave" /> <Dir Name=".
-
Hello Everybody, I have a new MacBook Pro Running Mac OS X 10.6.2 and cannot see any of my windows computers on the network, I can use the connect to server option but it is annoying to have to keep using that method. Thanks for all of your help! Mes
-
Problem with Payment Information
Hello, there is some problems with my billing information i can't finish my Payment Method is decline. Please help me.