hi i want 2 know wat s the special for using conio.h 17 2711
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)
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)
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.
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
annai wrote:
hi i want 2 know wat s the special for using conio.h
What?
(fx:patternMatc hing)
(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/
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.
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.
On Fri, 11 Aug 2006 00:59:45 -0700, jmcgill
<jm*****@email. arizona.eduwrot e:
>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
Al Balmer wrote:
On Fri, 11 Aug 2006 00:59:45 -0700, jmcgill
<jm*****@email. arizona.eduwrot e:
>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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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>
#include <stdio.h>
#include <iostream.h>
void set(void);
void display(void);
|
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 platform doesn't matter.
My problem: I want to port a simple programm for TurboPascal 7.0 to C/C++,
that uses functions like: putPixel(...), because TP doesn't offer
Soundblaster support, and I thought in C/C++ this would be
easier/possible. Am I...
|
by: Eduardo Elias Camponez |
last post by:
Is conio.h C library or just C++?
Tks
Eduardo Camponez
|
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 from the linker.
undefined reference to `clrscr'
ld returned 1 exit status
I include the conio2.h on top of the file where clrscr() fn is.
How do I pass the -lconio parameter when I have multiple files?Isn't it:
|
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
| |
by: anand |
last post by:
***********************************************************************************************************
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
double a,b,c,fa,fb,fc,err;
int count;
|
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 occurs. After the
program has read the file, it should offer a menu with three choices.
the first is to list all the words along with the number of occurences.
The second is to let you enter a word, with the program reporting how
many times the...
|
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 that i have just made...what's wrong?
#include<stdio.h>
#include<conio.h>
#include<string.h>
|
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;
}
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |