Actually did my own problem, and i found the myArray problem to be quite fun . I would rate it a hard personally due to the amount of time needed to complete it(one of the longest assignments ive written so far). if anyone is looking for answers to problems i've coded them all, feel free to ask.
Still looking on input for its difficulty if anyone else has tried it.
Actually did my own problem, and i found the myArray problem to be quite fun . I would rate it a hard personally due to the amount of time needed to complete it(one of the longest assignments ive written so far). if anyone is looking for answers to problems i've coded them all, feel free to ask.
Still looking on input for its difficulty if anyone else has tried it.
I've only had time to do the remove vowel program so far(very good problem for a beginner program I think) but I love the idea of this thread. I need to get comfortable with C++ after only learning Java in school and these exercises are a fantastic way to get into it. Can't wait to see the ideas you come up with Need4Sleep.
it gives me a hard time to output the seat in an decent order, i finally used setw() to make it. I know this is not the key point of the problem, but I learned something new. Great practice~
Thank you @Need4Sleep
Appreciate you guys posting your code to help with the answer thread.
as for speakon, your code leads a reader on a maze type trail. You usually dont want to have functions lead to other functions like so:
void functiona(int a)
{
do code;
functionb();
}
void functionb()
{
stuff;
anotherfunction();
}
this type of program structuring can lead a reader on a chase to find a desired part of the program and can be extremely difficult to track down errors. I would refrain from using so many functions in your code.Try to simplify the code while still keeping an organized group of specific functions, as what wnan42 did. Although you were first to post, wnan has a more organized and easy to understand code, so ill be using his in the answer thread.
EDIT: i still cringed at your system("pause") at the end wnan42, it pains me to see that line.
EDIT: i still cringed at your system("pause") at the end wnan42, it pains me to see that line.
Ok, I am going to delete that line. I know it is not a good habit to keep this line in the code. Thanks for your comments. And big big thanks to your daily problems!!!
The 2D array reversing was a great exercise but im not a very good programmer and i found it pretty easy. You should rate Intermediate instead in my opinion.
Updated with the last problem i post until i leave for a little bit. I tried to give you guys a problem that was hopefully hard enough to leave you thinking and baffled for a couple days(probably wont be the case). I also appreciate all the feedback in getting, keep it coming!