google search

Popular Posts


Welcome to BCA Notes

>>>>>>>>>>>>>>>>

Visitors

Search This Blog

Blogger templates

Visitor Map


Friday, 5 June 2015

Create a LINE USING line function in cpp?

2. Create a LINE USING line function in cpp?


#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<iostream.h>
int main()
{
   int gd=DETECT,gm;
   //graphic construct is DETECT
   initgraph(&gd,&gm,"c:\\TurboC3\\BGI\\");
   //init graph has three parameter graphic driver graphic mode,bgi graphic path
   clrscr();
   //                 clear screen
   int x,y,x1,y1;
   cout<<"Enter x,y,x1,y1"<<endl;
   cin>>x>>y>>x1>>y1;
   line(x,y,x1,y1);
   //line(x,y,x1,y1)
      getch();
   closegraph();
   //closegraph();
     return(0);
}


2 comments:

  1. Top Forex Brokers in India
    The top forex brokers in India are known for offering secure, regulated, and reliable trading environments for traders across the country. These brokers provide competitive spreads, fast order execution, and access to powerful trading platforms such as MetaTrader 4, MetaTrader 5, and cTrader. They also offer strong customer support, multiple account types, and convenient deposit and withdrawal options suited to Indian traders. Most importantly, reputable brokers are either regulated by global authorities or registered with Indian oversight bodies, ensuring safety and transparency. Choosing one of the top forex brokers in India helps traders enjoy smoother trading, better tools, and a trustworthy platform to grow their forex journey.
    Contact us Address – 1st Floor, The Sotheby Building, Rodney Bay, Gros-Islet, SAINT Lucia P.O Box 838, Castries, Saint Lucia Phone no – +97144471894 Website – https://winprofx.com/

    ReplyDelete
  2. WinProFX has become a preferred choice for Indian traders searching for the Best Online Forex Trading Platforms in India, offering reliability, speed, and advanced trading tools. Its MetaTrader integration allows users to experience top-tier charting, real-time data, and automated trading options. WinProFX offers tight spreads and flexible account types, making it suitable for both small and large investors. The platform ensures secure transactions, instant deposits, and smooth withdrawals for Indian clients. With educational support, expert analysis, and responsive customer care, traders can confidently navigate the global Forex market. WinProFX focuses on delivering transparency and user satisfaction, making it a dependable platform for those looking to enhance their trading experience in India.

    ReplyDelete