2 karma · joined Jan 6, 2012 (14y ago) · 14 submissions
comment 14y ago · link · parent
+policing my web site to a point I can't manage it.
-well your website can't be controlled and needs to be shut down
+Small time businesses use user created content to advertise cheaply and won't
be able to when these sites shut down or big business shuts you down with the excuse
of violating their IP
-Sites and small businesses will only be taken down when they are obviously
designed to infringe on others IP
+The security of the internet will crumble with DNS blocking from other countries
-How?
I want wording to the point where they say, "Well, damn! I guess you're right."comment 14y ago · link · parent
#include <iostream>
using namespace std;
int main()
{
int max;
cout << "How big do you like it?\n";
cin >> max;
if(max<0||max>30)
return 0;
for(int row=0; row<=max; row++)
{
cout << 1 << " ";
unsigned int out=1;
unsigned int last;
unsigned int next=row;
for(int i=1; i<=row; i++)
{
last=out;
out=last*next/i;
next--;
cout << out << " ";
}
cout << endl;
}
return 0;
}
EDIT: there we go :D small errors correctedFor those that are just brainfucked with wikipedia's explanation 1. Wikipedia sucks as explaining math. Never use it to look something up that deals with math. 2. The best explanation is like in the middle of the article, "Calculating an individual row or diagonal by itself"... "For example, to calculate row 5, r = 6. The first value is 1. The next value is 1 × 5/1 = 5. The numerator decreases by one, and the denominator increases by one with each step. So 5 × 4/2 = 10. Then 10 × 3/3 = 10. Then 10 × 2/4 = 5. Then 5 × 1/5 = 1."