Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Re: how to use ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 4069 of 4262
Post > Topic >>

Re: how to use float in array of structure

by "Jim Langston" <tazmaster@[EMAIL PROTECTED] > Mar 15, 2008 at 12:51 AM

Richard Heathfield wrote:
> juned2285@[EMAIL PROTECTED]
 said:
>
>> On Mar 14, 1:22 pm, Richard Heathfield <r...@[EMAIL PROTECTED]
> wrote:
>>> juned2...@[EMAIL PROTECTED]
 said:
>>>
>>>> while writing these codes, i face an error
>>>> struct st
>>>> {
>>>> char name[30];
>>>> floatper;
>>>> }s[5];
>>>
>>>> when iusethisstructure, compiler gives the linking error.
>>>> so how can i remove this error.
>>>
>>> There's nothing wrong with the code you've posted. Your error is
>>> not in the code that you have shown, but in the code that you have
>>> not shown.
>>>
>> i am using the turboc compiler.
>
> That's nice. Just so long as you're using a compiler for either C or
> C++, that'll be fine.
>
>> compiler si unable to link the
>> floating field and i am not getting how to link this field.
>
> There's nothing wrong with the code you've posted. Your error is not
> in the code that you have shown, but in the code that you have not
> shown.

Show the actual code you are trying to compile.  Does this compile for
you?

struct st
{
   char name[30];
   float per;
}s[5];

int main()
{
}

-- 
Jim Langston
tazmaster@[EMAIL PROTECTED]

 




 7 Posts in Topic:
how to use float in array of structure
juned2285@[EMAIL PROTECTE  2008-03-14 00:23:56 
Re: how to use float in array of structure
Richard Heathfield <rj  2008-03-14 08:22:24 
Re: how to use float in array of structure
Bart van Ingen Schenau &l  2008-03-14 22:38:56 
Re: how to use float in array of structure
juned2285@[EMAIL PROTECTE  2008-03-14 22:16:18 
Re: how to use float in array of structure
Richard Heathfield <rj  2008-03-15 07:22:48 
Re: how to use float in array of structure
"Jim Langston"   2008-03-15 00:51:20 
Re: how to use float in array of structure
Richard Heathfield <rj  2008-03-15 07:58:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 13:01:30 CDT 2008.