Return to Snippet

Revision: 16928
at August 19, 2009 00:22 by mustam


Initial Code
#include <stdio.h>

#define MAX    (512*512)

int main(int argc, char **argv)
{
	int i, n=0;
	double v[MAX];

	do i=scanf("%lf", v+n);
	while(i==1 && n++<MAX);

	/* as you please */

	return 0;
}

Initial URL

                                

Initial Description
e.g.
<pre><code>
seq 10 | ./a.out
</code></pre>

Initial Title
Set double-list from starndard input numbers

Initial Tags

                                

Initial Language
C