How to make bigger size text

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

  • : 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.
  • Could you please give an example program? How to switch to graphic mode?

    Thank you very much
  • : 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
  • : 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!


  • 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!
    :
    :
    :

  • [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.
  • 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
  • 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 Madhuravoyal

    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.

Howdy, Stranger!

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

Categories