.. (לתיקייה המכילה) | ||
I cannot make Dev-CPP run on Windows Vista, is there any solution for this? | |
This is a known problem. The following solution has beed reported to solve the problem - you are welcome to try it yourself. Other possible solutions are: 1. Work on an XP (or earlier) machine, or in the computers farm 2. Try to work with another compiler, and compile your programs when they are done once with Dev-CPP in the PC farm. One such compiler is Microsoft's Visual C++, for which a light free version (Visual C++ express) can be downloaded from here. While this is an excellent compiler it is a little more complicated to use (and we do not provide support for it). |
Dev-CPP's indentation drives me nuts, it is impossible to predict to where the cursor is about to jump when I press TAB | |
Right... this can be easily resolved by turning off the "smart tabs" option in the editor options. go to tools->Editor options->General, and uncheck the "Smart Tabs" checkbox. Press "Ok" and you are done... |
Dev-CPP will compile programs also without including any library. | |
//#include <stdio.h> int main() { printf("Hello World!!!\n"); // Error: printf is defined in stdio.h return 0; } |
Dev-CPP won't assign an error in case main (or any other function) does not return a value as it is supposed to | |
#include <stdio.h> int main() { printf("Hello World!!!\n"); // Error: main should return an int } |
Variables can be defined anywhere in the code, unlike the C89 standard | |
Example: #include <stdio.h> int main() { int a = 0; printf("Hello World!!!\n"); int b=1; // Error: b should be defined at the beginning of block return 0; } |
Dev-CPP ignores mistakes in defining a char variables | |
#include <stdio.h> int main() { char a = 'ab'; // Error: only one char is allowed within the '' char c = 'a'; // OK printf("Hello World!!!\n"); return 0; } |
Dev-CPP allows transferring a two-dimensional array as an argument to a function without specifying its second dimension | |
#include <stdio.h> void foo(char weird[][]) { // Error: second dimesion of weird should be defined (e.g. weird[][10]) } int main() { char weird[10][10]; foo(weird); return 0; } |
Dev-CPP won't assign an error message when a wrong number of variables is transferred to a function | |
#include <stdio.h> void foo() { } int main() { foo('a'); // Error: foo does not accept any arguments return 0; } |