[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Looping or optimizing a set of non sequential numbers?



PureBytes Links

Trading Reference Links

Hi,

Sorry for the absence. Looks like others have helped you out. As for 
your last question, the %g is as described in the link provided by 
AB. The \n is not associated with the % token at all, but rather is 
just part of the string being printed and is an escape character 
representing a "newline". Other similar characters are \t for tab, 
etc.

http://msdn.microsoft.com/en-us/library/h21280bw(VS.80).aspx

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "ozzyapeman" <zoopfree@xxx> wrote:
>
> Thanks! That finally works.
> 
> One follow-up question on these printf special characters, like "%
g\n".
> 
> Where can I find more info on these? The AmiBroker help guide points
> me to the following microsoft page. But the definitions there 
for "g"
> don't seem to match.
> 
> http://msdn.microsoft.com/en-us/library/hf4y5e3w(VS.80).aspx
> 
> Also, in the AB help guide, they give an example of %gn without the 
\.
> But in the snippet below, you use a \. 
> 
> I can't seem to find any other explanations in the help guide for
> these special characters.
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "tuzo_wilson" <j.tuzo.wilson@> 
wrote:
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "ozzyapeman" <zoopfree@> wrote:
> > >
> > > Thanks on the Count++. It's an improvement. But I still get 
wrong
> > results:
> > 
> > Oops...don't increment before writing out your data:
> > 
> >    good[count] = StrToNum(fgets(fh));
> >    printf("Number: %g\n", good[count] ); 
> >    count++;
> > 
> > That should work.
> > 
> > 
> > Tuzo
> >
>



------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/