It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
Cavenagh: PS Learn Grammar while your at it.....
To be fair, her grammar is actually perfect for her dialect, whereas you're missing several counts of capitalization and punctuation.
avatar
Cavenagh: PS Learn Grammar while your at it.....
"You're."
avatar
zeogold: ... interruption of therapy ...
avatar
Alaric.us: You bastard! I read this whole exchange with a straight face, only getting mildly annoyed. And then, with this final post, you made me laugh. At work. You'll pay for this outage. I will complain to your dean. :D
It really is a shame his posts got deleted. Now people who read my posts won't understand half the jokes I made, like the "alpha male" reference or the point that he said he found me by searching "zeogold" and finding some user with this same name on a site asking a question about JavaScript, said that's cheating, and that he'll report me to the dean for asking this question.
Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.
low rated
avatar
zeogold: It really is a shame his posts got deleted. Now people who read my posts won't understand half the jokes I made, like the "alpha male" reference or the point that he said he found me by searching "zeogold" and finding some user with this same name on a site asking a question about JavaScript, said that's cheating, and that he'll report me to the dean for asking this question.
Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.
Abusing the power of psychology to make people laugh at work. Definitely complaining to dean. =)
avatar
ZFR: But I *do* miss them. Slaugh's murder mystery, Cyraxpt's Let's play a game... Come back!
avatar
Cyraxpt: Yeah... no, i can't bother myself to do that when this community doesn't even bother to fight for better conditions.
I fully understand. Still sad to see those go.
avatar
zeogold: Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.
Come on, now you gave it away. :(

Could have been priceless material for more funny dialogues in the future.
avatar
zeogold: Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.
avatar
PaterAlf: Come on, now you gave it away. :(

Could have been priceless material for more funny dialogues in the future.
To be fair, I've said it across multiple threads in the past, none of which he's apparently ever seen.
Don't worry though, the secret that I'm actually an innkeeper in my 40s living in the Keweenaw is still safe.
low rated
avatar
Alaric.us: You bastard! I read this whole exchange with a straight face, only getting mildly annoyed. And then, with this final post, you made me laugh. At work. You'll pay for this outage. I will complain to your dean. :D
avatar
zeogold: It really is a shame his posts got deleted. Now people who read my posts won't understand half the jokes I made, like the "alpha male" reference or the point that he said he found me by searching "zeogold" and finding some user with this same name on a site asking a question about JavaScript, said that's cheating, and that he'll report me to the dean for asking this question.
Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.
At least the JavaScript code can be found in a quote in my post.

Anyway, does anyone know why the line of C code

int x = x;
is even legal in the first place? (It is; as I said, the code I posted surprisingly does compile.)
avatar
dtgreene: At least the JavaScript code can be found in a quote in my post.
Oh, true. He can still sue me with that. How kind of you.
avatar
zeogold: Don't worry though, the secret that I'm actually an innkeeper in my 40s living in the Keweenaw is still safe.
Smile suppression systems...overloading!!
low rated

int x = x;
avatar
dtgreene: is even legal in the first place? (It is; as I said, the code I posted surprisingly does compile.)
It shouldn't build. Visual Studio, for instance doesn't allow this. I get an error: "uninitialized variable used." Perhaps something about your compiler settings?
low rated
avatar
dtgreene: is even legal in the first place? (It is; as I said, the code I posted surprisingly does compile.)
avatar
Alaric.us: It shouldn't build. Visual Studio, for instance doesn't allow this. I get an error: "uninitialized variable used." Perhaps something about your compiler settings?
Is the statement within a function (like main())?

If I put like line outside a function I get an error ("initializer element is not constant"), but if I put it inside a function the compiler happily accepts this code.

Also, did you know that the following is legal C (but not C++) (this example is from the book "Expert C Programming: Deep C Secrets")?

char x[3] = "Bob";
avatar
Cavenagh: PS Learn Grammar while your at it.....
avatar
Alaric.us: "You're."
Sarcasm :P

have a good weekend, I'm off to get blotto
low rated
avatar
Alaric.us: It shouldn't build. Visual Studio, for instance doesn't allow this. I get an error: "uninitialized variable used." Perhaps something about your compiler settings?
avatar
dtgreene: Is the statement within a function (like main())?

If I put like line outside a function I get an error ("initializer element is not constant"), but if I put it inside a function the compiler happily accepts this code.

Also, did you know that the following is legal C (but not C++) (this example is from the book "Expert C Programming: Deep C Secrets")?

char x[3] = "Bob";
avatar
dtgreene:
Yea it was within main, although it seems that I was testing in a C++ project, not C.

And no, I had no idea. =) I'm not a C/C++ developer so I'm not familiar with the nuances.
avatar
Alaric.us: "You're."
avatar
Cavenagh: Sarcasm :P
"It's just a prank bro!"
Post edited November 18, 2016 by phaolo