473,404 Members | 2,137 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,404 software developers and data experts.

need def for conio.h

hi i want 2 know wat s the special for using conio.h

Aug 11 '06 #1
17 2672
annai said:
hi i want 2 know wat s the special for using conio.h
There's no trick to using conio.h - it's very easy.

#include <stdio.h>

struct foo
{
int h;
};

int main(void)
{
foo conio = { 42 };
printf("conio.h = %d\n", conio.h);
return 0;
}

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 11 '06 #2
Richard Heathfield said:
annai said:
>hi i want 2 know wat s the special for using conio.h

There's no trick to using conio.h - it's very easy.
....but not so easy that I can't get it wrong. See correction below.
>
#include <stdio.h>

struct foo
{
int h;
};

int main(void)
{
foo conio = { 42 };
struct foo conio = { 42 };
printf("conio.h = %d\n", conio.h);
return 0;
}
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 11 '06 #3

annai wrote:
hi i want 2 know wat s the special for using conio.h
I have no idea what this means.

conio.h is not a Standard C header; if you are asking something about a
header called conio.h which you didnt write, you need to ask in a
newsgroup which discusses whatever environment it belongs to.

Aug 11 '06 #4
annai wrote:
hi i want 2 know wat s the special for using conio.h
What's special about it is that it's only available in Borland
environments. If you are trying to build some program that depends on
Borland stuff, but under some other compiler, you will probably need to
rewrite some terminal handling stuff. Or maybe you can find a library
that emulates whatever Borland stuff does. You'll get nothing on
comp.lang.c, except an invitation to take your nonstandard environment
elsewhere.

If you're on a linux/gcc environment, try this:
http://www.gerald-friedland.de/fract...conio-1.02.tgz
Aug 11 '06 #5
annai wrote:
hi i want 2 know wat s the special for using conio.h
What?

(fx:patternMatching)
(fx:kneeJerk)

Don't use conio.h -- it's not portable.

--
Chris "im nt readable 4 blumjed scrawls" Dollin
"Who do you serve, and who do you trust?" /Crusade/

Aug 11 '06 #6
annai wrote:
hi i want 2 know wat s the special for using conio.h
There is nothing called conio.h in C. If your implementation provides
something with that name, it will provide the documentation you need.
Don't expect your implementation's (non-standard) conio.h to be the same
as some other implementation's (non-standard) conio.h. Do not even
expect the functions or other identifiers present in your conio.h to
have a reserved meaning or even calling sequence. There are name
conflicts between, for example, several functions with prototypes often
found in conio.h but also present in the various implementations of the
(perhaps more common but still non-standard) curses family.

Please try not to use baby-talk in posting. It really is not that
painful to type "to", "what", and "is"(?) instead of the silly "2",
"what", and "s". The "the" before special seems to have no meaning, and
capitalization rule in English require "Hi" at the beginning of a
sentence and "I" for the first person nominative pronoun.
Aug 11 '06 #7
annai wrote:
hi i want 2 know wat s the special for using conio.h
conio.h is a file used mainly in windows implementations.
Microsoft, Borland, and other compilers implement functions like
cputs (console put string) or kbhit (return when a key is pressed)
and other system specific functions.

If your compiler system doesn't provide it you can:
1) change the compiler to one that provides this header
2) Rewrite the functions in terms of your new implementation
----

Note that many people in this group find it fun to laugh
about newcomer's questions. Please do not generalize, and just
ignore those posts. They are done by people that are unable
to remember when they were learning C.

Aug 11 '06 #8
On Fri, 11 Aug 2006 00:59:45 -0700, jmcgill
<jm*****@email.arizona.eduwrote:
>annai wrote:
>hi i want 2 know wat s the special for using conio.h

What's special about it is that it's only available in Borland
environments
[OT] Where did you get that notion?

It's available in many environments, and most of them are slightly
different from all the others.

--
Al Balmer
Sun City, AZ
Aug 11 '06 #9
Al Balmer wrote:
On Fri, 11 Aug 2006 00:59:45 -0700, jmcgill
<jm*****@email.arizona.eduwrote:
>annai wrote:
>>hi i want 2 know wat s the special for using conio.h
What's special about it is that it's only available in Borland
environments

[OT] Where did you get that notion?
I didn't think the OP deserved a more accurate answer.
I should have said "typically". Anyway, it's usually a DOS-ish
thing, and it's pretty much going to be a real pain for anyone with
this level of question, to work around.
Aug 11 '06 #10
jmcgill <jm*****@email.arizona.eduwrites:
Al Balmer wrote:
>On Fri, 11 Aug 2006 00:59:45 -0700, jmcgill
<jm*****@email.arizona.eduwrote:
>>annai wrote:
hi i want 2 know wat s the special for using conio.h

What's special about it is that it's only available in Borland
environments
[OT] Where did you get that notion?

I didn't think the OP deserved a more accurate answer.
So the penalty for ignorance is misinformation?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Aug 11 '06 #11

annai wrote:
hi i want 2 know wat s the special for using conio.h
This is a FAQ:

10.11: I seem to be missing the system header file <sgtty.h>.
Can someone send me a copy?

A: Standard headers exist in part so that definitions appropriate
to your compiler, operating system, and processor can be
supplied. You cannot just pick up a copy of someone else's
header file and expect it to work, unless that person is using
exactly the same environment. Ask your compiler vendor why the
file was not provided (or to send a replacement copy).

P.S.:
http://conio.sourceforge.net/
When you get to bgi, look here:
http://www.garret.ru/~knizhnik/lang.html

P.P.S:
Ick.

