public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: how to use time() in g++ for random number generator seed?
       [not found]   ` <CAH6eHdS58xtzkOfx2iNi4FnVZWhhf627k_k=6Nx+4x0VNXyaKA@mail.gmail.com>
@ 2011-07-27  4:02     ` eric
  2011-07-27 10:16       ` Jonathan Wakely
  0 siblings, 1 reply; 3+ messages in thread
From: eric @ 2011-07-27  4:02 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

On Tue, 2011-07-26 at 00:18 +0100, Jonathan Wakely wrote:
> On 22 July 2011 04:50, Sam Varshavchik <mrsam@courier-mta.com> wrote:
> > eric writes:
> >
> >> But, my g++ complain
> >> --------
> >> eric@eric-laptop:~/cppcookbook/ch11$ g++ Example11-11.cpp
> >> Example11-11.cpp: In function ‘int main()’:
> >> Example11-11.cpp:14:41: error: too few arguments to function ‘time_t
> >> time(time_t*)’
> >> /usr/include/time.h:186:15: note: declared here
> >> ------------
> >> Need your help to fix it and thanks a lot in advance, Eric
> >
> > The error message seems to be self-explanatory to me. If you're unsure,
> > consult the man page for time(2).
> >
> 
> Also, the libstdc++ mailing list is not for asking basic questions
> about how to call functions in the C standard library.  Stop wasting
> people's time by abusing the gcc mailing lists.
-----------------------------------------------------------
Please follow the link and read the final comment of other c++ program
s comment of g++

http://groups.google.com/group/comp.lang.c
++/browse_thread/thread/1a882052fdc240fa/5eed4699d7141d5e?lnk=gst&q=%3A%
3Atoupper%2C+eric#5eed4699d7141d5e

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to use time() in g++ for random number generator seed?
  2011-07-27  4:02     ` how to use time() in g++ for random number generator seed? eric
@ 2011-07-27 10:16       ` Jonathan Wakely
  2011-07-28  2:08         ` Jeffrey Walton
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Wakely @ 2011-07-27 10:16 UTC (permalink / raw)
  To: fsshl; +Cc: gcc-help

On 27 July 2011 05:02, eric <fsshl@att.net> wrote:
> On Tue, 2011-07-26 at 00:18 +0100, Jonathan Wakely wrote:
>> On 22 July 2011 04:50, Sam Varshavchik <mrsam@courier-mta.com> wrote:
>> > eric writes:
>> >
>> >> But, my g++ complain
>> >> --------
>> >> eric@eric-laptop:~/cppcookbook/ch11$ g++ Example11-11.cpp
>> >> Example11-11.cpp: In function ‘int main()’:
>> >> Example11-11.cpp:14:41: error: too few arguments to function ‘time_t
>> >> time(time_t*)’
>> >> /usr/include/time.h:186:15: note: declared here
>> >> ------------
>> >> Need your help to fix it and thanks a lot in advance, Eric
>> >
>> > The error message seems to be self-explanatory to me. If you're unsure,
>> > consult the man page for time(2).
>> >
>>
>> Also, the libstdc++ mailing list is not for asking basic questions
>> about how to call functions in the C standard library.  Stop wasting
>> people's time by abusing the gcc mailing lists.
> -----------------------------------------------------------
> Please follow the link and read the final comment of other c++ program
> s comment of g++
>
> http://groups.google.com/group/comp.lang.c
> ++/browse_thread/thread/1a882052fdc240fa/5eed4699d7141d5e?lnk=gst&q=%3A%
> 3Atoupper%2C+eric#5eed4699d7141d5e
>

G++ is correct.

http://gcc.gnu.org/onlinedocs/libstdc++/manual/strings.html

Now go away, you irritating fool.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to use time() in g++ for random number generator seed?
  2011-07-27 10:16       ` Jonathan Wakely
@ 2011-07-28  2:08         ` Jeffrey Walton
  0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Walton @ 2011-07-28  2:08 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: fsshl, gcc-help

On Wed, Jul 27, 2011 at 6:16 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 27 July 2011 05:02, eric <fsshl@att.net> wrote:
>> On Tue, 2011-07-26 at 00:18 +0100, Jonathan Wakely wrote:
>>> On 22 July 2011 04:50, Sam Varshavchik <mrsam@courier-mta.com> wrote:
>>> > [SNIP]
>>>
>>> Also, the libstdc++ mailing list is not for asking basic questions
>>> about how to call functions in the C standard library.  Stop wasting
>>> people's time by abusing the gcc mailing lists.
>> -----------------------------------------------------------
>> Please follow the link and read the final comment of other c++ program
>> s comment of g++
>>
>> http://groups.google.com/group/comp.lang.c
>> ++/browse_thread/thread/1a882052fdc240fa/5eed4699d7141d5e?lnk=gst&q=%3A%
>> 3Atoupper%2C+eric#5eed4699d7141d5e
>
> G++ is correct.
>
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/strings.html
>
> Now go away, you irritating fool.
I busted out laughing when I read that....

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-28  2:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1311295479.3791.6.camel@eric-laptop>
     [not found] ` <cone.1311306633.707369.12398.500@monster.email-scan.com>
     [not found]   ` <CAH6eHdS58xtzkOfx2iNi4FnVZWhhf627k_k=6Nx+4x0VNXyaKA@mail.gmail.com>
2011-07-27  4:02     ` how to use time() in g++ for random number generator seed? eric
2011-07-27 10:16       ` Jonathan Wakely
2011-07-28  2:08         ` Jeffrey Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).