Newbie need help. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Newbie need help.

AdokaumAdokaum Posts: 1Member
I have recently started using pascal and i'm not all that great since its my first programming language.

I'm wondering if there are any good forums/websites that are full of pascal information.

Also while i'm here might as well ask for some help.

I wrote the code for the password which looks like this.[/color]


[code]
program program1;

uses crt;

var
pass: string[15];
usnam: string[10];

begin
repeat

clrscr;
textcolor(lightblue);
writeln(' **title** ')
textcolor(white);
writeln('-Enter User Name: ');
readln(usnam);
writeln('-Enter Password: ');
readln(pass);
writeln;

if (pass = 'password') and (usnam = 'user')
then
begin
clrscr;
textcolor(lightblue);
writeln(' ** WELCOME TO MAIN MENU **');
writeln('[1]');
writeln('[2]');
writeln('[3]');
readln;

end

else

begin
textcolor(red blink);
writeln('**WRONG PASSWORD**');
writeln;
textcolor(white);
writeln('Please press [enter] to continue');
readln;
end;

until (pass = 'password') and (usnam = 'user');

end.[/code]

I'd like to know what to add to my code so the password is in this form *****

Also how to create a menu system?

Things ive got as [1][2][3]
If i press 1 i go do that
if i pres 2 i go back to log in screen etc.

Also should i not include the whole menu/program in this block of code?
Should i create the menu externally and then say something like

if pass/username are correct then run the menu procedure?

Comments

  • _Atex__Atex_ Posts: 163Member
    : I'm wondering if there are any good forums/websites that are full of
    : pascal information.

    There are lots of tutorials on the web, just google: pascal tutorial
    This forum addressed many issues in the past, also check the submitted programs.

    : I'd like to know what to add to my code so the password is in this
    : form *****
    :
    : Also how to create a menu system?
    :

    Read through this forum, if I remember right, both of your questions have been discussed (with code examples) not too long ago...
  • tanduayrhumtanduayrhum Posts: 1Member
    Hi...
    A pleasant morning to you
    i just want to ask if you know how to make a virus or do you have a friend that knows how to make a virus,worm or script?

    F you you know how to make virus or your friend can you teach me how to make its urgent please.

    PLEASE HELP ME IN MY PROJECT
    I'M BEGGING YOU.

    Just email it at my yahoo mail

    here's my Yahoo mail [email protected]

    hoping for your urgent reply about my problem.
Sign In or Register to comment.