Closed Thread
Results 1 to 3 of 3

Thread: A couple of questions

  1. #1
    CrazedDoc is offline Newbie
    Join Date
    Sep 2008
    Location
    UK
    Posts
    1
    Rep Power
    0

    A couple of questions

    I have started on delphi this week at college and it is my first language, basically I have made a couple of simple consoles, but I was wondering how to program an interface for a console so it isnt just a black box.

    This is the most complicated thing I have done so far:

    program Project1;

    {$APPTYPE CONSOLE}

    uses
    SysUtils;
    var
    amount, twenty, twentyrem, ten, tenrem, five, fiverem, two, tworem, one : Integer;
    begin
    writeln ('Please enter the amount of money and then press enter:');
    writeln ('');
    readln (amount);
    twenty := amount DIV 20;
    twentyrem := amount MOD 20;
    ten := twentyrem DIV 10;
    tenrem := twentyrem MOD 10;
    five := tenrem DIV 5;
    fiverem := tenrem MOD 5;
    two := fiverem DIV 2;
    tworem := fiverem MOD 2;
    one := tworem DIV 1;
    writeln ('');
    writeln ('20 notes needed:', ' ', twenty);
    writeln ('');
    writeln ('10 notes needed:', ' ', ten);
    writeln ('');
    writeln ('5 notes needed:', ' ', five);
    writeln ('');
    writeln ('2 coins needed:', ' ', two);
    writeln ('');
    writeln ('1 coins needed', ' ', one);
    writeln ('');
    readln;
    end.

    Just a program that allows the user to enter a amount of money and then it counts out how many notes they need (money). I want to make a interface for it so that it isnt just a console black box. How do I do this? I am using delphi 2007.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    gogetax1 is offline Newbie
    Join Date
    Aug 2008
    Posts
    12
    Rep Power
    0

    Re: A couple of questions

    wait.. so you want to create a simple Win32 windows or what?

  4. #3
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: A couple of questions

    Usually you will open Delphi, select new project, and have it be form based rather than console based. A console is a command-line (black box) environment by nature.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A Couple Questions.
    By CommittedC0der in forum General Programming
    Replies: 2
    Last Post: 10-04-2010, 02:27 PM
  2. A couple of problems
    By Mers in forum JavaScript and CSS
    Replies: 17
    Last Post: 06-24-2009, 02:12 PM
  3. Couple of Issues
    By TalAlpha in forum ionFiles
    Replies: 2
    Last Post: 03-31-2009, 07:57 AM
  4. couple java questions
    By jamesw in forum Java Help
    Replies: 1
    Last Post: 03-28-2009, 05:50 PM
  5. A couple of beginner questions
    By Nille in forum C# Programming
    Replies: 5
    Last Post: 01-16-2008, 01:29 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts