Search found 1 match

by zulfo
Mon Sep 29, 2003 9:09 pm
Forum: Volume 4 (400-499)
Topic: 417 - Word Index
Replies: 15
Views: 3787

417 why wrong answer

can anyone tell me what is wrong? here is source:

#include <iostream.h>
#include <string.h>

long x=0;
char s[6];
char tab[83682][6];

void genall(int len, int dub) {
if (dub) s[dub]=s[dub-1]+1; else s[dub]='a';
for ( ; s[dub]<='z'-len+dub+1; s[dub]++)
{
if (dub+1<len) genall(len,dub+1);
else ...

Go to advanced search