I am new to C++ and have just installed my Borland Compiler.
Here is a very simple program I have written:
However, whenever I try to compile it, I get the following message:
cout<< "My lucky number is ";
lnum = 3;
When I run the program, the "cout" is fine, and the output is "My lucky number is " as specified, but my variable "lnum" is not returned.
Warning W8066 myfirstprogram.cpp 10: Unreachable code in function main()
Thanks for reading, and please help me with my problem.