- Feb 01, 2017 Welcome to Bun Thorn, This channel is for Showing about Technology, Share by Venerable Bun Thorn. We collected all Khmer smot, Khmer traditional,Technology, Khmer dhamma,And specially Khmer.
- Nov 20, 2014 Java Project Tutorial - Make Login and Register Form Step by Step Using NetBeans And MySQL Database - Duration: 3:43:32. 1BestCsharp blog Recommended for you.
In next few articles,you will learn a lot about Dev-C.In this article i have focused on introductory part of Dev-C. About Dev-C Dev-C is a free integrated development environment (IDE) for programming in C/C. Dev-C is developed by Bloodshed software. It is shipped with the open source MinGW compiler.
Dev C++ Download Windows 10
|
Any ideas of how I can have a calendar for all 12 months print for any year?
The user inputs the year and the day of the week for January 1st of that year. (Sunday = 0, Monday = 1, etc.)
The user inputs the year and the day of the week for January 1st of that year. (Sunday = 0, Monday = 1, etc.)
Dev C++ 5.11
Important:
I cannot use cases. (That's what I've mostly seen online to solve this problem)
I can only use <iostream>, no other libraries.
And I am supposed to use two for loops.
I cannot use cases. (That's what I've mostly seen online to solve this problem)
I can only use <iostream>, no other libraries.
And I am supposed to use two for loops.
Could someone provide a pseudocode or any suggestions?
- 4 Contributors
- forum 10 Replies
- 12,418 Views
- 2 Years Discussion Span
- commentLatest Postby 0igoLatest Post
deceptikon1,790
Well, you know how many days are in each month, and what weekday the year starts, so the algorithm stands out immediately as a couple of nested loops with a few counters that wrap around at appropriate times. You're looking at around 10 lines of code.
Don't over complicate things, this is almost a no brainer. Of course handling leap years and error handling the weekday input are both minor complications, but it's not a big deal. See if you can come up with an algorithm on your own.
Edited by deceptikon