test

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Duty
    MURCer
    • Apr 2000
    • 714

    #1741
    Originally posted by [GDI]Raptor
    main (int) {

    while(1) {

    PWC++

    }
    }

    */

    */

    That wont compile.... you forgot to declare your variable!!!! And no simicolon!!!! Also using "true" not "1" is easier to read when debugging... And whats with no comments?!?!?! Bad coding practices!!!! Lastly because there is no return value pass the value in by reference.

    /*******************************************
    * PWChelper.cpp
    * Description:
    * The prrrpose of the program to to realize the
    * accurate PWC for a given member.
    *
    * Use:
    * main (currentPWC);
    *
    * Arguments:
    * PWC: an integer value of the current Post Whore Count.
    *
    * Return Value: None.
    *
    ********************************************/
    main (int *PWC) {

    while(true) {

    PWC++;

    }// end of the while loop
    }// end of the main function

    Please use good coding habits!!!!



    Jeff
    Last edited by Duty; 30 April 2004, 17:05.
    -We stop learning when We die, and some
    people just don't know They're dead yet!

    Member of the COC!
    Minister of Confused Knightly Defence (MCKD)

    Food for thought...
    - Remember when naps were a bad thing?
    - Remember 3 is the magic number....

    Comment

    • Duty
      MURCer
      • Apr 2000
      • 714

      #1742
      Because the PWChelper is soooo helpful here is a java version. Now seeing that this is a difficult conversion, pay close attention.

      /*******************************************
      * PWChelper.java
      * Description:
      * The prrrpose of the program to to realize the
      * accurate PWC for a given member.
      *
      * Use:
      * int value = main (currentPWC);
      *
      * Arguments:
      * PWC: an integer value of the current Post Whore Count.
      *
      * Return Value: The new Post Whore Count.
      *
      ********************************************/
      static int main (String args[]) {

      int PWC = Int.ParseInt(args[0]);

      while(true) {

      PWC++;

      }// end of the while loop
      // Java doesnt like passing by ref in primitives so well use the return construct...
      return PWC;
      }// end of the main function

      While we're at it C#. Also a tough conversion....

      /*******************************************
      * PWChelper.cs
      * Description:
      * The prrrpose of the program to to realize the
      * accurate PWC for a given member.
      *
      * Use:
      * int value = main (currentPWC);
      *
      * Arguments:
      * PWC: an integer value of the current Post Whore Count.
      *
      * Return Value: The new Post Whore Count.
      *
      ********************************************/
      [STAThread]
      static int main (String args[]) {

      int PWC = Convert.ToInt32(args[0]);

      while(true) {

      PWC++;

      }// end of the while loop
      // C# doesn't like passing by ref in primitives so well use the return construct...
      return PWC;
      }// end of the main function

      Jeff
      -We stop learning when We die, and some
      people just don't know They're dead yet!

      Member of the COC!
      Minister of Confused Knightly Defence (MCKD)

      Food for thought...
      - Remember when naps were a bad thing?
      - Remember 3 is the magic number....

      Comment

      • SitFlyer
        Super MURCer
        • Aug 2002
        • 7178

        #1743
        That does not compute. Could be me

        Comment

        • Guru
          Super MURCer
          • Nov 1999
          • 6018

          #1744
          According to the latest official figures, 43% of all statistics are totally worthless...

          Comment

          • Guru
            Super MURCer
            • Nov 1999
            • 6018

            #1745
            Nice tits!

            This website is for sale! nice-tits.org is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, nice-tits.org has it all. We hope you find what you are searching for!
            According to the latest official figures, 43% of all statistics are totally worthless...

            Comment

            • ZokesPro
              Serial Murcerer
              • Sep 2000
              • 8325

              #1746
              Sig test...
              Titanium is the new bling!
              (you heard from me first!)

              Comment

              • Guru
                Super MURCer
                • Nov 1999
                • 6018

                #1747
                According to the latest official figures, 43% of all statistics are totally worthless...

                Comment

                • Guru
                  Super MURCer
                  • Nov 1999
                  • 6018

                  #1748
                  According to the latest official figures, 43% of all statistics are totally worthless...

                  Comment

                  • knirfie
                    MURCer
                    • Mar 2002
                    • 789

                    #1749
                    so, how's life in the lounge nowadays?
                    Main Machine: Intel Q6600@3.33, Abit IP-35 E, 4 x Geil 2048MB PC2-6400-CL4, Asus Geforce 8800GTS 512MB@700/2100, 150GB WD Raptor, Highpoint RR2640, 3x Seagate LP 1.5TB (RAID5), NEC-3500 DVD+/-R(W), Antec SLK3700BQE case, BeQuiet! DarkPower Pro 530W

                    Comment

                    • Byock
                      Super MURCer
                      • Jul 2000
                      • 2328

                      #1750
                      Good question. Anyone?
                      "I dream of a better world where chickens can cross the road without having their motives questioned."

                      Comment

                      • az
                        Moderator
                        • Feb 2001
                        • 9336

                        #1751
                        Moo!

                        AZ
                        There's an Opera in my macbook.

                        Comment

                        • Admiral
                          Super MURCer
                          • Aug 2000
                          • 3125

                          #1752
                          Moo yourself!

                          Comment

                          • ZokesPro
                            Serial Murcerer
                            • Sep 2000
                            • 8325

                            #1753
                            The Lounge has lost it's luster, IMO. Many MURCers have left and most have slowed down ont he posting and such. Still some hardcore MURCers left but mainly it's been quiet.

                            Off Topic:
                            nananananananananana Batman!


                            Moo!
                            Titanium is the new bling!
                            (you heard from me first!)

                            Comment

                            • Ajax
                              Super MURCer
                              • Oct 2002
                              • 877

                              #1754
                              Originally posted by ZokesPro
                              The Lounge has lost it's luster, IMO. Many MURCers have left and most have slowed down ont he posting and such. Still some hardcore MURCers left but mainly it's been quiet.

                              Off Topic:
                              nananananananananana Batman!


                              Moo!
                              So.... Where've you been Zokes?
                              --Insert something here--

                              Comment

                              • Ajax
                                Super MURCer
                                • Oct 2002
                                • 877

                                #1755
                                oh, P.S. Moo! to you too.
                                --Insert something here--

                                Comment

                                Working...