robinbloke: (Default)
[personal profile] robinbloke
How much storage space do you think a CString object (a collection of characters, words, etc) in MFC can hold, roughly?

a) 1 k (=1024 characters = 2^10)
b) 10 k
c) 64 k (The usual addressable size of a intel based memory block)
d) 128 k
e) 1 meg (=1024 k)
f) 1 gig (=1024 meg)

First correct guess (one guess each!) gets a prize

Date: 2001-11-06 07:18 am (UTC)
From: [identity profile] sesquipedality.livejournal.com
I'm guessing (a) because that would be really s*** is is thus most likely to be the correct answer.

Date: 2001-11-06 07:42 am (UTC)
From: [identity profile] robinbloke.livejournal.com
Amazingly enough, no!

Date: 2001-11-06 07:18 am (UTC)

Date: 2001-11-06 08:44 am (UTC)
From: [identity profile] puddingcat.livejournal.com
Well, I'm only 15% geek so I went for the humour option. For some reason it didn't show up on the journal, but I'm sure you included it really...

Umm...

Date: 2001-11-06 07:27 am (UTC)
From: [identity profile] borusa.livejournal.com
Isn't the answer INT_MAX bytes?

Which is, according to my notes..2147483647...

Robert

Re: Umm...

Date: 2001-11-06 07:34 am (UTC)
From: [identity profile] robinbloke.livejournal.com
looking it up in notes is cheating!

Yep, It's INT_MAX bytes, which is 2147483647 byes, = 2097151 k = 2047 meg = around 2 gig = answer f, closer than the others
Which is handy as I expected it to only be 64k and I needed a huge buffer for storing an INI file

The prize is a drink or a Kendal Mint Cake, your choice

Re: Umm...

Date: 2001-11-06 02:40 pm (UTC)
From: [identity profile] purpleheather.livejournal.com
Oooh - honey, take the mint cake!!

Re: Umm...

Date: 2001-11-07 12:31 am (UTC)
From: [identity profile] robinbloke.livejournal.com
Mint cake it is then, since I guess Robert knows whats good for him ;)

Profile

robinbloke: (Default)
robinbloke

January 2016

S M T W T F S
     12
3456789
10111213141516
17181920212223
24 252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 19th, 2026 11:26 pm
Powered by Dreamwidth Studios