Category Archives: programming
Basic source/headers structure in c/c++
Just as another cheatsheet, took from here, as usually though. If you want to use a function in multiple source files (or rather, translation units), then you place a function declaration (i.e. a function prototype) in the header file, and the definition in one source … Continue reading
C dot and arrow (. / ->) – this is what I have to perceive
Arrow is just the dot version while accessing elements of a struct/class that is a pointer instead of a reference. Why parenthesis are in use? . is standard member access operator that has a higher precedence than * pointer operator. To make the … Continue reading
C / C++ basic input/output – it’s a little about streams
While I’ve solved some algorithm problems to practice a little with coding, my shame, it turned out I’ve never known how to handle standard input/output streams stdin and stdout, trying to code them similar to console streams cin and cout. … Continue reading