About the complier

wdliming's Avatar, Join Date: Sep 2010
Go4Expert Member
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 !

Last edited by shabbir; 16Oct2010 at 09:46.. Reason: Code blocks
jimblumberg's Avatar
Ambitious contributor
Cross-posted and answered here http://cboard.cprogramming.com/c-pro...-complier.html