1 (edited by iceman_ 06-Mar-2008 06:43:03)

Topic: I Learnt C Language!

well partially lol

i wrote a program on gcc (which is a compiler and editor program)

and what it does is it works our simutaneous equations big_smile

this is it:

#include <stdio.h>
void main()
{
    float A,B,C,D,p,q;
    printf("input A: ");
    scanf("%f", &A);
    printf("input B: ");
    scanf("%f", &B);
    printf("input C: ");
    scanf("%f", &C);
    printf("input D: ");
    scanf("%f", &D);
    printf("input p: ");
    scanf("%f", &p);
    printf("input q: ");
    scanf("%f", &q);
   
    float det,x,y;
    det=(A*D)-(B*C);
   
    if (det>5e-40) {
        x= ((p*D)-(q*B))/det;
        y= ((q*A)-(p*C))/det;
        printf("x= %f \n",x);
        printf("y= %f \n",y);
    } else {
        printf("the two algebraic equations have degenerated to one single equation.");
        }
}

save it, run it and u can work out any simulataneous equation tongue (well most lol)

Fat chicks need loving too....    just gonna cost em tongue

Re: I Learnt C Language!

C blows. Learn C++

Then you can start w/ iostream.h!

Re: I Learnt C Language!

GCC isn't an editor.

"When we hang the capitalists they will sell us the rope." - Joseph Stalin
Lemming of Disappearance and

Re: I Learnt C Language!

yes it is, its called a compiler and editor

Fat chicks need loving too....    just gonna cost em tongue

Re: I Learnt C Language!

I'm quite sure El Bekko is a bigger nerd than you are...
And this forum is filled with programmer bafoons.

I'm guessing El Bekko is right.

This forum is stupid.

Re: I Learnt C Language!

Wow, I haven't seen C since 1996.
Justinian is right, learn C++

"So, it's defeat for you, is it? Someday I must meet a similar fate..."

Re: I Learnt C Language!

pascal ftw smile

Psychogenesis / Baracus / Coco


Thus, he proclaimed "By the power vested in me, I now declare you the 12th Earl of Toolchester, and what a tool you shall be"

Re: I Learnt C Language!

I love turbo pascal!

Forgot all of it though!

God: Behold ye angels, I have created the ass.. Throughout the ages to come men and women shall grab hold of these and shout my name...

Re: I Learnt C Language!

Nerds tongue

Retired forever.

Quote:
Attacking is time, banking saves the day.

Re: I Learnt C Language!

rofl
cobol, fortran, anyone? ^^

Re: I Learnt C Language!

lol big_smile whatever happened to old QBasic... oh yeah its crap big_smile

Psychogenesis / Baracus / Coco


Thus, he proclaimed "By the power vested in me, I now declare you the 12th Earl of Toolchester, and what a tool you shall be"

Re: I Learnt C Language!

I'm going to be a rebel: C#!

Re: I Learnt C Language!

> I'm quite sure El Bekko is a bigger nerd than you are...

The preferred term is 'geek'.

"When we hang the capitalists they will sell us the rope." - Joseph Stalin
Lemming of Disappearance and

Re: I Learnt C Language!

Fokker,

Indeed. And if he really wants to be a nerd he should learn Assembly!

Re: I Learnt C Language!

or RISC big_smile

Psychogenesis / Baracus / Coco


Thus, he proclaimed "By the power vested in me, I now declare you the 12th Earl of Toolchester, and what a tool you shall be"

Re: I Learnt C Language!

How long does it take to learn these? How many classroom hours?

The core joke of Hitchhiker's Guide to the Galaxy is that of course no civilization would develop personal computers with instant remote database recovery, and then waste this technology to find good drinks.
Steve Jobs has ruined this joke.

Re: I Learnt C Language!

If you have an aptitude for it you can learn C in a few weeks.

"So, it's defeat for you, is it? Someday I must meet a similar fate..."

Re: I Learnt C Language!

I knew some guys who did spreadsheets and simple calculators in C+

The core joke of Hitchhiker's Guide to the Galaxy is that of course no civilization would develop personal computers with instant remote database recovery, and then waste this technology to find good drinks.
Steve Jobs has ruined this joke.

Re: I Learnt C Language!

learn java tongue

i learned c, c++, java, assembly, xhtml in one year but completely gave up after that one year. gets really confusing and time consuming to debug.

i love you all!

Re: I Learnt C Language!

lol well i only need to learn c for my engineering degree big_smile

Fat chicks need loving too....    just gonna cost em tongue

Re: I Learnt C Language!

I've never used java in much detail (just JScript really) - whats the big differences between java and C++?... besides one being open and the other being Sun

Psychogenesis / Baracus / Coco


Thus, he proclaimed "By the power vested in me, I now declare you the 12th Earl of Toolchester, and what a tool you shall be"

Re: I Learnt C Language!

does it sound like this? yikes

http://nl.youtube.com/watch?v= Di-z4XSnus8

(remove the space between = and D, else it will give a smiley X( )

NEE NAW NEE NAW

Primo

Re: I Learnt C Language!

Lovely clip!!

God: Behold ye angels, I have created the ass.. Throughout the ages to come men and women shall grab hold of these and shout my name...

Re: I Learnt C Language!

Delphi 6. Visual Basic. Pascal. JSP!

[i]Tommy gun

Re: I Learnt C Language!

Vis Basic? pfft

Psychogenesis / Baracus / Coco


Thus, he proclaimed "By the power vested in me, I now declare you the 12th Earl of Toolchester, and what a tool you shall be"