Hey, I'm working on a project incorporating runtim e modules. Several class interfaces are given which are then loaded dynamically. The library doesn't need to know about any of these classes except...
Type: Posts; User: Brafil
Hey, I'm working on a project incorporating runtim e modules. Several class interfaces are given which are then loaded dynamically. The library doesn't need to know about any of these classes except...
Depends mostly on IO speed. Appending three characters to a line (even if it's ten million lines) shouldn't be too slow. Read one line at a time, strcat the characters and write.
If you want to be portable, you can use limits.h and then check for a variable that matches U<TYPE>_MAX == 1 << 31.
AFAIK, it does not work correctly in MSVC. The return value etc.
@jephtah: Don't forget alignment. The size of a structure may be more than the individual sizes of its elements.
Generally like this. For safety reasons.
C:\\Program Files\\Program\\Program.cpp
This looks like an assignment. If you've read the rules, you'd know that we won't do your homework for you, just help if you have a question.
Looking up a reference for netdb.h should be enough.
Either use long long or long double, both should work correctly up to 15 digits. No need for extra libraries.
(There was a touch of irony in it)
I know that this is used, but why -0? For IDK, but sounds bad?
It was the first time I ever did this, have mercy!
Yes. It's undefined.
1. sscanf might as well read too many characters, use "%c"
2. In every case it will append a NUL at the end of the array. If you enter a letter, the NUL will go past the array, invalidating memory.
@Elysia: +1
Internally AFAIK the processor just treats them as 80 bit-doubles. If they take 16 bytes, then this is far less efficient.
They take 10 bytes each. That means, any meaningful table would eat a huge amount of resources. f.e., a sin table with 0.01 precision would take (PI * 2 / 0.01) * 10 = about 6 kilobytes. Also apply...
I wish I lived in the US. That looks more than spectacular. I love Nintendo. They are one of the best game companies IMO.
...yet. New questions have always existed, it's just a matter of solving them.
Really hate those paranoid economists. They damage themselves with this nonsense more than they gain. And all customers / crackers, too.
Maybe if they started producing more games that are...
Hmm... seems quite right. But really, some things just are without us knowing why.
Einstein stated that E=mc². Every object carries energy related to its mass. Nice idea.
Then some other...
I doubt that will help. Assert is also a very good tool, but it will be difficult to impossible to unit test with assert unless you hard-code your tests there.
If you declare it an array, the compiler automatically knows its size.
Negative energy doesn't mean negative mass if you meant that. It should be the absolute value of the mass.
Altho I'm not sure about that asymmetry. Wasn't it that certain things just were...
It's also possible to declare text_base as an array and use sizeof text_base.
Right. Although that is something I have never fully grasped...
Actually, it should be E²=(mc²)² which turns out to be E=[+-]mc².
I hope the recent CERN experiment will take us further. We are about the same level on quantum mechanics as decades ago.