Here is another shot at it. It all most complier but falls short . still I know it doesn't mean its right. thanks for the help so far.
Francis Waldron 0 Newbie Poster
Recommended Answers
Jump to Posttwo problems I can see without even compiling it.
1. main() should return an integer. I know it returns 0 if no return is specified, but you should expeclitly return a value anyway.
system("pause"); } return 0;
2. Above is not inside any function.
>>#define …
Jump to Post>Also, always make sure your main() returns a 0.
Why? Pray tell?
It is standard convention throughout the IT industry for programs to return 0 when it exits normally, or some other value to indicate an error occurred. This allows other programs to check the status of the program and …
Jump to Post>>It still works, why? Explain.
Is that a rhethorical question? you already answered it.
All 11 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Francis Waldron 0 Newbie Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
may4life 2 Junior Poster in Training

iamthwee
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
may4life 2 Junior Poster in Training

iamthwee

iamthwee
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

iamthwee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.