The most recent email I have from you is almost a month old, and I responded to that one.
Type: Posts; User: Robc
The most recent email I have from you is almost a month old, and I responded to that one.
>Got thrown of www.computerforum.com.
Does this tell us what to expect from you around here? ;)
>You know most women lie about their age to make themselves young, not older
Oh shush, you. :D
You could tuck all of the nasty stuff safely in an object to avoid switching on arbitrary attributes. That would clean up your function a bit:
class sample_list {
public:
sample_list(void...
The closest match to what you want is a pointer to void. That's the generic pointer type in C++ and you can assign any pointer to it. You might have some issues with dereferencing the pointer if you...
Standard C doesn't require there to be a screen, so what would this "no echo" really do when applied to a stream? What if the stream were redirected to a file? Even if you answer those questions...
>So which birthday is it? 81 or 78?
81.
>arrays were by far the easiest for me, then functions, then pointers and that is the order i was taught in.
A collection of homogeneous objects is easier to follow for a beginner than a callable...
I got into a rather long discussion of how typename works with C+++C_forever. You can search for posts by Prelude with the keyword "typename". :)
>it's strange that people first learn recursion by writing the factorial function
Not strange at all really. As you said, it's simple and easy to trace. That makes it a good candidate for a first...
>Oh.... Um... nevermind then....
That's about the reaction I was expecting. :D
>hm.... Rob....
Robin. :rolleyes:
>But I know that avatar, what show is it from?
Cowboy Bebop. :)
>RobC is now the official CProg Transvestite
Not that you'll believe me, but I really am a girl. :rolleyes:
>Does this mean you're no longer the moderator of the contest forum?
I still have...
>I'm actually really confused right now.
Don't worry, I think I'm the only one who isn't. :D Let's recap and fill in the blanks. My Prelude account wasn't working right so I made a new one. Using...
It should be case <blah>:, not case:<blah>:. You have extraneous colons lying around. :)
Just out of curiosity, how does that function calculate a factorial recursively? It really should look a bit more like this:
int f(int n)
{
if (n < 2) {
return 1;
}
return n *...
I so deserved that. :D
I'd really rather not go into it if it's all the same to you guys. :)
>But why the change in birthdays? Now thats the main question
I don't suppose you would accept me saying that it's a long story and you don't want to be bored by it?
1) In this case there's really no difference. But it's good practice to use the initializer list for constructors whenever you can. It never hurts and is sometimes a necessity, such as when...
>and how is that possible
How is what possible? For my account to break or for me to create a new one? The former I have no clue, the latter I just log out and click the register link.
>i got it you are the the clone of Prelude
My user settings seemed to be crippled for the Prelude account, so I made a new one. :)
>I sure do wonder why noone knows how to do any searching for answers themselves.
Why do actual work when eventually someone will do it for you? :D;)
>do you mean to tell me that it was YOU who gave Thantos a lap dance?
Don't tell me you actually believed that. :p
>P.S. Im a noob, what is modern c++?
Modern C++ isn't a compiler, it's what people call code that conforms to the current ISO standard rather than code that relies on older (usually deprecated)...
>but i found the Others write as
Not if they're writing serious code. This nasty trick is annoyingly common and error prone. The biggest problem is that most people who use it are unaware of when it...