men min compiler kommer med disse fejl og kan ikke finde ud af hvad der er galt
In file included from OOPtest1.c:1: OOPtest1.h:33: error: `void Integer_Count::increment()' and `void Integer_Count::increment()' cannot be overloaded OOPtest1.h:34: error: expected unqualified-id before '{' token OOPtest1.h:38: error: `void Integer_Count::decrement()' and `void Integer_Count::decrement()' cannot be overloaded OOPtest1.h:39: error: expected unqualified-id before '{' token OOPtest1.h:44: error: `char* Integer_Count::asBase(int)' and `char* Integer_Count::asBase(int)' cannot be overloaded OOPtest1.h: In member function `char* Integer_Count::asBase(int)': OOPtest1.h:53: error: `itoa' undeclared (first use this function) OOPtest1.h:53: error: (Each undeclared identifier is reported only once for each function it appears in.) OOPtest1.h:54: error: `strcpy' undeclared (first use this function) OOPtest1.h:61: error: `strcat' undeclared (first use this function) OOPtest1.h:65: error: expected `;' before '}' token OOPtest1.h:45: warning: address of local variable `answer_string' returned In file included from /usr/include/c++/3.4/backward/iostream.h:31, from OOPtest1.c:2: /usr/include/c++/3.4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. In file included from /usr/include/c++/3.4/cstring:51, from /usr/include/c++/3.4/i486-linux/bits/c++locale.h:41, from /usr/include/c++/3.4/iosfwd:46, from /usr/include/c++/3.4/ios:44, from /usr/include/c++/3.4/ostream:45, from /usr/include/c++/3.4/iostream:45, from /usr/include/c++/3.4/backward/iostream.h:32, from OOPtest1.c:2: /usr/include/string.h: At global scope: /usr/include/string.h:83: error: `char* strcpy(char*, const char*)' used prior to declaration /usr/include/string.h:90: error: `char* strcat(char*, const char*)' used prior to declaration
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
g++-3.4 hjelptiloop.c hjelptiloop.c: In member function `char* Integer_Count::asBase(int)': hjelptiloop.c:62: error: `itoa' undeclared (first use this function) hjelptiloop.c:62: error: (Each undeclared identifier is reported only once for each function it appears in.)
iostream.h er en pre AnsiC++ headerfil. Den er blevet erstattet af iostream hvor alt er puttet ind i et namespace kaldet std
Min GCC giver følgende warning hvis jeg inkluderer iostream.h:
G:/Win32App/mingw/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.