extern
extern int i. so is it a definition or a declaration?
I'm completely confused.
the famous stupid example x/y:
we have 2 cpp files
the first file
extern int x;
int y = x+1;
Second ... hly speaking no declaration, but already a full-fledged definition, since it acquires both the address and the value zero ???
DllImport, Kernel32.dll
I wanted to understand how the static methods of the Console class work, and I wanted to write my own WriteLine method. I rea ... t figure it out any further.
Does anyone know how the Write, Read methods work in the Console class? Thank you in advance.
multiple definition in c++
There is such a file header (header).
#ifndef GLOBAL_H
#define GLOBAL_H
enum { SPRITE, PANEL };
struct global {
int ... mT2vV.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
makefile:4: recipe for target 'all' failed