God, i feel like a n00b again. How do i do exponents?

This is a discussion on God, i feel like a n00b again. How do i do exponents? within the C++ Programming forums, part of the General Programming Boards category; Since the AP cirriculum changed to JAVA, i have been totally c++ deprived for a long time. Now, i am ...

  1. #1
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281

    God, i feel like a n00b again. How do i do exponents?

    Since the AP cirriculum changed to JAVA, i have been totally c++ deprived for a long time. Now, i am writing an encryption algorithm, and can't remember how to do some things. The most pressing of which is exponents. How do I do 2 o the power of y?

    ~Inquirer
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

  2. #2
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    double pow( double base, double exp );

    Not very hard to find
    [code]

    your code here....

    [/code]

  3. #3
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    thanks. I'll bookmark that site.
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

  4. #4
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    the AP curriculum changed to Java THIS YEAR, so how have you been away from C++ at all?

    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    the AP curriculum changed to Java
    Eh...Don't remind me.
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  6. #6
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    actually, I'm quite curious why they did this? My old CS teacher was screaming at the paper that said they were changing and stuff. And Java will always, in my opinion, remain a piece of crap. I mean look at their Main function its of type VOID! And thats because its not actually EXECUTABLE code but rather interpretable code that the interpreter runs. argh- i'm not going to get into that, i would be here for hours counting off the errors and problems with it. I got better things to do than dog on Java, we all know it sucks and if you don't know just try it for a bit, that'll surely convince you.

    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  7. #7
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    If you want to flame Java, I'm sure a board search will give you many other threads about that, but we don't need it here.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  8. #8
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Did the College Board give a reason for its decision to change to a far worse language?
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  9. #9
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Originally posted by Lynux-Penguin
    the AP curriculum changed to Java THIS YEAR, so how have you been away from C++ at all?

    -LC
    they already gave the last C++ exams, and all the classes are now being taught in Java...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  10. #10
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    actually, I'm quite curious why they did this? My old CS teacher was screaming at the paper that said they were changing and stuff. And Java will always, in my opinion, remain a piece of crap. I mean look at their Main function its of type VOID! And thats because its not actually EXECUTABLE code but rather interpretable code that the interpreter runs. argh- i'm not going to get into that, i would be here for hours counting off the errors and problems with it. I got better things to do than dog on Java, we all know it sucks and if you don't know just try it for a bit, that'll surely convince you.
    I have yet to see a C++ programmer create a multithreaded GUI application that works on almost any platform .
    Last edited by Lurker; 08-31-2003 at 11:27 PM.
    Do not make direct eye contact with me.

  11. #11
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    Originally posted by Lurker
    I have yet to see a C++ programmer create a multithreaded GUI application that works on almost any platform .
    Works? Or crawls?
    [code]

    your code here....

    [/code]

  12. #12
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Originally posted by joshdick
    Did the College Board give a reason for its decision to change to a far worse language?

    as i always said.. It is important to learn concepts in college rather than languages...

  13. #13
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Originally posted by darksaidin
    Works? Or crawls?
    Depends on how good you are with Java .
    Do not make direct eye contact with me.

  14. #14
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Originally posted by vasanth
    as i always said.. It is important to learn concepts in college rather than languages...
    AP exams are usually given in high school... i think... that's when I took mine...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what race is god?
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 02-22-2004, 04:38 PM
  2. I feel like a n00b again, but...
    By Inquirer in forum Linux Programming
    Replies: 2
    Last Post: 04-05-2003, 03:17 PM
  3. GOD and religion
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 10-14-2001, 05:13 PM
  4. Foundations
    By mithrandir in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 10-05-2001, 02:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21