always output is -50 whatever i type :(

+4 Mayank Verma · February 25, 2015
/images/forum/upload/2015-02-25/f81ad54d87c765327d9f7b1709d4a191.PNG


i dont know what to do.

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Mayank Verma · February 27, 2015
thanks Abdullah
+1 Jason Amador · February 27, 2015
It is only outputting -50 because that is exactly all that your main function does.  You never call test() in main(), you only declare it.  You are clearly a beginner, I would definitely suggest that you stick to single file programs for now and get the feel of the language before getting into using multiple files.  
0 Mayank Verma · February 28, 2015
yeah :P
  • 1
  • 2

C++

106,986 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator