Results 1 to 15 of 88

Thread: C++ Help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Old-Ones Studios Cruise Control's Avatar
    Join Date
    Apr 2005
    Location
    Seattle, WA
    Posts
    3,799

    Default

    You can use google for something besides porn!

    EDIT1: I figured it out all by myself.

    Code:
    int main()//Initializes program
    {
     int cdn;     //Countdown start #
     int mr1;      //Number stored from modulus 2
     int mr2;      //Number stored from modulus 3
     int mr3;      //Number stored from modulus 5
     int mr4;      //Number stored from modulus 7
     for (int cdn=1; cdn<101; cdn++)
     {
      mr1=cdn%2;
      mr2=cdn%3;
      mr3=cdn%5;
      mr4=cdn%7;
      if (mr1!=0&&mr2!=0&&mr3!=0&&mr4!=0)
      {
       cout << cdn << ", ";
       outfile << cdn
      }
     }
     getch();
     return 0;
    }
    EDIT2: The coordinates for your Zanarkand Abes Logo are:
    moveto (10, 30);
    lineto (40, 0);
    lineto (60, 10);
    lineto (70, 30);
    lineto (80, 10);
    lineto (100, 0);
    lineto (130, 30);
    lineto (100, 50);
    lineto (110, 30);
    lineto (100, 20);
    lineto (80, 40);
    lineto (80, 50);
    lineto (90, 40);
    lineto (100, 90);
    lineto (70, 140);
    lineto (30, 60);
    lineto (60, 80);
    lineto (50, 80);
    lineto (70, 110);
    lineto (80, 90);
    lineto (60, 50);
    lineto (50, 40);
    lineto (60, 40);
    lineto (60, 30);
    lineto (40, 20);
    lineto (30, 30);
    lineto (40, 50);
    lineto (10, 30);
    floodfill(11, 30, fg);

    Thanks for the graphing idea edczxcvbnm .
    Last edited by Cruise Control; 02-17-2006 at 05:00 PM.
    Leave some shards under the belly
    Lay some grease inside my hand
    It's a sentimental jury
    And the makings of a good plan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •