Thoughts Of The Day

GRAPHICS BASIC - 1

       Going forward with this C/C++ Advance learning tutorial today we will learn about the important topic 'MODES in C/C++'.

TURBO C Compiler support 2 types of Modes.

      1.  Text Mode
      2.  Grapghics Mode


            Before starting Graphics programming , Firstly we will discuss about the Text Mode. You can also make an interactive program with text mode in C/C++. But the number of functions in text mode are limited.

              Text Mode works on the Co-ordinate System. In Text Mode, your computer screen is arranged in ROW and COLUNMS fashion. By default Text Mode is works that is by you do not have to do anything.

            Normally in Text Mode, screen is divided into 80-colunms and 25- rows. That means if you want to print any character in the upper-left corner of the screen , so according to co-ordinate system the position of the X and Y co-ordinate on the screen will be 0,0
That is (X,Y) -> (0,0).

Similarly , if you want to print any character at the center of the screen, so according to 80-colunms and 25 rows the position of the X and Y co-ordinate will be  40 and 12.
That is (X,Y) -> (40 , 12).

                  

                Attention dear readers ! Please note that the above points , here X represents number of Columns and Y represents the number of Rows. So now you have been understand what we want to say, that is if we increase the value of X then the cursor will be move from Left to Right on the screen. And if we increase the value of Y so in this condition the cursor will be move from top to bottom. Please remember these lines because this concept is very important in graphics.

                Now it’s enough for today’s C/C++ Advance learning tutorial. If you have any doubt or have any question regarding this discussion so you can ask your questions . You can also discuss your problem in our facebook page. 

                 Now In next Chapters we will discuss about the some basic functions of Text Mode and will make a simple program using that functions . If you like this tutorial, share it with your friends on facebook, linked in, twitter , google+  etc.




   


Back ChapterIndex Page
              
                             
                       Read This Blog In Hindi Click here                           


No comments:

Post a Comment


For MNCs Interview Preparation And Practice set of C,C++,JAVA,PHP Questions Like our page.