Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!jpl-devvax!alexa!russb From: russb@alexa.JPL.NASA.GOV (Russ Brill) Newsgroups: comp.lang.c++ Subject: Re: form() is broken Message-ID: <1991May10.200911.28671@jpl-devvax.jpl.nasa.gov> Date: 10 May 91 20:09:11 GMT Sender: usenet@jpl-devvax.jpl.nasa.gov (For NNTP so rrn will be able to post) Reply-To: russb@alexa.JPL.NASA.GOV (Russ Brill) Organization: Jet Propulsion Laboratory (NASA) Lines: 17 Nntp-Posting-Host: sampson >The form function in C++, i.e.: > > cout << form(,) ; > >seems to be broken. Let p be a pointer to a vector of floats. > > cout << p[1]; // this works > > cout << form("%f",p[1]) ; // IOT Trap (Core dumped) > We've also had problems with form(). Specifically, something like form("%-20.10s","abc") compiles just fine, but it generates 20 blanks. This is on Sun's cfront 2.0 on a Sparc (works just fine on our Sun 3's).