Search found 1 match

by iyxm2000
Wed Jul 07, 2004 3:41 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47352

119-Why WA??

#include "string.h"
#include "iostream.h"
#include "stdio.h"
class Person
{
public:
char name[13];
long in;
long out;
Person(char *s)
{
strcpy(name,s);
in=0;
out=0;
}
Person()
{
in=0;
out=0;
}
};

int main()
{
int n;
char temp[13];
while(cin>>n)
{
Person *givers=new Person[n ...

Go to advanced search