Howdy, Stranger!

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

Categories

How to make bigger size text

kennycheng93kennycheng93 Member Posts: 20
How can I print a big "Welcome" (about 5 times as big as the normal size) in the middle of the screen using C++ under DOS?

Comments

  • stoberstober Member Posts: 9,765 ✭✭✭
    : How can I print a big "Welcome" (about 5 times as big as the normal size) in the middle of the screen using C++ under DOS?
    :

    switch the computer to graphics mode and use graphics phonts.
  • kennycheng93kennycheng93 Member Posts: 20
    Could you please give an example program? How to switch to graphic mode?

    Thank you very much
  • stoberstober Member Posts: 9,765 ✭✭✭
    : Could you please give an example program? How to switch to graphic mode?
    :
    : Thank you very much
    :

    Nope -- because I don't know how to do that either. But there are thousands of example programs you can find free on the net. just search google for "graphics programs". Here's just one of many.

    http://garbo.uwasa.fi/pc/graphics.html
  • shaolin007shaolin007 Member Posts: 1,018
    : Could you please give an example program? How to switch to graphic mode?
    :
    : Thank you very much
    :

    Depends which mode you want to be in.

    To go into 320x200x256(DOS only) colors your code would be something like this:
    [code]
    asm
    {
    mov ax, 0x0013 ;to return back to 80x25 mode sub 0x0003
    int 0x0010
    }

    or with some compilers that use the AT&T syntax

    _asm movw $0x0013, %ax
    _asm int $0x0010
    [/code]
    Any text printed in that mode would be huge!


  • kennycheng93kennycheng93 Member Posts: 20
    When I tried to compiled the program, it showed that "the code has no effect" (mov ax, 0x0013)

    Could you give an entire example of printing "Hello"?

    Thank you so much,


    : : Could you please give an example program? How to switch to graphic mode?
    : :
    : : Thank you very much
    : :
    :
    : Depends which mode you want to be in.
    :
    : To go into 320x200x256(DOS only) colors your code would be something like this:
    : [code]
    : asm
    : {
    : mov ax, 0x0013 ;to return back to 80x25 mode sub 0x0003
    : int 0x0010
    : }
    :
    : or with some compilers that use the AT&T syntax
    :
    : _asm movw $0x0013, %ax
    : _asm int $0x0010
    : [/code]
    : Any text printed in that mode would be huge!
    :
    :
    :

  • shaolin007shaolin007 Member Posts: 1,018
    [red]: When I tried to compiled the program, it showed that "the code has no effect" (mov ax, 0x0013)
    :
    : Could you give an entire example of printing "Hello"?
    :
    : Thank you so much,
    [/red]

    Well, it's kind of difficult to do that if I don't know what assembly syntax your compiler is using. Whats is your compiler called? If you want I can give you a example through email.
  • kennycheng93kennycheng93 Member Posts: 20
    I'm using TC++ 3.0

    Could you e-mail me an example?
    My e-mail address is as follows:
    kennycheng93@yahoo.com

    Thanks for the help
  • sigma_zksigma_zk Member Posts: 68
    Maybe you'd be better off with

    [code]
    union REGS &trash;

    // these two lines may need to be altered somewhat
    trash.w.ax = 0x0013;
    int86(0x10, &trash, &trash);
    [/code]
  • mickey2906mickey2906 MadhuravoyalMember Posts: 1

    I m using Turbo C++ version 3 Can U send me coding of big "Welcome" (about 5 times as big as the normal size) plz
    my e-mail:-anthonymichealj@gmail.com

Sign In or Register to comment.