I've been starting to work through a tutorial for DirectX that I found on the internet, and it starts by teaching basic windows programming, for...
That's not the point of if-else statements, so I don't know why you'd want to do it... But if you want to get technical, I don't think it is...
I've been working on a program that is meant to take a full sentence from the user (saved as a vector<char>) and divide it into words. It does...
This is my first time using JavaScript, and I found a tutorial online to learn off of. Here is the code I have made, meant to make three buttons,...
I've got another question. I'm not totally grasping this overloading operators concept, and the book I'm trying to (partially) learn from isn't...
Actually, the second code block should say m = c / 2;
Alright, I've got another problem. In the following code, I want to set m to equal c/2 (to finish off the midpoint formula). Why is this code...
That works! But why should the order have any bearing on what the result is? Is it because I overloaded the + operator, but c++ has a default =...
Alright, I've got this program that is supposed to ask the user for input of two ordered pairs, then use a class and a + operator to produce the...
Thank you so much! :o I'm glad I found out about that before I started messing with some other random things.
Ahh! Where are the spaces in the code? I can't understand it at all. You should make it easier to read and actually tell what the problem with it...
Well, like the title says, I have constructed a program, my first one using classes, and my problem is that the program ends right after the user...
So do I need to do anything different to use global variables over different files?
But how can I declare the doubles x, y, and z so that they can be used in all the seperate files? When I include them in either header.cpp or...
I'm not sure exactly what you want, but your program might look something like this: //Price per Parcel #include <iostream> using...
Well, I suppose it would output something like this: 10 100 1000 When I tried to run it, I got errors because the functions have no type,...
Alright, since I tried to fix it and failed miserably, could you explain the scope of variables when including multiple files? Am I allowed to...
Alright I finally fixed and compiled it, but now when I try to run it, it displays three 0s instead of the numbers it's supposed to. It should be...
Scratch that: apparently they weren't all in the same project when I did that, so I added all of them to a project and tried to compile. This time...
I'm not sure I quite understand everything, so I tried removing the line: #include "Header.cpp" and compiling it, but now I get a linker error....
Separate names with a comma.