tell me you are using an IDE |
I am using visual studio community 2017, sorry I did not specify :( . I will be looking into IDE formating and also, I know I really have to up my organizational skills especially in regards to brackets. I also have to learn how to leave better comments
cin and getline are not worth using together, either accept the limitation of using only single word inputs through your whole program, or use getline everywhere. |
I was struggling to find information on using cin and getline in conjunction, and you are right, I had a prompt for no input, but I wanted that prompt to pop up if any other input aside from yes or no was inserted, I am going to have to research this a bit more, because it isn't that I want more than one word, but my current understanding is that if I didn't use getline it would only take one letter, I am now certain that I am dead wrong but finding the information is proving to be a bit difficult for me, I started out using a switch and case if else and moved to string and getline so that I could take word inputs, no excuse, I still have more to learn... but this helps me out a LOT, and every breakdown as to how my other lines are stupid/broken helps a lot, I will reform this code and post again after I hit a point where I absolutely can't continue, or if I get it working.
stdafx is bullshit, don't touch it I recommend you to read the article about it on this website |
I started a blank project in visual and it started with this in it, and gave me a failure message when I had originally deleted it so I was wondering about that, I will now read that because I was wondering what it had to offer thanks!
there is no excuse to why you couldn't cut it out instead of writing that sentence |
I am still trying too burn things into my memory, and so I thought that I would keep them there so that I could remember what information I needed to pull up later to complete the application as I had wanted :( but you are 100% right, and it should all just be removed and it will.
this just makes you look incompetent |
.... I am :(. This was the first attempt at writing a code from the ground up(not web related at least), I started out with a "hello world" script and started building on as I figured out how to work terminal, this I am sure led to a lot of the wonky stuff in here including the return 0 and cin.get(), I have edited code before as before mentioned, but editing code means nothing realistically speaking so I don't have sufficient information to call myself anything but incompetent.... But I do hope to change that one day.
You should really pay attention to your errors |
I have, but I couldn't really figure out the cause of them :( so your breakdown really helped a lot.
Overall you should really consider studying the tutorial on this website, and maybe read a book on c++ from a library |
I am taking a class at the moment and we are reading "an introduction to programming with c++" and it is a clear and easy to understand book, but I have yet to finish it, and in addition to that I have been watching youtube videos, using this site, and learn x in y minutes to try and gain a better understanding than I currently have, but as I said, I am doing this project as a fun way to force myself to understand and learn by survival.
I am going to be reading the tutorials here tonight after class.
You can skim any parts of the book you think is boring or if you feel it is going into something you aren't ready yet (it is much like mathematics, you can't just jump into calculus), but classes, functions, and pointers are essentials, but I cannot stress how everything is kinda important in an entry level book, you may not know how something really works, but you should know when to use it. |
this I will take to heart.
I don't recommend going too deep into terminals, its important to understand them just like understanding old C arrays (even though there are C++ alternatives for C arrays), it shouldn't take you much time to "get" it, and I think reading more practical code from a tutorial (like lazyfoo) could help you more since it's more fun |
I want to start coding arduinos and I know that they use C, so I would really enjoy learning C in the future, but this class covers C++, so I will also take this to heart. I guess I am comfortable with the terminal because I have linux on my laptop and I have a few Pi's I play with but its time to probably step away from that X/.
thank you so much for your time an I will be back here after a LOT of reflection and study.