Du kan compile 98-99% af al C med en C++ compiler, men der er subtile forskelle hvor legal C kode enten giver fejl i en C++ compiler eller endnu være har en anden betydning.
Hvis du laver en console applikation så kan du enten køre den i et permanent console vindue eller hvis du vil køre fra dev-cpp, så sætter du bare: system("PAUSE"); ind lige før den sidste }.
Arne>You could have the exact same problem in a C compile. It isnt so much to do with it being a C++ compiler but that the two products are NOT 100% ANSI C compatible.
* differences in behaviour by two compilers caused by one of them not being compliant with the standard
* differences in behaviour by two compilers because it is undefined/unpredictable by the standard
* differences in behaviour by two compilers because one of them is following the C standard and the other the C++ standard and the last one is *not* a 100% clean superset of the first
I am talking abouut the last problem (where both compilers are standard compliant).
Synes godt om
Ny brugerNybegynder
Din løsning...
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.