element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Code Exchange
  • Technologies
  • More
Code Exchange
Forum Displaying Hello world......!!!!!
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Code Exchange to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 49 subscribers
  • Views 753 views
  • Users 0 members are here
  • Code Exchange
Related

Displaying Hello world......!!!!!

dr.akshay_1980@yahoo.com
dr.akshay_1980@yahoo.com over 10 years ago

Whenever we start with any of the programming language , we generally write Hello World basic programme which is our first step to enter into programming world. I want to display "hello world" in c/c++ but not in conventional way. rather I want the Hello world not at the left top corner but anywhere on the console say LCD monitor of my PC. Lets say I am using turbo c ver3 compiler. Is it possible to handle the output console drivers from my C library code.

Any possible way to handle video drivers and memory and I want the output message anywhere. I don't want to use graphics library and a particular coordinates for this task.

 

Any help in this regard????

  • Sign in to reply
  • Cancel

Top Replies

  • coolbox
    coolbox over 10 years ago +1
    Hi akshay, nice question.you can use graphical libraries for sure. try this: http://www.codeproject.com/Articles/17482/Basic-Graphics-For-Your-Console-Applications Parth
  • dr.akshay_1980@yahoo.com
    dr.akshay_1980@yahoo.com over 10 years ago in reply to coolbox +1
    But what is the reason that turbo c console windows always display output by default at its TOP LEFT CORNER.????? Can we overcome this I think its related with PC's video memory. cheers, Akshay
  • toxxn
    toxxn over 10 years ago in reply to dr.akshay_1980@yahoo.com +1
    You could try changing the preprocessing directive but where it puts it depends on the system.
  • coolbox
    coolbox over 10 years ago

    Hi akshay,

     

    nice question.you can use graphical libraries for sure.

    try this:

    http://www.codeproject.com/Articles/17482/Basic-Graphics-For-Your-Console-Applications

     

    Parth

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • coolbox
    coolbox over 10 years ago

    i want to add that if you want some advance features try openGL.It widely used graphical library.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dr.akshay_1980@yahoo.com
    dr.akshay_1980@yahoo.com over 10 years ago in reply to coolbox

    But what is the reason that turbo c console windows always display output by default at its TOP LEFT CORNER.????? Can we overcome this I think its related with PC's video memory.

     

     

    cheers,

    Akshay

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • toxxn
    toxxn over 10 years ago in reply to dr.akshay_1980@yahoo.com

    You could try changing the preprocessing directive but where it puts it depends on the system.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • coolbox
    coolbox over 10 years ago in reply to dr.akshay_1980@yahoo.com

    yes it's true.program begins to write on first character of LCD.you can manipulate video memory.I have seen this kind of program in "pointers in C by yashvant kanetkar ". It uses som near and far pointers

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • D_Hersey
    D_Hersey over 10 years ago

    I not familiar with your environment.  Do you have a gotoXY fn?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dr.akshay_1980@yahoo.com
    dr.akshay_1980@yahoo.com over 10 years ago in reply to D_Hersey

    Yes I do have goto xy function as I am using turbo c under windows.. I am rather planning not to use this but manupilate PC's video memory so that console's output is customizable.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube