It is basic OOP in C. Look it up.
HN user
cdevfr
Sure it is possible. Just pass the constructor your type:
my_type* t = New( MyType ) ;
Where MyType passes information to New() of what to create.
...
I don't know what I'm downvoted.
This clearly works. The naive solution without macros would have MyType be a simple integer and New() has a switch statement. But it is easy to avoid that.
How does that help your point. You still haven't provided any information that would back your claims.
You are getting some text with a picture, that is not a working site.
500 Internal Server Error
If the page loads that doesn't mean it works correctly.
The Pirate Bay earned up to 35 million kronor ($5.2 million) in advertising revenue from the file sharing website, >>>film companies maintained<<<
And literally the second paragraph in your link:
The claims were dismissed by Jonas Nilsson, legal counsel for one of the defendants, Fredrik Neij.
Nilsson argued that instead of being a profits earner most of the work to keep The Pirate Bay running had been undertaken on a voluntary unpaid basis.
"The revenues, which were not very large, went to buying new equipment," Nilsson said.
If you know the character length of the text and it isn't too hard. Take the 26 characters + 6 punctuations and try every possible combination. Hamlet has 31842 words, the average word is 5+1 characters, which gives 191052 characters.
32^191052 == 10^(10^5.458731365078367)
Compared to their result
10^(10^5.198179689961317)
I'm interested in particle physics but still I don't see any motivation to do it. How can I determine I learned something, how can I compare my progress to others. It just feels like I'm doing a captcha for them.
They should licence a form of StackOverflows's system which basically uses a skinner box approach which is very addicting and still rewarding if you get some positive benefit out of it.