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 26, 2015
when i deleted main.cpp then it worked fine
can anybody explain me what just happened, why it didn't work earlier
0 K D · February 26, 2015
You can't run a program if there is no main function you can compile it but you can't run it...  So Code::Blocks was probably running main.cpp.
0 Mayank Verma · February 26, 2015
thanks C Student but can you elaborate what is  /* test function prototype */
these are the files:
/images/forum/upload/2015-02-26/baaa8d137bc65982bca971baee17316e.PNG/images/forum/upload/2015-02-26/3294d0661963a8d0fde0b1cd9a01fdc7.PNG
  • 1
  • 2

C++

107,089 followers
About

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

Links
Moderators
Bucky Roberts Administrator