Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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 skibertzblind@ymail.com

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