473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

'ypos' is assigned a value that is never used .

Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2.  
  3. #include <graphics.h>
  4.  
  5. #include <stdlib.h>
  6.  
  7. #include <conio.h>
  8.  
  9. #include <bios.h> 
  10.  
  11.  
  12.  
  13. void main()
  14.  
  15. {
  16.  
  17.       int grd, grm;
  18.  
  19.       int num, xpos, ypos, i, j, index;
  20.  
  21.  
  22.  
  23.       detectgraph(&grd,&grm);
  24.  
  25.  
  26.  
  27.       initgraph(&grd, &grm, "");
  28.  
  29.  
  30.  
  31.       if( graphresult() != 0)
  32.  
  33.       {
  34.  
  35.             printf("Unable to find Graphics driver");
  36.  
  37.             return;
  38.  
  39.       }
  40.  
  41.  
  42.  
  43.       num = getmaxcolor();
  44.  
  45.       settextjustify(CENTER_TEXT, CENTER_TEXT);
  46.  
  47.       xpos = getmaxx() / 2;
  48.  
  49.       ypos = getmaxy() / 2;
  50.  
  51.  
  52.  
  53.       setbkcolor(BLUE);
  54.  
  55.       setcolor(WHITE);
  56.  
  57.       rectangle(1,1,getmaxx() - 1, getmaxy() - 1);
  58.  
  59.  
  60.  
  61.       for(j = 1; j <= 11; j++)
  62.  
  63.       {
  64.  
  65.             circle(30, j * 40, 18);
  66.  
  67.             circle(getmaxx() - 30, j * 40, 18);
  68.  
  69.       }
  70.  
  71.  
  72.  
  73.       index = 0;
  74.  
  75.       for(i = BLUE + 1; i < num; i++)
  76.  
  77.       {
  78.  
  79.             setcolor(i);
  80.  
  81.             outtextxy(xpos,50 + (index++ * 30),"Welcome to http://www.google.com");
  82.  
  83.       }
  84.  
  85.       getch();
  86.  
  87.       closegraph();
  88.  
  89.  
  90.  
  91. }
Output:
Error: Function 'intigraph' should have a prototype

:'ypos' is assigned a value that is never used
Apr 21 '21 #1
1 2079
dev7060
636 Expert 512MB
Error: Function 'intigraph' should have a prototype
Spelling?

:'ypos' is assigned a value that is never used
Says it all.
May 6 '21 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Cindy | last post by:
ASP.NET - C# (User Control) I have a drop-down as usercontrol. In the user control's Page_Init , the drop down gets populated. The SelectedItem.Text is retrived using property get The...
49
by: matty | last post by:
Hi, I recently got very confused (well that's my life) about the "undefined" value. I looked in the FAQ and didn't see anything about it. On...
5
by: Veeru71 | last post by:
Given a table with an identity column (GENERATED BY DEFAULT AS IDENTITY), is there any way to get the last generated value by DB2 for the identity column? I can't use identity_val_local() as...
21
by: Steven T. Hatton | last post by:
I'm trying to improve my formal understanding of C++. One significant part of that effort involves clarifying my understanding of the vocabulary used to describe the language. This is from the...
3
by: ncsthbell | last post by:
I have a column that is defined as a text field called 'Trip number'. The value may be 'ABC' , '1', '33', whatever the user assigns to it. Now they want me to 'autofill' the TripNumber with the...
14
by: Neviton | last post by:
Help with this error ! Please ! The code below is simplified, because I'm trying to solve this error. ....MyClass.cpp In member function `void MyClass::Initialize()': ....MyClass.cpp aggregate...
6
subedimite
by: subedimite | last post by:
I have googled the functionality to use a Browse function to Look- in folders and then select required file from the folder. However when I close the data base and open again, I would like VBA to...
3
by: Psychogenisis | last post by:
I have designed a database in access 2010 to run my organisations budget system. I have a form with combo box where a unit selection is made. My problem is that there is a different pricelist table...
1
by: leeon0220 | last post by:
Hi guys .. My program is working however instead of putting the assigning f=='x' it must xl -- HOWEVER when i used xl the computation goes wrong .. what shoud i do .. THANKS in ADVANCE ...
1
by: 7101 | last post by:
int a,b,f; cout<<"enter two numbers"; cin>>a>>b; f=(a+b)/2; cout<<"average="<<f; what does it mean by assigned value that is never used?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.