LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] C initialistaion question.

[ILUG] C initialistaion question.

Conor Daly conor.daly at met.ie
Fri May 25 15:42:05 IST 2001


On Fri, May 25, 2001 at 11:16:01AM +0100 or thereabouts, Philip Reynolds wrote:
> Conor Daly's [conor.daly at met.ie] 46 lines of wisdom included:
> > Given:
> > 
> > int   a, b, c, d;
> > float g, h, i, j;
> > 
> > a=-999;
> > b=-999;
> > c=-999;
> > d=-999;
> > 
> > g=-999.9;
> > h=-999.9;
> > i=-999.9;
> > j=-999.9;
> > 
> > 
> > can I do something like
> > 
> > int   {a, b, c, d} =-999;
> > float {g, h, i, j} =-999.9;
> 
> a = b = c = d = -999;

Thanks to three who gave me that.  I knew that one already but I have about
33 each of int, float and short to deal with here and it would have been
nice to do them all in one swell foop (sorry, "fell swoop" there).

Conor.
-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064276 Fax +353 1 8064275
------------------------------------
  2:40pm  up 1 day,  1:43,  9 users,  load average: 0.04, 0.01, 0.00




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell