RE: [Dev-C++] execution of a string with system()
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Stringer, A. <Adr...@as...> - 2002-09-18 15:19:26
|
--- #include "stdio.h" #include "string.h" #include "stdlib.h" --- I may be wrong here, and if so feel free to slap me, but I think that ought to be #include <cstdio> #include <cstring> #include <cstdlib> and your own header files should be included as #include "myheader.h" See the end of http://www.comeaucomputing.com/techtalk/#cname. I quote: --> Similarly, the Standard C headers, such as <stdio.h>, are supported in C++, but they are deprecated. Instead, so-called Cname headers are preferred, for instance, cstdio, or cctype instead of ctype.h Furthermore, names in the .h are assumed to be in the global namespace, and so therefore do not need to be qualified with std::. The .h form is sometimes used as a transition model for backwards compatibility. Or, for a "co-ed" source file able to be compiled by a C or C++ compiler. <-- Sorry to be pedantic, Adrian |