Friday 15 June 2012

C++ beginner program not working -



C++ beginner program not working -

i'm starting larn c++ c++ primer book. wrote basic code first tutorial, it's not working. i'm using windows 8 , orwell dev-c++ 5.8.2.

#include <iostream> int main() { std::cout << "enter 2 numbers:" << std::endl; int v1 = 0, v2 = 0; std::cin >> v1 >> v2; std::cout << "the sum of " << v1 << " , " << v2 << " " << v1 + v2 << std::endl; system("pause"); homecoming 0; }

this not homecoming when run it, pauses text "press key continue.." , exits.

c++

No comments:

Post a Comment