hi guys i saw this code in github ```//removed for brevity void executionloop(void){ int ip; for(;(ip = ((int*)mem)[0]); ((int*)mem)[0]+=4){ int op = ((int*)mem)[ip]; in...
Hi guys I have 2 class: user and database in seperate files I wanna fetch data and return in user object. Fetch function defined in database class How that possible? (I writt...
VOID EXEFunc() { PVOID pv = DLLFunc(); heap free(pv); } PVOID DLLFunc() { heap return(malloc(100)); } hi guys it's written in the book with quotes below: "If both the EXE and ...
hi guys I wanna create object from std::chrono::day (e.g ```std::chrono::day d1;```) but i get error that day is not a type. but i'm confused. day is class in chrono and i've ...
hi guys why this is giving error in msvc? https://hastebin.com/idetosoxur.m error C2660: 'IO::WriteLog': function does not take 2 arguments message : see declaration of 'IO...
hi guys. i wrote a function that pass string by pointer i wanna store character of it so: string a = (*b)[0]; this gives me error( said its type is not string) why?
void methodA(){cout<<"methodA"<<endl;}; int methodB(){cout<<"methodB"<<endl;throw 3;}; void methodC(){cout<<"methodC"<<endl;}; int main() { try { methodA() ; met...
hi ,i'm newbie in javascript in this function what's the role of (table.rows[i]) or why defined function when return call? function onRowClick(tableId, callback) { var ta...
it's possible to call function in another source without include it?
using f_DLL_ENTRY_POINT= BOOL (WINAPI*)(args); hi what's that in right side? i know it's not function pointer(because of * position) why * is after function name?
thank u.i got it but my problem is something like that: Assuming int f(char) and ret_f which returns &f. int (*ret_f()) (char) { return &f; } what's that mean? it mean first b...
#define ROUND_DOWN(s) ~(s) int main() { cout<<sizeof(10)<<endl; // 4 cout<<ROUND_DOWN(22); // -23 cout<<ROUND_DOWN(10); // -11 return 0; } hi guys tilde is bit inversion b...
i wrote a program that take a string from user and when i want to convert it to char,give me segment fault error std::string a; char *b; cin>>a; str(b,a.c_string()); it becaus...
hi guys. what's the advantages c++ over rust? i really like c++ but some library not developed in c++ (like p2plib) i'm really confused
void p(char* a) { cout<<sizeof(a); } char a[20]; p(a); } it doen't work it because decay of array? how can calculate size of array when pass it to function?
what's dot among them? can u explain more?
hi what's the benefit of using template parameter pack without name? like this: template <typename...>
int e= ((int(*)())("blah"))(); hi what's in right side? which keyword i shoud search for that?
but why it's important in binary mode? we treated them just like 0 and 1 my code set fail bit after reading first byte and I dunno how to fix it
hi guys is it good solution to write configuration in separate file and include it in every src? i.e I defined a debug var macro and want to just enable and disable in one pla...