Thread: need help

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    2

    need help

    hi
    hav just started with c no previous experience with programming,
    hav been reading ur forum 4 last few hours, hav installed devc++
    hav just been coping code 2 see how it works i,e hello world, but cant get window 2 stay open read earlier thread posted but still dont work, i.e cin.get()

    also went 2 use tags 4 code but could'nt get them?

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Try this FAQ entry: http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    The key is using getchar().
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    2
    thank u 4 ur help, will this be the same for all c?

    and the tags fpr putting round code?

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    >will this be the same for all c?

    It's a shell thing, not a C thing. [edit]I may have misunderstood the question.[/edit]

    >and the tags fpr putting round code?

    http://cboard.cprogramming.com/misc.php?do=bbcode#code
    Last edited by Dave_Sinkula; 05-30-2005 at 03:27 PM.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    I think yes.
    getchar(). Is standard in <stdio.h>. So nevermind if you are in Linux or Win. just include <stdio.h> and getchar() will work.

    I use for Win (this is system dedicated), dont know what is for Linux
    Code:
    #include <stdlib.h>
    int main()
    {
         system("PAUSE");
         return 0;
    }
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You'd both know if you'd read the FAQ.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed