Uther >
[troll] Ben c'est pas parceque . et :: ont une signification différente que le fait d'avoir créé :: est logique. [/troll]
namespace bidule;
class a {
public: a() {return;};
~a() {return;};
}
class bidule {
public: bidule() {return;};
~bidule() {return;};
int a;
}

#include <algorithm> #include <vector> vector std;


GoldenCrystal :
ben tu sais, tu as le droit d'utiliser extern en C++ aussi...
Tu mets ça dans le headerstruct __TPE_FILE { unsigned char header[4]; //Octets descripteur unsigned char compress; //Type de compression 0=RLE 1=TPE... unsigned char extension_size; //Taille de l'extension }; extern __TPE_FILE TPE_FILE; // au passage, c'est gore de donner des noms en majuscules à des variables...
Et, par exemple, dans un fichier globals.cpp#include "header.h" __TPE_FILE TPE_FILE; // autres déclarations globales
Ton code://Headers des différents formats et variables données en paramètres //TPE HEADER extern struct _TPE_FILE { unsigned char header[4]; //Octets descripteur unsigned char compress; //Type de compression 0=RLE 1=TPE... unsigned char extension_size; //Taille de l'extension unsigned long size; //Taille du fichier non compressé } TPE_FILE; [b]struct _TPE_FILE TPE_FILE;[/b]


As-tu jamais programmé en C ? Parce que je me pose des questions qd même...


[lib.global.names] 17.3.3.1.2 Global names
1 Certain sets of names and function signatures are always reserved to the implementation:
— Each name that begins with an underscore and either an uppercase letter or another underscore (2.11) is
reserved to the implementation for any use.
— Each name that begins with an underscore is reserved to the implementation for use as a name with file scope or within the namespace std in the ordinary name space.
Pollux
:[lib.global.names] 17.3.3.1.2 Global names
1 Certain sets of names and function signatures are always reserved to the implementation:
— Each name that begins with an underscore and either an uppercase letter or another underscore (2.11) is
reserved to the implementation for any use.
— Each name that begins with an underscore is reserved to the implementation for use as a name with file scope or within the namespace std in the ordinary name space.
(il y a aussi une contrainte sur les noms qui contiennent un "__" n'importe où dans le nom)
— All identifiers that begin with an underscore and either an uppercase letter or anotherMais je ne comprends pas trop la deuxième ligne
underscore are always reserved for any use.
— All identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordinary and tag name spaces.
Ça veut dire quoi "with file scope" ?
(ce n'est qu'un draft, pas un standard définitif).
Tu peux donner le titre?
[lib.global.names] 17.4.3.1.2 Global names
1 Certain sets of names and function signatures are always reserved to the implementation:
— Each name that contains a double underscore (_ _) or begins with an underscore followed by an uppercase
letter (2.11) is reserved to the implementation for any use.
— Each name that begins with an underscore is reserved to the implementation for use as a name in the
global namespace.165)
165) Such names are also reserved in namespace ::std (17.4.3.1).
Pollux :
Je ne vois pas de 6.2.3Tu peux donner le titre?