Post #166,004
7/26/04 12:31:43 AM
|
Service exists
Go take the GMAT. Administered by a private company - using computers that track times- no gadgets allowed and you are video taped while you take it.
I don't think its worth while working on proctoring techniques. Rather, we have to instill the values in the first place. We do a lousy job at that.
This is actually shaping up to be the first semester I haven't found blatent cheating in my class (and its small - only 15 or so will finish it).
OTOH, my tests require you to write code - no multiple guess - no short answer - no formulas - write a function called this taking that returning the other called something that does this.
The only way to learn to program is to write code.
That was lovely cheese.
--Wallace, The Wrong Trousers
|
Post #166,011
7/26/04 1:23:38 AM
|
ICLRPD (new thread)
Created as new thread #166010 titled [link|/forums/render/content/show?contentid=166010|ICLRPD]
-- Steve
|
Post #166,102
7/26/04 1:53:13 PM
|
Uh-ohh! Don't give them that one in your C++ class!
"Write a function called this..."
I doesn't think so....
;-\ufffd
jb4 shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
|
Post #166,103
7/26/04 1:54:04 PM
7/26/04 1:55:03 PM
|
There's an A for the student that can make that work ;-)
That was lovely cheese.
--Wallace, The Wrong Trousers
|
Post #166,106
7/26/04 1:57:58 PM
|
All they have to do is use a 2.x gcc compiler...
/me ducks for cover...
jb4 shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
|
Post #166,111
7/26/04 2:10:54 PM
|
Class compiler is gcc 3.3
That was lovely cheese.
--Wallace, The Wrong Trousers
|
Post #166,107
7/26/04 1:59:58 PM
|
Hmm
Does a "Kobyashi Maru" solution work? That is, modify the compiler source code?
(BTW is this possible, seriously? Or is "this" a sacred token?)
-drl
|
Post #166,159
7/26/04 5:01:46 PM
|
It's a sacred token
but that doesn't mean that a minor compiler fiddle could change the token name to something like 'self' (that's for you, Conrad...)
jb4 shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
|
Post #166,171
7/26/04 6:07:17 PM
|
self is what all the real OO languages use
That was lovely cheese.
--Wallace, The Wrong Trousers
|
Post #166,160
7/26/04 5:01:58 PM
7/26/04 5:02:22 PM
|
Dupe...Ignore
jb4 shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
Edited by jb4
July 26, 2004, 05:02:22 PM EDT
|
Post #166,163
7/26/04 5:12:49 PM
7/26/04 5:13:52 PM
|
#define this THIS
Using "this" directly is not a frequent occurence in C++. As long as you don't, the above think will work. And if you do, you can always say
#undef this
before and
#define this THIS
after.
Can you say code obfuscation? I knew you could.
Edit: btw, in a cource on OO in C++, this deserves an F, not an A.
8<-------------------------------------------
#include <stdio.h>
#define this THIS
class A { public: A() : this(10){} void printThis() { printf("%d\\n", this); } private: int this; };
int main(int argc, char *argv[]) { A a; a.printThis(); }
--
"...was poorly, lugubrious and intoxicated."
-- Patrick O'Brian, "Master and Commander"
Edited by Arkadiy
July 26, 2004, 05:13:52 PM EDT
|
Post #166,165
7/26/04 5:15:15 PM
|
Or for extra emphasis:
#define this THIS *THIS*, DAMMIT!
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #166,197
7/26/04 9:43:30 PM
|
ICLRPD (new thread)
Created as new thread #166196 titled [link|/forums/render/content/show?contentid=166196|ICLRPD]
===
Implicitly condoning stupidity since 2001.
|
Post #166,175
7/26/04 7:04:00 PM
|
That shouldn't be allowed then
On VC++ 6
#define this THIS void main(void) {}
compiles OK
but
#define { BEGIN #define } END
void main(void) BEGIN END
doesn't.
So it's a nethertoken.
-drl
|
Post #166,177
7/26/04 7:12:40 PM
|
That's because you've got your #DEFINE statements backwards.
|
Post #166,178
7/26/04 7:16:55 PM
|
-ugh-
-drl
|