Aug 11 '06 #12
Keith Thompson wrote:
>
jmcgill <jm*****@email.arizona.eduwrites:
Al Balmer wrote:
On Fri, 11 Aug 2006 00:59:45 -0700, jmcgill
<jm*****@email.arizona.eduwrote:

annai wrote:
hi i want 2 know wat s the special for using conio.h

What's special about it is that it's only available in Borland
environments
[OT] Where did you get that notion?
I didn't think the OP deserved a more accurate answer.

So the penalty for ignorance is misinformation?
Misinformation which doesn't get caught,
is a possible consequence of an off topic post.
It is also a valid reason commonly presented
for the purpose of discouraging off topic posting.

--
pete
Aug 11 '06 #13
Keith Thompson wrote:
>>>>hi i want 2 know wat s the special for using conio.h

So the penalty for ignorance is misinformation?
No, the reward for laziness is low quality ;-)

Others go as far as to berate posters for baby talk. I don't sink to
that level. I thought I gave a pretty good answer, and even though it
was a guess, I think it's a pretty good guess that people are trying to
port TC junk to gcc. I posted a link to a pretty good library to deal
with that, although I know damn well the poster's brain is going to pop
when he discovers curses.
Aug 11 '06 #14
On Fri, 11 Aug 2006 22:14:53 GMT, pete <pf*****@mindspring.comwrote:
>Keith Thompson wrote:
>>
jmcgill <jm*****@email.arizona.eduwrites:
Al Balmer wrote:
On Fri, 11 Aug 2006 00:59:45 -0700, jmcgill
<jm*****@email.arizona.eduwrote:

annai wrote:
hi i want 2 know wat s the special for using conio.h

What's special about it is that it's only available in Borland
environments
[OT] Where did you get that notion?

I didn't think the OP deserved a more accurate answer.

So the penalty for ignorance is misinformation?

Misinformation which doesn't get caught,
is a possible consequence of an off topic post.
That's not a reason to deliberately introduce it.
>It is also a valid reason commonly presented
for the purpose of discouraging off topic posting.
That sort of mean-spirited discouragement should be confined to a
direct email to the poster, not fed to the entire newsgroup, which may
have readers not qualified to recognize it as misinformation.

IOW, I think both those arguments are silly.

Heading off bad information proffered by newbies is task enough,
without having to correct misinformation by those who should know
better.

--
Al Balmer
Sun City, AZ
Aug 11 '06 #15
On Fri, 11 Aug 2006 15:21:04 -0700, jmcgill
<jm*****@email.arizona.eduwrote:
>Keith Thompson wrote:
>>>>>hi i want 2 know wat s the special for using conio.h

So the penalty for ignorance is misinformation?

No, the reward for laziness is low quality ;-)

Others go as far as to berate posters for baby talk.
Many here try to educate those posters who use baby talk. Berating is
reserved for those who refuse to be educated.
I don't sink to
that level. I thought I gave a pretty good answer, and even though it
was a guess, I think it's a pretty good guess that people are trying to
port TC junk to gcc.
It would be a good guess that someone was porting DOS junk. Turbo C
was not by any means the only source of such.
I posted a link to a pretty good library to deal
with that, although I know damn well the poster's brain is going to pop
when he discovers curses.
--
Al Balmer
Sun City, AZ
Aug 11 '06 #16
Al Balmer wrote:
It would be a good guess that someone was porting DOS junk. Turbo C
was not by any means the only source of such.
Fair enough, but they did pollute my corner of the world with it.
Aug 11 '06 #17
On 2006-08-11, annai <AN*********@gmail.comwrote:
hi i want 2 know wat s the special for using conio.h
Non-words: i 2 wat s
Non-standard headers: conio.h
Bad grammar: hi i 2 the special for

Maybe you should try again. Probably somewhere else.

--
Andrew Poelstra <http://www.wpsoftware.net/projects>
To reach me by email, use `apoelstra' at the above domain.
"Do BOTH ends of the cable need to be plugged in?" -Anon.
Aug 15 '06 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: imranzafar | last post by:
Hi! I am a beginner in C++. This is little assignment. It gives an error "Structure Require on Left Side of dot operator" Can anybody help me what went wrong in this code? #include <conio.h>...
1
by: Mathias Goldau | last post by:
Hi, Can someone tell me where I find some material (e.g. a compiler with graphics.h and conio.h (for free)) related to graphic programming BGI-like, and sound programming (not PC-speaker). The...
4
by: Eduardo Elias Camponez | last post by:
Is conio.h C library or just C++? Tks Eduardo Camponez
17
by: Mitas Nikos | last post by:
I am trying to use the library conio2 and though I have managed with a few relatively simple examples when i try to compile a program which conio's function clrscr is not in main() i get an error...
6
by: Maverick | last post by:
There's a function in Borland C conio.h window (int left, int top, int right, int bottom) how can i provide the same function in VB.Net
18
by: anand | last post by:
*********************************************************************************************************** #include<stdio.h> #include<conio.h> #include<math.h> void main() { double...
66
by: genestarwing | last post by:
QUESTION: Write a program that opens and read a text file and records how many times each word occurs in the file. Use a binary search tree modified to store both a word and the number of times it...
9
by: Dadio | last post by:
Hi! I have to take some strings from a file and put them in a record... The various strings in the file are written on this way: string1|string2|string3|string4|string5| This is the program...
2
by: amitppawar2007 | last post by:
#include <stdio.h> #include <conio.h> int main(void) { unsigned port = 0; int value; value = outp(port, 'C'); printf("Value %c sent to port number %d\n", value, port); return 0; }
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?
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.