Hi I'm new to programming, and I found MSDN's Channel 9 website to be a great place to start for video tutorials (MSDN = MicroSoft Developer's Network)
Channel 9 Content for Beginners | Channel 9
--A set of beginner friendly tutorials on different languages, one of which is C# (which isn't C of course, but still down your alley)
Series | Browse | Channel 9
--Same website, but this link is the master list for all of their series' so that you can see if there's any tutorial series' for C or other languages you may be interested in
These tutorials are kick-butt because they are available for free download, no catch, no "go pro" account necessary...just download it in your choice of codec and start watching . Further, they offer the full set of accompanying source code for download (at least for the C# series; I can't speak for the other series) And if you want an extra copy of just the audio-only to listen to on your iPod/MP3 Player/CD/etc. they have that for download too.
As a beginner I find it really helpful to have video walkthroughs. Text based learning can really cover a lot of concepts quickly, which is great, but its nice to have some learning resources that slow things down a bit as well and guide you through step by step.
iTunesU is another resource to look up learning materials.
Sorry I don't have anything to reply regarding your code...I'm still too new to programming for that
Last edited by AGENT_P6; 09-15-2012 at 09:38 AM. Reason: typo
Gotcha. I thought i did a pretty decent job, and actually preferred it to the "solution." Sure I could enable it to input bigger numbers I guess. But overall I was pretty happy with it.
If you use a macro for constant values you should use it everywhere in your code. Otherwise it's rather useless.Code:#define UPPER 200 ... do { printf("Please provide a temperature less that 200C.\n"); //Asks for a temperature for the higher temperature, scanf("%d", &high); printf("\n"); } while (high > UPPER); //and checks to make sure it is less than 200C.
And it's "Fahrenheit" :-)Code:do { printf("Please provide a temperature less than %dC.\n", UPPER); scanf("%d", &high); printf("\n"); } while (high > UPPER);
Bye, Andreas