- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
[CODE]#include<stdio.h> #include"graphics.h" #include<stdlib.h> #include<conio.h> void main() { int graphdriver=DETECT,graphmode; int color,n,m; initgraph(&graphdriver,&graphmode); for(n=0;n<10;n++) { putpixel(250+n,350,BLUE); } for(m=0;m<10;m++) { int x=getpixel(250+m,350); printf("%d",x); } getch(); } [/CODE] I have to compile programs using graphics.h but i use Microsoft visual studio 6.0 . There is no graphics.h file in it... so i copied … |
|
[code=c++] #include<iostream> #include<string> using namespace std; struct one { char name_book[80]; char name_author[80]; int no_of_books; }one1[500]; int insert() { int i,j; cout<<"Enter the No. of Books you want to enter : "; cin>>i; cout<<endl; for(j=0;j<i;j++) { cout<<"Enter the name of book "<<j+1<<" : "; cin>>one1[j].name_book; cout<<"Enter the name of the … |