Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #9570

Re: Am I not confident enuff to do this?

From "Waldek M." <wm@localhost.localdomain>
Newsgroups comp.lang.c++
Subject Re: Am I not confident enuff to do this?
Date 2011-08-31 18:43 +0200
Organization Mojito.pl
Message-ID <14z82ywojk4sg.dlg@localhost.localdomain> (permalink)
References <rchq57132mpjq7hc75ccb5ivcfin294vl5@4ax.com> <Xns9F51F274DC701myfirstnameosapriee@216.196.109.131> <gibr57h6bgu8v9b254posmu39od3hce49f@4ax.com> <9c5pu6F5dgU6@mid.individual.net>

Show all headers | View raw


On Wed, 31 Aug 2011 16:00:06 +1200, Ian Collins wrote:
>>>> Without defining any new variable or passing an argument to function,
>>>> I want you to be able to increment a number every time this method is
>>>> called. (Chose a language of your choice and write a fully compilable
>>>> method)

> Given the loose wording, how about
> 
> int f() { return 1+1; }

LOL!

Though I think it doesn't yet make it.

class F {int f() { return 1+1; } };  would.


Br.
Waldek

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Am I not confident enuff to do this? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-08-30 16:31 -0400
  Re: Am I not confident enuff to do this? Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-30 15:50 -0500
    Re: Am I not confident enuff to do this? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-08-30 23:50 -0400
      Re: Am I not confident enuff to do this? Ian Collins <ian-news@hotmail.com> - 2011-08-31 16:00 +1200
        Re: Am I not confident enuff to do this? "Waldek M." <wm@localhost.localdomain> - 2011-08-31 18:43 +0200
    Re: Am I not confident enuff to do this? Juha Nieminen <nospam@thanks.invalid> - 2011-08-31 06:24 +0000
  Re: Am I not confident enuff to do this? hanukas <jukka@liimatta.org> - 2011-08-31 01:13 -0700
    Re: Am I not confident enuff to do this? Edek <edek.pienkowski@gmail.com> - 2011-08-31 22:55 +0200
  Re: Am I not confident enuff to do this? Krice <paulkp@mbnet.fi> - 2011-09-01 00:00 -0700
    Re: Am I not confident enuff to do this? "hugo_ribeira@hotmail.com" <hugo_ribeira@hotmail.com> - 2011-09-01 03:27 -0700
  Re: Am I not confident enuff to do this? James Kanze <james.kanze@gmail.com> - 2011-09-01 15:56 -0700
    Re: Am I not confident enuff to do this? red floyd <no.spam.here@its.invalid> - 2011-09-01 17:01 -0700
      Re: Am I not confident enuff to do this? Joe Greer <jgreer@doubletake.com> - 2011-09-02 15:34 +0000
        Re: Am I not confident enuff to do this? Paavo Helde <myfirstname@osa.pri.ee> - 2011-09-02 10:47 -0500
  Re: Am I not confident enuff to do this? Daniel Bradley <daniel@bradley.mx> - 2011-09-07 14:58 +0000
  Re: Am I not confident enuff to do this? "Thomas J. Gritzan" <phygon_antispam@gmx.de> - 2011-09-12 03:31 +0200

csiph-web