Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   About the complier (http://www.go4expert.com/forums/about-the-complier-t23585/)

wdliming 16Oct2010 08:28

About the complier
Rcently,i come across a problem,i wrote a code as following:

#include <stdio.h>
//#include <stdlib.h>
void ex(int &a,int &b)
 int  t;
 t = a;
 a = b;
 b = t;
int main()
 int a,b;
 a = 1;
 b = 2;
    //printf("Hello world!\n");
    return 0;

but when i copy it into codeblocks and wDEV c++,then i rebuild it ,it could not success,but when i rebuild it in c-free,it works!~~nothing wrong.
could someone tell me why?
Thank you !

jimblumberg 16Oct2010 18:48

Re: About the complier
Cross-posted and answered here http://cboard.cprogramming.com/c-pro...-complier.html

All times are GMT +5.5. The time now is 18:31.