EDN Admin
Well-known member
<font color="#0000ff" size="2 this is the code im using, when i goto build it i works fine then as its about to finish i ge tthe LNK2019 error, why?
#include</font><font size="2 <iostream> </font><font color="#0000ff" size="2 int</font><font size="2 main() { </font><font color="#0000ff" size="2 using</font><font size="2 </font><font color="#0000ff" size="2 namespace</font><font size="2 std; </font><font color="#0000ff" size="2 int</font><font size="2 carrot; cout << "how many carrots do you have? "; cin >> carrot; cout << endl; carrot = carrot - 2; cout << "cruch crunch, i ate somse of your carrots. you now have " << carrot << " carotts" << endl; </font><font color="#0000ff" size="2 return</font><font size="2 0; } </font>
View the full article
#include</font><font size="2 <iostream> </font><font color="#0000ff" size="2 int</font><font size="2 main() { </font><font color="#0000ff" size="2 using</font><font size="2 </font><font color="#0000ff" size="2 namespace</font><font size="2 std; </font><font color="#0000ff" size="2 int</font><font size="2 carrot; cout << "how many carrots do you have? "; cin >> carrot; cout << endl; carrot = carrot - 2; cout << "cruch crunch, i ate somse of your carrots. you now have " << carrot << " carotts" << endl; </font><font color="#0000ff" size="2 return</font><font size="2 0; } </font>
View the full article