Ver Mensaje Individual
  #3  
Antiguo 19-04-2011
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 916
Reputación: 23
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
Te aconsejaria realizar los siguientes cambios:

Código Delphi [-]
{ primer recorrido, solo cuenta letras distinguiendo vocales de consonantes }
  while (length(mem) >= i) do
  begin
    a := 0;
    while (length(mem) >= i) and (mem[i] <> ' ') do
    begin
      if (mem[i] in setnum) or (mem[i] = ',') then
      begin
        //num[a]:=mem[i];
        num := Num+mem[i];
        a := a + 1;
      end;
      i := i + 1;
    end;
    b := 1; //B:=0;
    ok1:=false; ok2:=false;
    while ((length(num) <= a) and (b<=length(num))) do

Un abrazo
Responder Con Cita