Beginners - June 2023

Command line parser for scientific computing
 
Greetings, for my PhD I often write numerical simulations like that: int main(int argc, char *argv ) { const int method = atoi(argv ); // 0 for m...
[10 replies] Last: Here's an example using getopt(). - It prints a usage message if there... (by dhayden)
pointers
 
Hi! If I write in c: uint32_t* virtaddr; Does it mean that the pointer indexing is in offset of 32 bits? For example: virtaddr = 32 bit value virtaddr = ...
[5 replies] Last: I would point out that if you do any "pointer math" on your pointer th... (by deleted account xyzzy)
unable to add element to std:map when variable is in a library
 
I have this code: https://pastebin.com/5NfEveih compiled with this command: g++ -fPIC -shared -o libjson.so libjson.cp and this code: https://pastebin.co...
[6 replies] Last: I solve the issue. But wouldn't that have been a compiler issue? Not... (by Ganado)
  Archived months: [may2023] [jul2023]

This is an archived page. To post a new message, go to the current page.