Confused by C , please help

Hi guys , I have to learn C since I started studying computer engineering... The thing is that I have a slight C ++ background and I am a bit confused...
I got a simple question:
how to read the user input in C ?
in c++ the only thing I had to do was cin >> variable_name;
now I have read like 10000 ways to read user input...
how can I asign user input into an integreer with C ?
I read about this and it works... but its not very conventional.
#include <stdio.h>
char base[100];
int n;
int main()
fgets(base, sizeof(base), stdin);
sscanf(base, "%d" , &n);
printf(" The integreer value is %d ", n);
return 0;
This works... but I think there must be some easier and conventional way... help please!

Nicolas,
I think you need to buy a good C book.
"The C Programming Language" (http://cm.bell-labs.com/cm/cs/cbook/) and "C: A Reference Manual" (http://www.careferencemanual.com/) are very good books.
Also, forget what you know about C++.
Mihalis.

Similar Messages

  • Cannot import files from ANY CD, confused and upset, please help!

    This has been ruining my whole week. I got a video iPod for Christmas, and installed iTunes on my father's computer to try it out. Everything worked great. I installed iTunes on my work computer(the only computer I have with a working hard drive), and while it recognizes both the iPod and the CDs I've tried to import to my Library, every time I click the "Import" button, I get an error message that says "Error occurred while converting the file "song title." The required file could not be found." What's more, iTunes deleted all the songs I'd loaded in at my dad's house.
    I installed the iTunes updates from this website. I used my computer's utilities to double-check that my DVD-ROM drive was up to date. I don't know what else to do! Please help.

    Here goes. Thanks for replying so quickly!
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    Dell Computer Corporation OptiPlex GX270
    iTunes 6.0.0.18
    CD Driver 2.0.4.3
    CD Driver DLL 2.0.3.2
    UpperFilters: GEARAspiWDM (2.0.4.3),
    Video Driver: Microsoft SMS Mirror Driver
    IDE\DiskWDCWD400BB-75FJA1_____________________14.03G14, Bus Type ATA, Bus Address [0,0]
    USBSTOR\DiskApple__iPod___________1.62, Bus Type USB
    IDE\CdRomHL-DT-STDVD-ROM_GDR8162B_______________0015___, Bus Type ATA, Bus Address [0,0]
    If you have multiple drives on the same IDE or SCSI bus, these drives may interfere with each other.
    Some computers need an update to the ATA or IDE bus driver, or Intel chipset. If iTunes has problems recognizing CDs or hanging or crashing while importing or burning CDs, check the support site for the manufacturer of your computer or motherboard.
    Current user is administrator.
    D: HL-DT-ST DVD-ROM GDR8162B, Rev 0015
    Audio CD in drive.
    Found 11 songs on CD, playing time 65:32 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 01:59:67
    Track 3, start time 08:15:62
    Track 4, start time 12:44:40
    Track 5, start time 15:01:71
    Track 6, start time 23:42:31
    Track 7, start time 31:21:28
    Track 8, start time 41:46:37
    Track 9, start time 47:20:17
    Track 10, start time 54:00:20
    Track 11, start time 61:24:54
    Audio CD reading succeeded.
    Get drive speed succeeded.

  • Arrays - confusing, wont compile, please help! ?:-)

    Hello everyone,
    I am new to the java forum, and I think its a fantastic idea. I am extremely stuck with my java, I have been workin on the same piece of code for at least 20 hours in total, 8 of which I spent in the last day, and to much of my frustration, the buggery code just wont compile. Im assuming many of you are probably laughing at me by now, lol, its ok, After my inital stress and hair pulling, all I could do was laugh. But I refuse to give up on the code after spending so long, and I have a feeling Im so close, its based around arrays, anyway I'll stop blabbering and post the code I have wrote, and if any of you could solve why it wont compile, it would be greatly appreciated.
    Heres my code:
    import avi.*;
    public class CDCollection
    private String title = "Unknown";
    private String artist = "Unknown";
    private int quan = 0;
    private double price = 0;
    CDCollection(double cdPrice, int cdQuan, String cdTitle, String cdArtist)
    title = cdTitle;
    artist = cdArtist;
    quan = cdQuan;
    price = cdPrice;
    return price;
    public static int findHighest(CDCollection[] cd) {
    int highestSoFar = -1; // lower than any valid
    for (int i = 0; i < cd.length; i++) {
    if (cd.CDCollection() > highestSoFar) {
    highestSoFar = cd[i].CDCollection();
    return highestSoFar;
    // instance method to write out cd details
    public void cdDetails(Window screen)
         screen.write("�"+price+"\t"+quan+"\t"+title+"\t"+artist+"\n");
    class CDMain
    public static void main(String[] args)
         Window screen = new Window ("CDMain", "bold", "black", 14);
    screen.showWindow();
         screen.write("CD List:\n\n");
              CDCollection cd1 = new CDCollection (10.99,11,"All Killer No Filler","Sum 41");
         cd1.cdDetails(screen);
    CDCollection cd2 = new CDCollection (12.99,8,"The best of","Sting");
         cd2.cdDetails(screen);
    Essentially wot Im tryin to do, is create a cd collection program, whereby details of the cd are entered (price, quantity, title and artist) and I would like to return statistical data on the cd collection, such as total number of cds, most expensive and cheapest cds etc. As you can I see I have tried to use arrays to find out the most expensive cd, but it still wont work! Please help, anyone, as Ive exhausted myself on this piece of code, Ive been through books, and I still cant bloody do it. :( lol
    Thanks in advance,
    All the best,
    Larry :-)

    Hi!
    First you never call your method findHighest.
    Second you do not have an array of your CD's. You only have two instances of it.
    Try this:
    CDCollection[] cds = new CDCollection[2];
    CDCollection cd[0] = new CDCollection (10.99,11,"All Killer No Filler","Sum 41");
    cds[0].cdDetails(screen);
    CDCollection cds[1] = new CDCollection (12.99,8,"The best of","Sting");
    cds[1].cdDetails(screen);
    int highest = CDCollection.findHighest(cds);
    And:
    public static int findHighest(CDCollection[] cd) {
    double highestSoFar = -1; // lower than any valid
    for (int i = 0; i < cd.length; i++) {
    if (cd.getPrice() > highestSoFar) {
    highestSoFar = cd[i].getPrice();
    return highestSoFar;
    And in your CDCollection class you need a method:
    public double getPrice()
    return this.price;
    I hope I did no mistake in here but it should work!
    Markus

  • Power Supply Confusion ...Please Help.

    So I will admit to not being able to understand the couple of guides on this forum concerning choosing a power supply ...they are REALLY wordy with ALOT of info that honestly seems irrelavant while not exactly dealing with how to choose (alot of bias over single vs mutliple rail and preferred brands).  While I aprreciate knowing what PSU's people with money and expereince can afford I am simply trying to find out the minumum so I can choose a little higher rated to maintaining capacitor life.
    I would like to ask if the current power supply I have will be sufficient (for at least a month) to the system Im building for mom.  Here are the components Im working with:
    MSI 880GM-E41 w/HDMI
    AMD PhenomII x2 560 BE (Calisto 3.3 GHz AM3 80w)
    4GB GSkill Ripjaw Series (2x2GB) DDR3 1600 (PC3 12800)
    500GB WD Caviar Blue (7200 rpm)
    CD/DVD -RW (DL) Drive
    DVD ROM
    PSU - PowerUp LP6100D
    DC Output 400w MAX (+5V=30A / +3.3V=28a / -12V=0.8a / +12V=25a / +5V sb=2a / -5V=0.3a)
    Total Output 230w (this is really the only value Im confused over)
    I have another PSU to use as well:
    Tiger Pro LC-B350 ATX
    MAX TOTAL WATTAGE 350W (+5V=35A / +3.3V=28a / -12V=0.8a / +12V=16a / +5V sb=2a / -5V=0.3a)
    (I think this one might hold??)
    At a guess, Im a little under my actual requirements, but Im confused as to whether I have a 400W or 230W PSU.  I have full intention on replacing the PSU but need to know if this one is suficient or if it will cause damage if used for only a month or less. I also understand brands mean alot but at this point am more concerned about sufficient power requirements.
    *** I even tried the calculator available via the link but couldnt find my processor in the selection field.
    https://forum-en.msi.com/index.php?topic=31880.0
    https://forum-en.msi.com/index.php?topic=116580.0

    Quote from: Mike on 29-July-11, 03:31:14
    Carvetii,
    I wouldn't touch a $20 PSU if someone cut me a million dollar check to do so...well, I might touch it, but I wouldn't ever use it.  The PSU is sold for $20 for a reason...it is made with cheap components.  I hope yours works for you and doesn't have any issues--like take out your whole system.
    MyWonThing,
    What are your plans?  Do you plan on always using onbord video, or are you going to get a discrete VGA in the future?  Do you want a PSU to handle what you have now only or something that you can use in an upgrade, add-in VGA or when you build a newer system?  A Corsair CX400 should be plenty for what you have now, but, for future proofing, depending on your plans, you may want a Corsair CX600 or TX750(or bigger if you plan on a high-end VGA).
    I understand why lower priced parts make people nervous, but I make hardly nothin as a disbaled veteran.  My plans for the described setup are so a 60+ year old can check email, etc.  NOTHING TO MUCH BEYOND THAT.  If I do add a VGA card it will simply be to allow for dual monitor output and will not be chosen for high end graphics capbility.  I dont mind spending as much as $40 for a reliable PSU but again, I get about nothing per month, no overtime ever, and do not have the luxury to choose a high end power supply, nor will this system ever be taxed enough to matter.
    BTW...Price has VERY little to do these days with reliability  .  The current MoBo Im using I got new, for cheaper than most others on the market when obtained and it is not going to be fully retired but used as a *nux set up  , as it still runs like a champ (  OORAH MSI!!!  ).  Its still pretty much a stable board, just time to upgrade for OS compatibilities.  Also, take a look a t the PS3  .  Very expensive (especially at release) yet some of the cheapest components and solder out there were used , and its just gotten cheaper(the parts).  I know some of the components in said console ARE high quality but there is still alot of other crap that the manufacturer simply skimped on  , for whatever reason but none the less, they went with very inferior parts.
    So with all that being said, Im AM NOT concerned about brand.  This is something I will research.  I was confused as to whether I had a 400W or 230W PSU, but Im pretty sure its a 230W (if Im wrong let me know on PSU#1).
    I am more interested in the minimum power rating required for listed set-up.  NOT BRANDS for it.
    Quote from: MyWonThing on 29-July-11, 01:41:39
    MSI 880GM-E41 w/HDMI
    AMD PhenomII x2 560 BE (Calisto 3.3 GHz AM3 80w)
    4GB GSkill Ripjaw Series (2x2GB) DDR3 1600 (PC3 12800)
    500GB WD Caviar Blue (7200 rpm)
    CD/DVD -RW (DL) Drive
    DVD ROM
    PSU - PowerUp LP6100D
    DC Output 400w MAX (+5V=30A / +3.3V=28a / -12V=0.8a / +12V=25a / +5V sb=2a / -5V=0.3a)
    Total Output 230w (this is really the only value Im confused over)
    I have another PSU to use as well:
    Tiger Pro LC-B350 ATX
    MAX TOTAL WATTAGE 350W (+5V=35A / +3.3V=28a / -12V=0.8a / +12V=16a / +5V sb=2a / -5V=0.3a)
    (I think this one might hold??)
    While I wont be using the minimum , it will help a fixed income veteran possibly save money from getting more than this needs .
    Thanks guys 

  • I am so confused with icloud, please help!

    I realise MobileMe is going, so to carry on syncing I need to get icloud, but am I right in thinking I need Lion?
    I have 10.6.8 on my iMac at the minute, so what is the next step and how do I keep it the way it was beacuse everything was working just fine!
    Although having said that since the update last night my iPhone doesn't want to sync with my ical! I don't suppose anyone can help with that? I suspect it's setting in the phone as ical syncs to iPhone just not the other way round?!
    Please can any help, it's driving me potty!
    Thanks in advance,

    I think I mean syncing ical from my email between my mac and iphone. It's all through mobileme as far as i'm aware. Hence why Ive been going mad with all this icloud chat and the ios 5 update last night!
    Thanks

  • Am totally confused by networking - please help

    One area that I feel I really lack anything but the most basic knowledge of is networking. Any help is greatfully received. I've done reading around it but i'm still stumped on some basic points.
    Okay in system preferences>sharing it says "Computers on your local network can access your computer at: Macintosh.local" - fine. It also says "Other users can access shared folders on this computer, and administrators all volumes, at afp://Macintosh.lan/ or "Myname Surname’s Computer". What is the difference between these three?? Presumably I would be able to use IP to connect to make this 4 - are these different protocol or do they allow different levels of access?
    Secondly, and possibly relatedly, i connect to my laptop (g4 i book 10.3.9) using apple K in the finder by typing laptop.local & following from there. no probs. However if click the laptop icon in the sidebar of the finder and click on the icon I get a "connecting before it times out. I've noticed the sidebar also being less stable on other networks- is this annecdotal or usual?
    Thanks for any response in advance.....

    Yes they are different protocols.
    Your Mac and other Macs will try to find other Macs on the LAN using Bonjour.
    This tends to be the MyName Surname Computer's name way.
    If you turn On Windows File Sharing in System Preferences > Sharing you will also see Windows machines by there Computer name in the side panel of the Finder.
    IF you go to the Finder Menu bar Go menu and Go to Server you can Browse or use various Protocols to contact other computers on your LAN.
    AFP (Apple File Protocol) is Off be default it most newer Macs but is a way to start the line.
    Starting the line smb:// will get you the Shared Folder on Windows Machines and other Macs with Windows File Sharing turned On.
    Doing it with the Users Name bit will tend to get the Shared Folder and access to any Web pages you have in your Sites Folder.
    Using the computer's Hard Drive name will tend to be able to access Web sites held in that part (Hard Drive/Library/Webpages)
    I would tend to agree that Bonjour discovery did seem simpler and smoother in 10.3.x than later OSes.
    I am sure someone will give you a more detailed response soon but this should get you going.
    4:02 PM Saturday; December 20, 2008

  • Extremly Confusing Library Problem - Please Help

    Ok, I am so confused by this. I drag my music folder to my itunes library and all my music is added with one HUGE problem. Randomly I get anywhere from 2 to 7 or 8 copies of each one of my songs. Only for particular albums though. Some are fine and there is only one of each song, but others I've got like 6 copies of the same song! They are the exact same song, they aren't from different albums or anything like that, they are somehow continually duplicating themselves and I don't know what to do. I tried using the Add to Library... too with the same results.
    Any idea how I can fix this so I only have one copy of each of my songs in my library? Any solutions would be greatly appreciated thanks a lot in advance.

    Keep in mind that iTunes is an extremely sophisticated visual and organizational aid, but the songs themselves are on your hard drive. It's possible that you might have more than one copy of the same song on your hard drive and each of those copies has a different name. It is also possible that the same song with the same file name is duplicated in several different folders. Another possibility is that you have the same song in more than one format (such as mp3, wav, aiff, m4a).
    In order to clean up your hard drive and hence your iTunes, find the songs on your hard drive in the Finder or by getting info in iTunes by right clicking on the song and see if you have the same song under a different name. For instance, if you have, say, "Midnight Rambler" by the Rolling Stones duplicated in your iTunes applications, it might turn out that you have 06MidnightRambler-RollingStone.mp3, MidnightRamblerStones.mp3, and RollingStones-MidnightRambler.m4a. Or it is in multiple folders, say "Rolling Stones" and "Let it Bleed."
    It appears that the newest version of iTunes gives you the option of deleting the song itself from your hard drive (moving it to the trash), as opposed to just removing it from the library.

  • ITunes library.itl file is locked?? please help

    I downloaded iTunes and tried to open it and it says that the library.itl file is locked on a locked disc or I do not have write permission for this file.....very confused can someone please help me.....Thanx

    first check to see if the itunes .itl library file, or any folders in the folder heirarchy above it have somehow been set to "read only". if they have, try switching that off.
    What are the iTunes Library files?
    if no joy with that, see:
    iTunes for Windows: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes

  • Please HELP me with installation - java.lang.noclassdeffounderror:

    Please Help! For school we need to install JAVA. I installed JDK 5.0 and id did not work. I got exception in thread "main" java.lang.noclassdeffounderror: hello. I was using Texpad to write, compile, and run it. In short I deleted all JAVA 5.0 using My Computer program removal. I installed JAVA 1.4..2_10 and I am still getting that same error. I want the JAVA 1.4..2_10 to be installed and not JAVA.5.0.
    My System Variable CLASSPATH still shows C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip. My System Variable PATH has nothing as far as JAVA in it. MY PATHEXT has JS and JSE amoung other things in it. My System Variable QTJAVA still has Files\Java\jre1.5.0_03\lib\ext\QTJava.zip in it.
    Please tell me step-by-step how I can fix this. I never updated these variables before. What do I need to type and where? What do I need to get rid of or change?
    PLEASE HELP!
    Thanks,
    Jim

    I left my System variable classpath --> C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip I left my QT JAVA --> C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip I added Path --> ;C:\j2sdk1.4.2_10\bin and then restarted my computer. I added hello file in C:\j2sdk1.4.2_10\bin and tried to compile it under a new name and it would not compile. it gave me the error below. I was able to compile other java program in my other folder in a different directory. I am still getting the same error messages/ Anything else I should try? IS there anyplace or person I can call who would come and fix this? Something is wrong. This should not be giving me this much trouble. All The Java directions on other websites tell me to do different things. I am so confused... please help.
    I get this during the compilenow:
    javac: invalid flag: C:\j2sdk1.4.2_10\bin\helloa.txt
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -help Print a synopsis of standard options
    Tool completed with exit code 2
    Jim
    If you can fix this I will give you 14 points. I hope it is enough. I just want this to work for school.

  • How can I create a new iCloud account on a preowned phone (with that persons account signed on) without deleting their whole account entirely (on all devices)? Totally confused, please help:-(

    My mum has upgraded to the iPhone 5, she has given me her 4S with a new contract etc. the problem is all her contacts are still on here and calendar dates etc . All from her iCloud account. I have my own account but I don't know how to get my phone on that without deleting her iCloud account entirely and from all devices and her new phone. Please help, I'm probably confusing things more but I really need some help

    Just delete her iCloud account from (now) your iPhone 4s - doing so will delete it from your phone and your phone only.  It will do nothing to any of her devices with her iCloud account set up on them.
    Then login in with your iCloud account login to set up your iCloud account on that iPhone 4S.
    If you want to set up the iPhone 4s with a clean slate, just delete her iCloud account, then go into general settings, under the reset tab and select "erase all content and settings".  Then run through the activation and setup dialogues with your own information.

  • HT1338 I have a Mac OS X Version 10.5.8. Just updated my iphone 5 & can not back anything up from itunes because my software on my mac is not up to date. What software should I now have to be up to date? Im so confused by all that is offered! PLEASE HELP

    I have a Mac OS X Version 10.5.8. Just updated my iphone 5 & can not back anything up from itunes because my software on my mac is not up to date. What software should I now have to be up to date? Im so confused by all that is offered! PLEASE HELP ME.

    Hi
    You need to upgrade to the next OS 10.6 Snow Leopard by purchasing the DVD online.
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    and once installed, use Software Update
    - to update to 10.6.8
    - and update your iTunes.

  • I have installed the new up to date itunes which i can open on my PC, however when i connect my ipad or iphone i get an error saying i cannot use the device as the require software isn't installed?? I'm very confused please help......

    I have installed the new up to date itunes which i can open on my PC, however when i connect my ipad or iphone i get an error saying i cannot use the device as the require software isn't installed?? I'm very confused please help......

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • :s confused with my iPod, PLEASE HELP!?!

    Okay, well this is how it goes; My brother is good with electronics, and fixed this iPod for his friend. His friend didn't want the iPod mini anymore, so my brother gave it to me. The problem is the battery needs to be charged to turn on, but it's showing up the low battery sign, but it's not showing that it's charging. I have no idea if it's charging or not, yet it's plugged into my computer, so I'm kind of confused and mad, and it's not showing up on my computer or iTunes.I can't take it back because I don't even know when he got it. Please help me out here!
    Thanks,
    Ujenna.

    First of all, try another port on your computer. Some ports are not connected direct to the motherboard and do not recognize the iPod as well as those that are. Reset the iPod each time you connect it to another port.
    Then try with the iPod in forced disk mode.
    Putting iPod into disk mode.
    Still no joy, see these.
    iTunes 7 doesn't recognize the iPod.
    Your Windows PC doesn't recognize iPod.
    iPod appears in Windows Explorer but does not appear in iTunes.
    iPod does not appear in iTunes.
    Fast user switching in Windows XP is not supported.
    My iPod won't turn on.
    iPod battery doesn't charge.

  • I want to swap my 3rd generation 64gb 3G ipad, for the same as a mini. However cellular is confusing me, can I get 3G on a cellular ipad? Please help

    I want to swap my 3rd generation 64gb 3G ipad, for the same as a mini. However cellular is confusing me, can I get 3G on a cellular ipad? Please help.  Want to put the sim I take out of the ipad into the mini. On the apple shop website, the cellular model is £100 more expensive then the 3G one, however in currys it only sells cellular. I do not want to make a mistake it's a lot of money.

    3G and cellular are different ways of referring to the same thing, they can use the mobile networks for data. The cellular/3G models are £100 more than the wifi-only version.
    The 3rd gen iPad uses a micro-sim card, the Mini iPads use smaller nano-sim cards, so you won't ba able to use the same sim card.
    Sim cards used in each device : http://support.apple.com/kb/HT5554

  • I downloaded a song on iTunes, it won't play (it's name is grey), it shows up in purchased and says "play", but it won't play, I can't delete it, and I can't re-download it.....this is confusing please help!!

    I downloaded a song on iTunes, it won't play (it's name is grey), it shows up in purchased and says "play", but it won't play, I can't delete it, and I can't re-download it.....this is confusing please help!!

    Hello CTGame,
    Welcome to Apple Support Communities.
    It sounds like there’s a grayed out song in your iTunes library that can’t be played or downloaded again like other past purchases. Try taking a look at the article linked below and verify the computer is authorized to play that content.
    How to troubleshoot iTunes Match - Apple Support
    Songs appear to be missing
    Songs containing DRM (Digital Rights Management) might not appear in iCloud, or might appear grayed out. This can occur if your computer is not authorized to play that content. Try authorizing your computer, then manually update iTunes Match. To determine what Apple ID your computer needs to be authorized for to play a specific song:
    Locate and select the song in your iTunes library.
    Choose File > Get Info.
    In the Summary tab, locate the Account Name field in the right column. Write it down.
    Click OK.
    Choose Store > Authorize this Computer.
    Type in the account name from the Summary field and enter its password. Click Authorize.
    Choose Store > Update iTunes Match.
    So long,
    -Jason

Maybe you are looking for