Search found 4 matches

by regina
Thu May 13, 2004 6:29 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65523

Hi - thank you so much! My program just got accepted (with a P.E., but I really don't care about that so much) :lol: . The picture in the problem description threw me off -- it would've been better if the spaces were substituted with * or something... If it wasn't for your help, I would've probably ...
by regina
Tue May 11, 2004 4:59 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65523

but why wrong?

my code may be too long, but still, why 'wrong answer' if it gets the job done?
by regina
Tue May 11, 2004 12:25 am
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65523

Still Not accepted

Hi -- can anyone tell me what's going on with my code?
Thanks...

[cpp]
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

class LCD
{
private:
char* disp[23];
int size;
public:

LCD()
{
for (int i = 0; i<23; i++)
{
disp = NULL;
}
}

~LCD()
{
if (disp)
delete[] disp;
}

void ...
by regina
Tue May 11, 2004 12:04 am
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65523

I keep getting WA too:

What is wrong with this code? -- I tried every possible input:

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

class LCD
{
private:
char* disp[23];
int size;
public:

LCD()
{
for (int i = 0; i<23; i++)
{
disp = NULL;
}
}

~LCD()
{
if (disp)
delete[] disp;
}

void ...

Go to advanced search