If the week number in a particular year is given, how can I determine the the first and the last dates (day and month) of the week in an easy way by using C/C++? Thank you in ad
This is heavily affected by local rules for week numbering. There are at least two common rules for what week day is the start of a week, there are three common rules for what week is numbered 1 at the start of the year.
Avoid having to endlessly tinker with that kind of code and use a library. The ICU library covers this with its Calendar classes. The relevant introduction page is here. Check the notes on the WEEK_OF_YEAR field at the bottom of the page.