0nlycraiova Posted February 24, 2013 Share Posted February 24, 2013 Salut, eu fiind nou in C++, am incercat sa fac un program cat se poate de simplu, cand sa ii dau compile, imi zice: ld returned 1 exit status Link to comment Share on other sites More sharing options...
Jackie Dee Posted February 24, 2013 Share Posted February 24, 2013 Si cum ai vrea sa te ajute cineva fara sa pui codul? Ce compiler folosesti? Link to comment Share on other sites More sharing options...
0nlycraiova Posted February 24, 2013 Author Share Posted February 24, 2013 (edited) // my first program in C++ #include <iostream> using namespace std; int main() { int a=1; int b=2; int result; a = a + 1; result = a-b; cout << result; return 1; } Folosesc Dev C++. Edited February 24, 2013 by Alexi Link to comment Share on other sites More sharing options...
Quadro Posted February 25, 2013 Share Posted February 25, 2013 Incearca sa pui return 0, sau sterge instructiunea. Am testat in Code:Blocks si merge si cu return 1. Link to comment Share on other sites More sharing options...
0nlycraiova Posted February 25, 2013 Author Share Posted February 25, 2013 Incearca sa pui return 0, sau sterge instructiunea. Am testat in Code:Blocks si merge si cu return 1. Si daca pun 0, sau 1 imi zice acelasi lucru. Nu e bun Dev C++ sau ..? E varianta Beta.. Link to comment Share on other sites More sharing options...
5061756C Posted February 26, 2013 Share Posted February 26, 2013 Si daca pun 0, sau 1 imi zice acelasi lucru. Nu e bun Dev C++ sau ..? E varianta Beta.. http://prdownload.berlios.de/codeblocks/codeblocks-12.11mingw-setup.exe http://sourceforge.net/projects/codeblocks/files/Binaries/12.11/Windows/codeblocks-12.11mingw-setup.exe/download Codeblocks e cel mai bun Link to comment Share on other sites More sharing options...
Recommended Posts