Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Sistemas operativos > Linux
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #14  
Antiguo 10-04-2007
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.141
Poder: 36
dec Tiene un aura espectaculardec Tiene un aura espectacular
Código Delphi [-]
program WhatOS;

{$APPTYPE CONSOLE}

uses
  SysUtils;

const
  GNU_LIBERTY_VALUE = 10;

var
  input: string;
  dummy: integer;

procedure Main();
begin
  Writeln('');
  Writeln('Ideal Operating System v1.0 (CopyRights 2007 DEC)');
  Writeln('-------------------------------------------------');
  Writeln('');
  WriteLn('What is your liberty level? (0 to 10) Press S and ENTER to exit');
  Writeln('');
  while(input = '')do
  begin
    ReadLn(input);
    input := Trim(input);
    if(LowerCase(input) = 's') then
    begin
      Writeln('');
      Writeln('');
      Writeln('Have a good day!');
      Sleep(2000);
      Exit;
    end;
    if (Length(input) <= 2) and TryStrToInt(input, dummy) then
    begin
      if(dummy < 10) then
      begin
        Writeln('');
        Writeln('OMG! Computing result... stay alive...');
        Sleep(5000);
      end;
      Writeln('');
      Writeln('');
      if (dummy >= GNU_LIBERTY_VALUE) then
        Writeln('Ok! Your ideal operating system is GNU/Linux')
      else
        Writeln('Ok! Your ideal operating system is Microsoft Windows');
      Writeln('');  
    end
    else
    begin
      Writeln('');
      Writeln('Wrong input... try again...');
      Writeln('');
      input := '';
    end;
  end; // while
  Writeln('');
  Writeln('Thanks for use this program. Press ENTER to exit');
  ReadLn;
end;

begin
  Main();
end.
Archivos Adjuntos
Tipo de Archivo: zip WhatOS.zip (24,8 KB, 8 visitas)
__________________
David Esperalta
www.decsoftutils.com

Última edición por dec fecha: 10-04-2007 a las 08:09:50.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Delphi 7 - Instale QR4 - ¿Como desinstalar? amadis Impresión 2 23-04-2007 20:08:57
instalé firebird y la bases interbase no reconoce password o usuario Manuel Firebird e Interbase 4 14-08-2006 16:36:48
instale zeoz 6.1.5 estable pero no se si tengo chabely MySQL 3 16-10-2005 17:12:56
Opinion Solaris 10 Choll Linux 0 13-09-2005 22:52:46
instale windows 98 y problemas zugazua2001 Windows 2 25-07-2005 17:55:22


La franja horaria es GMT +2. Ahora son las 00:47:43.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi