14 questions
I'm confused when to write reinterpret_cast and static_cast.As far as I know, if you decide on type when compile, you use static castreinterpret_cast is in the case ofI know it's a feature that you sh...
MyString.h (header source)// CMyString class internal instance and method declarationclass CMyString{public: explicit CMyString(const char* paramstr); CMyString(const CMyString &rhs); ~CMyString(v...
Constant *putsFunc = module->getOrInsertFunction(puts, putsType);There's a code like this.If I write it like this, the return type on the right is automatically casted as the return type on the lef...
#include <stdio.h>int main(void){ int c; float d = 5.6, e = 8.4; c = d + e; printf(c = d + e = %.2f \n, (float)c); return 0;}Isn't float d=5.6 and float=8.4 automatically converted to int, so it...
« | - 2 - |
© 2024 OneMinuteCode. All rights reserved.