??? 05/26/12 09:57 Modified: 05/26/12 09:57 Read: times |
#187534 - C++ and style Responding to: ???'s previous message |
Stefan Kanev said:
#include <cstdlib> #include <cstdio> There is no Dev-C, only Dev-C++. And the above code shows that you're using C++. Then why did you start the thread with asking about C ? The two are related, but certainly not the same. Stefan Kanev said:
void testaccess(void) {char submenu,fieldnum,fieldscount,fieldtype; ... for (submenu=0;submenu<SUBMENUScount;submenu++) {printf("Submenu %d ---------n",submenu); Please do not put code behind the opening curly brace like that. It totally ruins the visible start and end of a block. Whitespace really is not expensive, you know. |
Topic | Author | Date |
const strings in C | 01/01/70 00:00 | |
Does not compile | 01/01/70 00:00 | |
my question was | 01/01/70 00:00 | |
Common to play with #define EXTERN | 01/01/70 00:00 | |
Common doesn't mean recommended | 01/01/70 00:00 | |
well I recommend it | 01/01/70 00:00 | |
No - not hard to maintain at all | 01/01/70 00:00 | |
C strings | 01/01/70 00:00 | |
Whats wrong with a header file? | 01/01/70 00:00 | |
nothing wrong, double work | 01/01/70 00:00 | |
It works, and has advantages | 01/01/70 00:00 | |
I got in a total absolute magnificent mess | 01/01/70 00:00 | |
thanks to everyone, and next question is | 01/01/70 00:00 | |
about (tables of) pointers to const strings | 01/01/70 00:00 | |
C++ and style | 01/01/70 00:00 |