What error do you get in this?
main()
{
struct emp
{
char name[20];
float sal;
);
struct emp e[10];
int i;
for(i=0;i<=9;i++)
scanf("%s%f",e[i].name,&e[i].sal);
}
I got the error as : Floating point formats not linked, why?
And how to rectify this problem?
And can anybody tell me some more basics about floating point
issues. 17 1167
"sandeep" <sa************@gmail.com> wrote: I got the error as : Floating point formats not linked, why?
Because you haven't read the FAQ.
And how to rectify this problem?
Read the FAQ.
<http://www.eskimo.com/~scs/C-faq/q14.13.html>.
HTH; HAND.
Richard
sandeep wrote: What error do you get in this?
compile error, of course!
#include <stdio.h>
int main() { struct emp { char name[20]; float sal; /* );
This should not even compile.
Changed ) to }*/
} struct emp e[10]; int i; for(i=0;i<=9;i++) scanf("%s%f",e[i].name,&e[i].sal);
return 0; }
Now this compiles fine on my machine. I got the error as : Floating point formats not linked, why? And how to rectify this problem? And can anybody tell me some more basics about floating point issues.
Need to be more specific. Can also read up on IEEE specs.
HTH
Suman.
Thanks , but could u please send me any zip version of full FAQ
question and answers if u have or tell me the link.
thanks
sandeep wrote: I got the error as : Floating point formats not linked, why? And how to rectify this problem?
Learn to check the FAQ before posting. In particular,
<http://www.eskimo.com/~scs/C-faq/q14.13.html>:
Question 14.13
I'm having trouble with a Turbo C program which crashes and says
something like ``floating point formats not linked.''
Some compilers for small machines, including Borland's (and Ritchie's
original PDP-11 compiler), leave out certain floating point support if
it looks like it will not be needed. In particular, the
non-floating-point versions of printf and scanf save space by not
including code to handle %e, %f, and %g. It happens that Borland's
heuristics for determining whether the program uses floating point are
insufficient, and the programmer must sometimes insert an extra,
explicit call to a floating-point library routine to force loading of
floating-point support. (See the comp.os.msdos.programmer FAQ list for
more information.)
And can anybody tell me some more basics about floating point issues.
There are several good sites on the web, but you could consider the C
FAQ section on floating point,
<http://www.eskimo.com/~scs/C-faq/s14.html>, "14. Floating Point".
sandeep wrote: Thanks , but could u please send me any zip version of full FAQ question and answers if u have or tell me the link.
He told you where to get it. Who is this fellow u? I remember U
Thant, but I don't think he had any great influence over the C
language. If you want to be taken seriously quote an adequate
portion of what you are replying to, snipping away the remainder,
and not topposting. Also sedulously eschew infantile
abbreviations.
--
"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
sandeep wrote: Thanks for ur kind help.
Take the hint do not post in SMS
I think you are a good watchman.
Keep doing this , ithink look for a job of watchman.
I think you are a good watchman
Look for a job of watchman.
sandeep wrote: I think you are a good watchman Look for a job of watchman.
Don't be a spoilsport!
This is not how you reply to others over a newsgroup.You may have
opinions
that differ, but this is not the way to show it.Every one out here
is(or atleast
tries) to help others..I am not sure how many have already
done it, but few must have, by this time kill(fil)ed you!Get some basic
netiquette training.
You will of course see posts(past, present & future) by respected
regulars that
delve in expletives, but most of the time they fit the context.Not
yours.This is
streetfight.
And don't you reply to me asking me why I am supporting them - I have
my own
reasons, that (your) reasons cannot comprehend.
On Thu, 30 Jun 2005 07:18:19 -0500, sandeep wrote
(in article
<11**********************@f14g2000cwb.googlegroups .com>): I think you are a good watchman Look for a job of watchman.
*plonk*
sandeep wrote: I think you are a good watchman. Keep doing this , ithink look for a job of watchman.\
*plonk*
Brian
sandeep wrote: I think you are a good watchman Look for a job of watchman.
I am feeling irritable, and have seen this user ignore instructions
on correct use of google, quoting, etc. for long enough. Now he is
also becoming a smart alec. Well, not around here. PLONK.
Goodbye, cruel world.
--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
sandeep wrote: I think you are a good watchman Look for a job of watchman.
I think You Need a Clue. Go find one.
Since your English is terrible, You should Avoid anything that might
might make you misunderstood.
In your case try all SMS and get all the help you deserve.
In "English"
I think you are a good watchman.
You should look for a job as watchman.
U R N AH.
Sandeep wrote: main()
Main should return int and have void as parameter(or argc,argv). { struct emp { char name[20]; float sal; );
^^^
Probably you mean }. I got the error as : Floating point formats not linked, why?
There is no problem when i compile it in gcc. In google I found that
there is such a problem when you use Borland compilers. See http://www.faqs.org/faqs/msdos-progr...section-5.html.
Thank you for your reply.
Athanasios Papaioannou wrote: Sandeep wrote: main() Main should return int and have void as parameter(or argc,argv). { struct emp { char name[20]; float sal; ); ^^^ Probably you mean }. I got the error as : Floating point formats not linked, why? There is no problem when i compile it in gcc. In google I found that there is such a problem when you use Borland compilers.
Yes i use borland's compiler.
See http://www.faqs.org/faqs/msdos-progr...section-5.html.
Thank you for your reply.
Athanasios Papaioannou wrote: Sandeep wrote: main() Main should return int and have void as parameter(or argc,argv). { struct emp { char name[20]; float sal; ); ^^^ Probably you mean }. I got the error as : Floating point formats not linked, why? There is no problem when i compile it in gcc. In google I found that there is such a problem when you use Borland compilers.
Yes i use borland's compiler.That is why it happened.
See http://www.faqs.org/faqs/msdos-progr...section-5.html. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: j_mckitrick |
last post by:
I checked the docs, but found nothing about floating point issues.
I am working on an app that deals with currency values, and only does
addition and subtraction (no division). But I am starting...
|
by: Vinny |
last post by:
I have a few floating point questions/issues I wish to ask. An answer or
discussion would be nice too :) Any links discussion the subject would be
nice too..
1. How do I generate an underflow...
|
by: Anton Noll |
last post by:
We are using Visual Studio 2003.NET (C++) for the development
of our software in the fields digital signal processing and
numerical acoustics.
One of our programs was working correctly if we are...
|
by: cody |
last post by:
no this is no trollposting and please don't get it wrong but iam very
curious why people still use C instead of other languages especially C++.
i heard people say C++ is slower than C but i can't...
|
by: Hector |
last post by:
Hi,
My application supports different languages, and i have a problem with the
decimals:
In this application, i receive datas like "10.528".
When i use CurrentCulture = "en-US", no problem....
|
by: Cezary Noweta |
last post by:
Hello,
In Control Panel, Regional Settings, set decimal point to something other then dot
,,.'' (ASCII 0x2E). Let it be comma (ASCII 0x2C) for example. Compile and run the
following code
===...
|
by: -Lost |
last post by:
In a recent programming class I was taking, another student went on and
on about how C was a dead language. I tried my best to explain why this
was not so, but he was more able to explain things...
|
by: rembremading |
last post by:
Hi all!
The following piece of code has (for me) completely unexpected behaviour.
(I compile it with gcc-Version 4.0.3)
Something goes wrong with the integer to float conversion.
Maybe somebody...
|
by: eschneider |
last post by:
Just some common issues with WS:
Using custom objects: When objects change, seems you are always fixing some
issue. Update references, which sometimes does not work.
Deployment:
Weird errors...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |