Search found 4 matches

by hello world
Sat Aug 03, 2002 7:50 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116609

help,help,help:about data input of 102

1> when i use c++ :
[cpp] while(!cin.eof()){for(i=0;i<8;i++) cin>>n;}[/cpp]
i got wa;
2>when i use c++:
[cpp] while(cin>>n[0]>>n[1]......>>n[8]){};[/cpp]
i pass;
3>when i use c:
[c]while (!feof(stdin)){};[/c]
i pass;
why? can somebody tell me?
by hello world
Fri Aug 02, 2002 6:49 pm
Forum: C++
Topic: how to use function "random" in vc6.0
Replies: 1
Views: 2224

how to use function "random" in vc6.0

help,help;
by hello world
Fri Aug 02, 2002 6:33 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116609

no.it should be the original code.
by hello world
Fri Aug 02, 2002 6:08 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116609

help:102!

can someone tell me where i make a mistake?i always get WA.why?
thanks
[cpp]#include<iostream.h>


int main()
{
unsigned long bin[3][3];
/*bin[0][0] is the number of brown bottles of the first bin.
the other are similar.
0->brown,1->green,2->clear;and bin[1] ->the second bin*/

int i,j,flag ...

Go to advanced search