Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I paste data to other windows (who ever is accepting) ? Pin
Yovav3-Apr-09 20:29
Yovav3-Apr-09 20:29 
QuestionHow to get a huge struct array? Pin
jebbe2-Apr-09 16:02
jebbe2-Apr-09 16:02 
AnswerRe: How to get a huge struct array? Pin
Luc Pattyn2-Apr-09 16:41
sitebuilderLuc Pattyn2-Apr-09 16:41 
JokeRe: How to get a huge struct array? Pin
Niklas L2-Apr-09 23:35
Niklas L2-Apr-09 23:35 
GeneralRe: How to get a huge struct array? Pin
jebbe3-Apr-09 20:24
jebbe3-Apr-09 20:24 
AnswerRe: How to get a huge struct array? Pin
Stuart Dootson2-Apr-09 21:19
professionalStuart Dootson2-Apr-09 21:19 
GeneralRe: How to get a huge struct array? Pin
jebbe3-Apr-09 20:28
jebbe3-Apr-09 20:28 
AnswerRe: How to get a huge struct array? Pin
Iain Clarke, Warrior Programmer3-Apr-09 1:51
Iain Clarke, Warrior Programmer3-Apr-09 1:51 
That's 1,267,650,600,228,229,401,496,703,205,376...
Are you doing a simulation of all of the fundamental particles in the universe?

And a 64bit processor isn't going to help you either. If each element took a byte, thats 1,267,650,600,228,229,401 Terabites (using vendors definition!) Assuming you had a bunch of terabite drives in RAID999, and each drive takes 10cm x 2cm x 20cm, you could fit 10x50x5 (in a cubic metre. That's with no cables or packaging.

So, 507060240091291760 m^3. Now, a container can hold approximately 75 cubic metres. Let's Assuming you squich it really hard to 100m^3. That's 5070602400912917 containers.

Looking at http://en.wikipedia.org/wiki/Container_ship[^], the largest container ship displaces 157,000 tons of water. Which is 157,000 cubic metres of cargo (assuming the boat is made of plywood). Thats 3229683057906 of these container ships.

Let's assume your local port can handle ten of these ships every ten hours, so averaging one an hour. It would take 3686852 centuries to just deliver this to you.

If they just delivered the last one now, they'd have had to start manufacturing them a 1/3rd of a million years BC.

I think you need to take another look at your algorithm, before I have to calculate how much mass you'd have to destroy in a matter-antimatter collider just to power the hard drive array for an hour.

Iain.

(Can you tell it's lunchtime?)

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

GeneralRe: How to get a huge struct array? Pin
Niklas L3-Apr-09 2:58
Niklas L3-Apr-09 2:58 
GeneralRe: How to get a huge struct array? Pin
Iain Clarke, Warrior Programmer3-Apr-09 3:13
Iain Clarke, Warrior Programmer3-Apr-09 3:13 
GeneralRe: How to get a huge struct array? Pin
jebbe3-Apr-09 20:49
jebbe3-Apr-09 20:49 
JokeRe: How to get a huge struct array? Pin
Niklas L6-Apr-09 22:34
Niklas L6-Apr-09 22:34 
GeneralRe: How to get a huge struct array? Pin
Iain Clarke, Warrior Programmer6-Apr-09 22:40
Iain Clarke, Warrior Programmer6-Apr-09 22:40 
GeneralRe: How to get a huge struct array? Pin
Niklas L6-Apr-09 23:15
Niklas L6-Apr-09 23:15 
AnswerRe: How to get a huge struct array? Pin
CPallini3-Apr-09 3:01
mveCPallini3-Apr-09 3:01 
GeneralRe: How to get a huge struct array? Pin
jebbe3-Apr-09 20:52
jebbe3-Apr-09 20:52 
AnswerRe: How to get a huge struct array? Pin
sashoalm4-Apr-09 2:55
sashoalm4-Apr-09 2:55 
Questionstrange character Pin
ruthlesspker2-Apr-09 15:17
ruthlesspker2-Apr-09 15:17 
AnswerRe: strange character Pin
Luc Pattyn2-Apr-09 16:44
sitebuilderLuc Pattyn2-Apr-09 16:44 
AnswerRe: strange character Pin
«_Superman_»2-Apr-09 19:10
professional«_Superman_»2-Apr-09 19:10 
GeneralRe: strange character Pin
ruthlesspker2-Apr-09 21:33
ruthlesspker2-Apr-09 21:33 
GeneralRe: strange character Pin
krmed3-Apr-09 0:37
krmed3-Apr-09 0:37 
QuestionglDrawPixels help Pin
Member 33753342-Apr-09 12:39
Member 33753342-Apr-09 12:39 
AnswerRe: glDrawPixels help Pin
Cedric Moonen2-Apr-09 20:16
Cedric Moonen2-Apr-09 20:16 
GeneralRe: glDrawPixels help Pin
Member 33753343-Apr-09 3:05
Member 33753343-Apr-09 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.