Search found 11 matches

by willy
Thu Dec 23, 2004 5:11 pm
Forum: Volume 4 (400-499)
Topic: 450 - Little Black Book
Replies: 57
Views: 12352

450 [Runtime Error]

the code works perfectly on my com, can anyone tell me what is causing the runtime error?


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

struct person
{
char title[128], first[128], last[128], address[128];
char depart[128], homep[128],workp[128], campusb[128];
};

int isblank(char *str)
{
int i ...
by willy
Wed Nov 17, 2004 5:26 am
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 18095

thanks!
by willy
Mon Nov 01, 2004 5:14 pm
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 18095

btw,
[c]
if (times[1] < times[0])
times[1] = 1;
times[2] = humble * 5;
if (times[2] < times[1] || times[2] < times[0])
times[2] = 1;
times[3] = humble *7;
if (times[3] < times[2] || times[3] < times[1] || times[3] < times[0])
[/c]

is for checking for overflow
by willy
Mon Nov 01, 2004 5:10 pm
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 18095

443 Humble Numbers WA

[Deleted]
by willy
Thu Aug 28, 2003 12:06 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44442

I modified my code to detect empty lines, but now i get WA.... I dunno whats wrong.... :(
[cpp]
#include <stdio.h>
#include <string.h>

int main()
{
int n,data[10000],best[10000],a,b,now,max,pre[10000],last,show[10000],count;
char abc[255];

scanf("%d\n\n",&n);
while (n > 0)
{

memset(pre,0 ...
by willy
Wed Aug 27, 2003 8:42 am
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44442

It stops, isn't it supposed to?
by willy
Sun Aug 24, 2003 12:20 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44442

497 RTE

I edited my program many times but still dunno why i get invalid memory reference all the time, can anyone tell me?
#include <stdio.h>
#include <string.h>

int main()
{
int n,data[100000],best[100000],a,b,now,max,pre[100000],last,show[100000],count;

scanf("%d",&n);
while (n > 0)
{
for (a = 0 ...
by willy
Wed Aug 13, 2003 11:32 am
Forum: Volume 4 (400-499)
Topic: 499 - What's The Frequency, Kenneth?
Replies: 93
Views: 20745

Thank you

Oh, :oops: Calculation error :oops: heehee thanks for pointing it out
by willy
Fri Aug 01, 2003 2:48 pm
Forum: Volume 4 (400-499)
Topic: 499 - What's The Frequency, Kenneth?
Replies: 93
Views: 20745

Q499

My program seems correct, can anyone tell me what's wrong?
#include <stdio.h>
#include <string.h>
#include <ctype.h>

int main()
{
int count[255],max,length,a,now;
char abc[255],alpha[255];
strcpy(alpha,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
while(gets(abc)!=NULL)
{
max = 0 ...
by willy
Fri Aug 01, 2003 2:26 pm
Forum: Volume 4 (400-499)
Topic: 499 - What's The Frequency, Kenneth?
Replies: 93
Views: 20745

Q499

My program seems correct, can anyone tell me what's wrong?
#include <stdio.h>
#include <string.h>
#include <ctype.h>

int main()
{
int count[255],max,length,a,now;
char abc[255],alpha[255];
strcpy(alpha,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
while(gets(abc)!=NULL)
{
max = 0 ...
by willy
Fri Aug 01, 2003 2:26 pm
Forum: Volume 4 (400-499)
Topic: 499 - What's The Frequency, Kenneth?
Replies: 93
Views: 20745

Q499

My program seems correct, can anyone tell me what's wrong?
#include <stdio.h>
#include <string.h>
#include <ctype.h>

int main()
{
int count[255],max,length,a,now;
char abc[255],alpha[255];
strcpy(alpha,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
while(gets(abc)!=NULL)
{
max = 0 ...

Go to advanced search