473,396 Members | 1,779 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,396 software developers and data experts.

how to remove "function should have a prototype" error?

1
Expand|Select|Wrap|Line Numbers
  1. #include<iostream.h>
  2. #include<conio.h>
  3. int main()
  4. {
  5. setcolor(BLUE);
  6. setbkcolor(yellow);
  7. cout<<"the text in blue colour with yelow background";
  8. getch();
  9. return 0;
  10. }
  11.  
it keeps returning the same error always in my turbo c++ compiler if my program is wrong then please say the correct program for changing background colour and text colour plzzzzzzzz
May 22 '13 #1
1 23746
Nepomuk
3,112 Expert 2GB
Hi cksb97 and welcome to bytes!

The problem seems to be with the conio.h header; it is not standardized so every compiler maker can create their own one. Not having used the Borland version myself, I can only guess based on what I have found online but try something like
Expand|Select|Wrap|Line Numbers
  1. textcolor(COLORS.BLUE);
  2. textbackground(COLORS.YELLOW);
rather than your setcolor and setbkcolor functions.
May 22 '13 #2

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

Similar topics

3
by: David | last post by:
Hi, why I have compile error as follows? r.cpp: In function `int main ()': r.cpp:40: call of overloaded `change(Demo &)' is ambiguous r.cpp:11: candidates are: void Demo::change (Demo)...
6
by: Steve Strik | last post by:
Hi, I'm using access 97 SR2 on win XP and keep getting the Sub or Function not defined error message. The code for the function is in a module called mod_Public and is as follows. Function...
5
by: REB | last post by:
What is the code in C# to have a pop-up when a function throws an error? catch(Exception ex) { Show pop up with text from ex in it? }
1
by: Sylaris | last post by:
hi, i have a problem which recursion fits perfectly, however; after working with the base function (which has no errors and works correctly) the recursions return a "function not defined" error in...
5
by: Daz | last post by:
Hi everyone. My query is very straight forward (I think). What's the difference between someFunc.blah = function(){ ; } and
3
by: pinko1204 | last post by:
My Update function cannot successful update to sql table even don't have any error. Please help to check .....thx PHP1 <?php require_once 'header.php'; ?> <style type="text/css"> <!--
3
by: phobia1 | last post by:
Hi once again. We have just changed our ISP and things that worked fine now do not, Obviously its in the differences of MYSQL and PHP versions. Have fixed most of the problems but this UPDATE...
3
by: jaymzlx | last post by:
My old problem is solved, but im running into a new error. I figured I would start a new topic, sorry if this was incorrect to do. mysql error: You have an error in your SQL syntax; check the...
2
by: hannoudw | last post by:
Hi there I'm trying to do a function that check if the informations sent by the user when he wants to register are correct !! but i'm keep getting this error : You have an error in your SQL syntax;...
1
by: sathishauit | last post by:
<?php require_once ("inc/dbconnection.php"); class provider_function { public $select_query; public $select_result; public $insert_query; public $insert_result; public $update_query;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.