Server Help

General Questions - C coding begening

a_bug - Wed Jul 21, 2004 11:31 pm
Post subject: C coding begening
first i don think i know how to spell "begenning" or w/e it is. anyway i have taken up C programing like i said i would and i got a book here. its making a simple program (well its telling me how to make one) . anyway ive got ms visual C++ toolkit and turbo C++ for my compilers. only it says to like use the command tcc or operation or w/e u call it and it says "tcc" not found. so this command line for visual basic where do i type it in, i alreayd have a text file and all that other stuff made. so where do i type this C:>cl /AL /Zi /W1 hello.c it also said some stuff about IDE and how tod od that shit, this is relally ocnfusing and i need help... new_let_it_all_out.gif new_let_it_all_out.gif new_let_it_all_out.gif im so damn mad ima go kill the crap out of some ppl in vice city
CypherJF - Thu Jul 22, 2004 2:20 am
Post subject:
It is spelled: Beginning.... you are 15, and live in the USA?
Solo Ace - Thu Jul 22, 2004 2:29 am
Post subject:
I was wondering the same...
Solo Ace - Thu Jul 22, 2004 2:30 am
Post subject:
...about what Cypher asked in the last part of his message. icon_razz.gif
Mr Ekted - Thu Jul 22, 2004 4:03 am
Post subject:
IDE = Interactive Development Environment. It's a full Windows app. You edit, compile, link, debug, execute, all in the a single app. And you don't have to type commands, you click BUILD, and it does everything.
CypherJF - Thu Jul 22, 2004 5:39 am
Post subject:
*toast to ekted* aye! IDE.. May they ever bless this programing realm..


lol

yes i've seriously lost it biggrin.gif
Bak - Thu Jul 22, 2004 1:56 pm
Post subject:
Code: Show/Hide
#include <stdio.h>

int main()
{
    int counter;
    int age = 15;
    char name[20];

    printf("I am from the USA.\n");

    printf("I am %i years old.\n",age);

    sprintf(name,"a_bug");

    printf("My name is %s.\n",name);

    for (counter = 1; counter <= age; counter = counter + 1)
    {
        printf("I have had a birthday for when I was %i.\n",counter);
    }

    if (age >= 21)
        printf("I can legally drink alchol in the USA.\n");
    else if (age >= 18)
        printf("I can legally drink alcohol in Canada.\n");
    else if (age >= 12)
        printf("I can legally drink alcohol in France.\n");
    else
        printf("I can't legally drink alcohol anywhere.\n");

    return 0;
}

CypherJF - Thu Jul 22, 2004 2:56 pm
Post subject:
rotfl

icon_smile.gif
a_bug - Thu Jul 22, 2004 4:11 pm
Post subject:
thats just halarious, but to Mr Ekted who tried to help, where is the file that i click to open up the page so i can click build?
a_bug - Thu Jul 22, 2004 4:17 pm
Post subject:
sry i forgot to say this in ^^^^ that post, but anyway, i was wondering if i could look at like continuum's files, just look, no touch cuz im sure id screw it up
Anonymous - Thu Jul 22, 2004 4:42 pm
Post subject:
Make sure your 'path' is setup correctly, that may be why it can't find 'tcc'.
You can get a command prompt/console by doing start -> run "cmd" or "command" (depending on what version of windows you have).
Then you can use cd (change directory) to get to the same directory as the compiler:
> cd c:\where\you\installed\tcc
> tcc sample.c -o sample.exe (I'm just guessing with the parameters to tcc)

Or:
> cd c:\where\my\source\code\is (maybe c:\windows\desktop)
> c:\where\you\installed\tcc.exe sample.c -o sample.exe
> sample.exe (run the program)
(funky stuff gets displayed here)

Visual basic and C are two different languages.
I don't think anyone is going to get ctm source.
Please don't double post if both posts were within a few hours of each other (use the edit button).
Solo Ace - Thu Jul 22, 2004 4:48 pm
Post subject:
Hey, drinking alcoholic drinks is legal in Holland at any age! icon_razz.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group