[Solved] C question

Hi, how do I get data to my application like this in C: my_application -u Usr_Name -p passwd
Last edited by phr (2008-08-15 10:40:02)

Use google...
http://www.cprogramming.com/tutorial/c/lesson14.html
http://www.d.umn.edu/~gshute/C/argv.html
http://computer.howstuffworks.com/c38.htm
http://msdn.microsoft.com/en-us/library … S.80).aspx   (yes I am posting a microsoft link!)

Similar Messages

  • How to undo "This solved my question" on this Using iPhone forum?

    How to undo "This solved my question" on this "Using iPhone" forum?
    new to this forum... how do you undo this?

    **** lol, In that case they should give a warning or some type of "You sure?" yes/no. I clicked completely by mistake. anyways...

  • Can't mark reply "This solved my question"

    In the email I received that notified me of a reply to my question, when I click on the link for either "This solved my question" or "This helped me", it takes me to Safari, but gives me the following:
    Apple Support Communities
    Unauthorized
    It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.
    If I sign in to the Discussions, and go to Your Stuff and choose the question, I see the Legend, but there are no buttons for me to mark a reply as "This solved my question" or "This helped me". 
    Any idea why I can't do this?  I'm running Mac OS 10.8.5, and Safari 6.0.5.  Could there be something in my Safari settings that is blocking this?
    Thanks,
    Marcia Bolsinga

    There have also been intermittent problems with the forum software lately and this might be causing this problem.
    Try going to your thread again and see if the symptoms change any,

  • Help me for solve this Question this is my problem

    help me for solve this Question this is my problem
    i installed EBS 11i fresh not vision
    i did cart of account and did set of book
    then assigned it with profile option gl set of books name
    and when enter to make ajournal appeare this messege
    [http://www9.0zz0.com/2009/10/06/03/232202588.jpg]
    [http://www9.0zz0.com/2009/10/06/03/634050066.jpg]

    Hi,
    Not sure why are you getting this kind of error (which is pointing to a URL with Jpg file) while creating a journal.
    Could you please bounce your server once and try..
    Please let us know if the error/warning stopping you to enter a journal in GL??
    We don't think profile option is a show stopper here.... We assume that you have assigned Sets of Books, MO: Operating unit & HR USer Profile option at Responsibility level correctly....
    Regards,
    S.P DASH

  • I am trying to use the "This solved my question - 10 points" and the "This helped me - 5 points" but they are NOT doing anything. How do I award the points ?

    I am trying to use the "This solved my question - 10 points" an the "This helped me - 5 points" but they are NOT doing anything. How do I award the points ?

    Are you talking about the "Legend" panel at the right of the window?
    Those text are just help texts explaining the reputation points. You can only award points, if you are the original poster of a question. Then you will see active buttons to award points below the answers you receive. See here for more information: https://discussions.apple.com/static/apple/tutorial/reputation.html
    Regards
    Léonie

  • How do I uncheck "This solved my question" on the Apple Support Communities forum?

    I checked an answer as "this solved my problem" when it actually did not, and I don't want anyone to be mislead.
    How do I uncheck "This solved my question" on the Apple Support Communities forum?

    You can't uncheck it. You'll need to post the question again.
    You could also just add the comment that it was not actually answered.

  • [SOLVED Noob question about web server permissions

    Hi I have setup up succesfully my web server. Now I am having some permission's questions/problems.
    First of all, I want the /home/httpd/home folder not to be show to the other machine users and only to root.
    I have created a user www-data and I have conf the apache file.
    This is my settings:
    My server directory is: /home/httpd and the permissions I have set:
    home dir:
    ~edited because solved~
    I have set .htaccess to some folders. I don't know If the permissions are safe or not. Can you help me?
    I think that I have different permissions to files and different to the folders...
    Thank you!
    Edited:
    And an example of my permission (phpMyAdmin):
    ~edited because solved~
    Last edited by k3rn31 (2008-02-28 22:26:09)

    This is more of a chat item for me, if you feel like it you can find me most of the time here at http://zaxter.org/xmpp.html if you have flash you can join via a simple click on connect.
    Sorry I've not been of much help to you.

  • [SOLVED] Weird question: pacman -Syu nothing to do for quite a while

    Hi,
    Perhaps this an odd question but I feel like for the past 2-3 weeks on two different computers "pacman -Syu" returns "x up to date" for all repos and "nothing to do" as the result. Could nothing really be upgradeable for this long? Can anyone else confirm this or has something gotten goofed? Is there a way to check actual versions with what I have to make sure things really are working properly? Even if nothing was upgradeable I can't remember the last time I saw core, extra, or community actually download without doing "pacman -Syyu". They alway say up to date and I'm thinking this just can't be correct...
    What might help for me to post? I haven't changed anything in pacman.conf or pacman.d/mirrorlist...
    Thanks,
    John
    Last edited by jwhendy (2010-09-02 14:20:53)

    x33a wrote:
    In the future, take a look here:
    https://www.archlinux.de/?page=MirrorStatus
    That's the link I keep losing. Bookmarking now...
    @jwhendy can you change the subject to include the word [SOLVED], please?

  • I have solved some questions, please check if my answers are correct

    Hi every Java aces,
    I have solved some programming questions, please check if my answers are correct. Thanks
    Here are the questions and the answers to each question
    (a) Write a method called add that takes three integers as parameters and returns an
    integer that is the sum of the three parameters.
    (b) Write a method called max that takes three integers as parameters and returns the
    largest of the three integers.
    (c) Write a method called printMax that takes three integers as parameters and prints
    the maximum value to the screen. The method should return nothing. The method
    should print the words \The maximum value is " followed by the maximum value,
    followed by a new-line character. You should try to use the max method that you
    wrote earlier.
    (d) Write a method called min that takes three integers as parameters and returns the
    smallest of the three integers.
    (f) Write a method called ticketPrice that takes one integer parameter representing
    the age of a person, and returns the price of a movie ticket in dollars (as a
    oating
    point value). Children under 6 get in for free (0.00), people that are 18 or under
    pay 8.50, senior citizens (65 or older) pay 6.50, and all other people pay 10.00.
    (g) Write a method called isDivisor that takes two integers as parameters and returns
    true if the rst parameter is a divisor of the second parameter or false otherwise.
    We say that m is a divisor of n, or that m divides n, if there is an integer k such
    that n = k m. Note that 1 divides every integer, and every integer divides i
    itself .
    here are my codes
    public class Methods
    // This is method (a)
    public static int add (int a, int b, int c)
    int sum = a + b + c;
    return sum;
    // This is method (b)
    public static int max (int a, int b, int c)
    int largest;
    if (a > b)
    if (a > c)
    { largest = a; }
    else
    { largest = c;}
    else
    if (b < c)
    { largest = c; }
    else
    { largest = b;}
    return largest;
    // This is method (c)
    public static void printMax (int d, int e, int f)
    int maxValue;
    maxValue = max (d, e, f);
    System.out.println ("The maximum value is " + maxValue);
    // This is method (d)
    public static int min (int a, int b, int c)
    int smallest;
    if ( a < b )
    if ( a < c )
    { smallest = a; }
    else
    { smallest = c; }
    else
    if ( b > c )
    { smallest = c; }
    else
    { smallest = b; }
    return smallest;
    // This is method (f)
    public static double ticketPrice (int age)
    double price;
    if ( age < 6 )
    { price = 0.00; }
    else
    if ( age <= 18 )
    { price = 8.50; }
    else
    if ( age < 65 )
    { price = 10.00; }
    else
    { price = 6.50; }
    return price;
    // This is method (g)
    public static boolean isDivisor ( int m, int n )
    boolean result;
    int check1;
    double check2;
    check1 = n / m;
    check2 = (double)n / m;
    if ( check2 == check1 )
    { result = true; }
    else
    { result = false; }
    return result;
    }

    Here are my codes
    // This is method (a)
      public static int add (int a, int b, int c)
        int sum = a + b + c;
        return sum;
      // This is method (b)
      public static int max (int a, int b, int c)
        int largest;
        if (a > b)
          if (a > c)
          { largest = a; }
          else
          { largest = c;}
        else
          if (b < c)
          { largest = c; }
          else
          { largest = b;}
        return largest;   
      // This is method (c) ?
      public static void printMax (int d, int e, int f)
        int maxValue;
        maxValue = max (d, e, f);
        System.out.println ("The maximum value is " + maxValue);
      // This is method (d)
      public static int min (int a, int b, int c)
        int smallest;
        if ( a < b )
           if ( a < c )
           { smallest = a; }
           else
           { smallest = c; }
        else
          if ( b > c )
          { smallest = c; }
          else
          { smallest = b; }
        return smallest;
    // This is method (f)
      public static double ticketPrice (int age)
        double price;
        if ( age < 6 )
        { price = 0.00; }
        else
          if ( age <= 18 )
          { price = 8.50; }
          else
            if ( age < 65 )
            { price = 10.00; }
            else
            { price = 6.50; }
        return price;
      // This is method (g)
      public static boolean isDivisor ( int m, int n )
        boolean result;
        int check1;
        double check2;
        check1 = n / m;
        check2 = (double)n / m;
        if ( check2 == check1 )
        { result = true; }
        else
        { result = false; }
        return result;
       // This is method (h)
      public static boolean isProduct ( double a, double b, double c )
        boolean result;
        if ( a == b*c )
        { result = true;}
        else
        { result = false;}
        return result;
         

  • [SOLVED] Some questions about a recently submited package (cgames)

    Hi there, when searching for ncurses sokoban-like games I ended up finding a great one that wasn't at the AUR yet. I submitted it (the package is named cgames) but I have some questions.
    1- The source code provided by the developer has 3 games. Should I have packaged each one individually? I decided this way because they are so small that I figure nobody would have a problem in having them all even when just wanting to play one of them (you can always change the make command in the PKGBUILD if you want a single game).
    2 - The original package had some compiling problems due to a function called getline (already existing in stdio.h) and I solved this problem with a sed command. Is this the proper way to do it? Should I have created some patch file or something?
    3- I'm 99% sure the game works in 64bit archs, but 99 isn't 100. Can anyone try it out for me, so that I change the PKGBUILD? I know I should have tested it but I don't have the time to install a 64b arch in the next few days.
    Thank you in advance
    Last edited by jlcordeiro (2010-03-29 15:33:58)

    Yeap, a bit
    Anyway, all done (i think)
    Second release:
    - Replaced sed command with a patch
    - Added x64 arch
    - Fixed a little bug with the configure command
    Last edited by jlcordeiro (2010-03-29 15:32:42)

  • Threaded Sudoku solver - Assignment question (NOT LOOKING FOR ANSWERS  )

    Hi All,
    I'm going to be upfront and point out this is an assignment that i'm currently working on and i'm not receiving much in the way of feedback from the class forums.
    This is currently a 4th year OO assignment for UNSW Australia.
    What I am having trouble doing is figuring out where my program is deadlocking or dying. There have been a number of requirements set out by the assignment, basically no synchronization, no locking. We are able to use volatile, atomic, immutable and thread-local objects. The task is to find all solution for a given N x N sudoku problem using X number of threads. I have successfully built the solver (X = 0) without too much trouble and I thought i had managed to modify the recursive algorithm to suit but unfortunately I think I have come unstuck.
    Any generalized tips would be appreciated when implementing threads that utilise checking flags to determine when the thread is finished processing.
    Kind Regards,
    Chris Gibbs

    Honestly, I think that recursion (as you stated) would be the easiest way to have solved this problem. But as you stated, threads must be used to solve this problem as a requirement of the project...
    You could easily launch a Thread each time instead of calling your recursive method... that could possibly result in a crap load of threads, but the idea would work.
    Definitely take a look at the SwingWorker class here if you're able to use J2SE 6: [http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html|http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html]
    I currently use it while gathering data from several websites at the same time. What I did was create and execute() X number of MySwingWorker objects to collect the data, while they are not complete (i.e. MySwingWorker.isDone() is false) I just Thread.sleep(...).
    Give it a try. It may suit your needs.

  • [SOLVED] Basic question about x2go, freenx, etc. compatibility

    My goal is to simply enable remote desktop on my soon to be headless server. Given the number of posts here at Arch explaining the trouble with freenx and the Arch support of x2go, I'm confused there is not more talk about their compatibility. And as I've just discovered, they're not:
    "Various open source terminal server projects such as x2go also use the NX protocol; however, x2go is not compatible with other NX servers and clients." (NX Technology)
    This leaves me in a bit of a pickle. CentOS doesn't support x2go, and Arch doesn't support freenx. What's the best interoperable solution then? Either a sever app which supports x2go or a client app that supports NXX?
    Last edited by xtian (2013-09-17 21:56:10)

    xtian wrote:Speaking of way of doing things. CentOSers are very persnickty about how you're supposed to maintain your system in terms of non-core packages etc. etc. And x2go is not coming up in the forum, wiki, or in the repositories (via the commanline tool yum). Read the response to my question about installing vim7.4. Hell, you can do _whatever you want_ to your system, but that doesn't mean anyone's going to help you when you run into trouble.
    That comment strikes me as perfectly reasonable. The comment is pointing out that you are trying to use the wrong tool to do the job. The tool in this case is the distro - CentOS is not intended to be used in this way (for this job). Of course, if you insist on using a spanner to hammer nails, you are free to do so. But you can't really expect your local DIY shop to help you use the spanner when the nails don't go in straight rather than suggesting you use a hammer instead.
    It is just like somebody who comes here and asks how they can stick with a known-stable set of packages while getting security updates. That's not what Arch is designed for so if you try to use it that way, you'll have a hard time. Of course, you are free to do so if you wish. But if you ask for help, you'll be pointed to another distro because that is the right answer.
    It has nothing to do with being "persnickty". The answer is the most helpful answer somebody can give you.
    Note: I'm assuming the description of CentOS, Fedora etc. is correct. I know the description of Fedora to be correct but I don't actually know anything about CentOS. But on the assumption that description is also correct, that answer is the most helpful answer somebody could give you, even if it is not the answer you wanted to hear.
    Last edited by cfr (2013-09-10 00:33:54)

  • Who can help to solve this question on MATERIALIZED VIEW and table?thanks

    Hi,dear all.
    If there is a MV with the same name as a table and they both exist in the same schema .
    e.g: MV : test123 and table : test123 (they have same name) exist in schema : schema123.
    when I run a sql : select * from schema123.test123; , what's the result of the execution?? MV or table which of them's data are populated???
    thanks in advance!

    solved.

  • [Solved] Swap Question

    I'm not really a n00bie, but no expert, either, and these are probably 'n00bie' Q's.
    Hardware: Asus A8V-MX mobo, Athlon64 XP 3500+, .5GB DDR 333, 250 GB WD Cavier (IDE), homebuilt.
    I realise I really need  1GB (at least) of real memory for the environment I run, but money is tight, and my mobo only has 2 DDR slots, so I'd have to buy a full 1 (or 2) GB and put my current memory in the closet.
    Arch (Don't Panic) is fully current (x86_64).
    I have 2 (relevant) partitions: /boot (40MB), and LVM  (16GB). both at the front of the drive.
    LVM: / (3.5GB, 78% in use); /home (.75GB; 36%), and swap.
    This build is about 2 months old. I boot to run level 3, and manually initiate X/KDE as needed, but I'm normally on the net; typically I'll have Thunderbird, a console session, and Firefox running most of the time. I'm bad about having a dozen (or more) Firefox tabs open (10 at the moment).
    I frequent DailyKos.com. DKos runs AJAX-enhanced Scoop, which either trashes Konqueror, or Konqueror trashes it - it doesn't crash, but rendering in that environment simply does not work - open a page at that site with 200+ comments attached. If Konqueror rendered large DKos pages properly, I'd be using it.
    DKos tends to have LARGE pages. I also have a large Yahoo 'home page' with 54 categories; I try not to leave Yahoo windows open, although the home page itself is almost always open. The nature of DailyKos is such that a lot of consecutive pages will be open, and left open, often for hours, constantly being updated by AJAX.
    I initially allocated .5GB to swap. System ran OK, but bogged down especially bad when I opened a lot of browser tabs. In that environment (according to free, watching the 'buffers/cache used' item, and the 'swap used' item), both real memory and swap would 'typically' be roughly 50% in use,
    I decided a few days ago to increase swap by 50% (to .75GB) to see the results. The system is running considerably smoother; it still gets bogged sometimes, but I realise with the hardware I'm running I can't expect miracles. Even with 3 or 4 DKos windows open, it's still quite quick.
    Increasing swap had what hit me as an odd effect. Again, I have 10 windows open (no DKos ATM, but the effect is normally the same with them, also). free shows about 60% of real memory in use, but only 5MB of swap is in use. Given equivalent environments, I would have expected swap usage to go UP if there was more available. It appears that real memory has gone up, slightly (~50% to ~60%), while swap usage has gone WAY done (~50% to < 5%; < 1% this moment).
    I'm an OLD ex-COBOL    programmer; I've done a few moderate-size (but not commercial, production-scale) projects in VB (pre-Linux) and understand the basics of OOPS, but I'm not a C/C++ programmer at all, and reading the source isn't terribly helpful. Why did swap usage decline so drastically? I'm certainly not complaining      - I'm simply confused,
    Does the kernel decide on a memory management scheme at boot, based on available real memory and swapspace? Why did increasing swap DECREASE swap usage, INCREASE (more subtly) real memory usage, resulting in better performance? Given the environment I'm running, is .75GB a rational/adequate swapspace size? Any suggestions on an optimal swap size? I realise I can experiment myself; I already have a bit, obviously, and and willing to do more experimenting (and will), but some direction as to what's happening behind the scenes would be helpful.
    Lastly, is 'free' (properly read) the most appropriate tool for monitoring this, or should I be looking at iostat, vmstat, something in /proc?
    TIA!
    Keith
    Last edited by grndrush (2008-02-22 19:07:38)

    I don't know the answer to all of your questions but I beleive this is how swap works, In order for the kernel to free up space on your Memory(ram), the kernel transfers data that is not currently being used to the Swap partition and when the data is needed again the kernel copies it back to your actual Memory. So Swap is only used when an application is in idle and no longer needs it's data to be directly in memory, then when that application is in use again the data is copied back to the Memory. The reason I beleive your swap usage is going down is because you're increasing the size, therefor the ratio's are not what they once were, you're still probably using the same amount of swap but since the size of the swap has been increased it doesn't seem like it. In a general rule a swap partition or swap file should be twice the size of the amount of actual memory you have, increasing your swap more than that really isn't going to make a change to how fast your system is since swap is only used when an application no longer needs it's data to be in ram because it's idle, so it's copied to swap until it's needed again. Hopefully this answers some of your questions, and for your last question I beleive it's a matter of opinion, each of those tools work equally well, I use 'top' myself.
    Last edited by twiistedkaos (2008-02-12 19:49:36)

  • In order to purchase in-app do i need Mastercard Credit card or Mastercard Debit card ? Please someone help to solve my question ! In India the possible way of purchase in appstore is Mastercard , Paypal

    PLease solve the doubt

    You can try adding it to your account, but not all debit cards still seem to be accepted - you may get a 'declined' message when you try to add it, in which case you won't be able to use it

  • Hai, please solve these questions

    Hai Experts,
        i have some problems please solve me
    1)   What is the equvalation group.
    2)   What i doc's
    3)   what is consolidation how it will take place.
    4)   What is meant by screen layout what it controls.
    5)   What is write up & write down.
    6)   Can we change rec account in miro.
    7)   How to pay securities Through APP.
    8)   Explain me how to pay through Electronil pata transfer.
          Please send me these answers to my mail id. my mail.id is     [email protected]   &  [email protected]

    Hello
    - Evaluation Groups: This is used in Asset accounting as an user field. The user can define upto 5 groups to classify assets. One is 8 digit and the others are 4 digits and can be alphanumeric. They have limited useage.
    - IDoc: It is a document with data header / data segments and status records
    Header
    Defines the content, structure, sender, receiver and status of the IDoc
    Data segment
    Consists of a "leader" (consecutive segment number and a description of the type of segment) and a field string 1000 characters long (containing segment data)
    Status records
    Describe processing steps of the IDoc up to the present
    - Consolidation: When the client more than one company codes, his requirement would be to consolidate all transactions of all company codes for group reporting. SAP offers consolidation module to deal with. Also, data from SAP from different company codes can be sent to an external interface, where consolidation is performed.
    - Screen Layout: Every transaction or every thing you see in SAP is based on some design and this design is controlled by a screen layout. We can manipulate the layout by modifying the rules in the screen layout. Every field in the screen can be either made suppressed or open for data entry.
    - Paying securities through APP is possible if securities are created as liabilities and its master data is a vendor or a customer. Otherwise, it is not possible
    - Electronic data transfer, for this you need to make special configuration so that a data medium file is created and sent to reciever through electronic means.
    Reg
    assign points if useful

Maybe you are looking for