I want to undertake a project for my own learning. What I want to do is to make a calculator (I'm using VC++ 2008 by the way) that will use booleans to do the calculations (to 'simulate' bits in an...
Thanks everyone, this has been very useful. Originally, I thought that simply using the variable name again would suffice but I had been making 2 assumptions:
1. small-scale programs vs. 100+...
I am a self-taught c++ (beginner?) I have been programming for a couple of months.
I have seen, in tutorials and the such, many uses of pointers. I understand basically what they do, etc. but do...
Thanks.
When I install directX will it put the header where VC++ can find it?
Also, you say that the two are 'analogous.' Does that mean that the functions are identical, or that they functionally...
I have tried to get some sort of graphics programming to work on my computer and it hasn't worked. I downloaded Dark GDK the Game Creators from Microsoft, but when I tried it, the header compiled...
This can only be a problem, however, if the matrix is declared one way and then you try to access outside of its declaration. As you may notice, my declarations are currently
My problem was not with indexing, it was with switching x and y. If you notice in how I fixed the problem, I had to make the test if (cx==y...). There was no problem with the array indexes; if you...
I found that, after I fixed the syntax error (blame Game Maker for that one, they allow you to do something like "if(x=2)" in their scripting), the function almost works correctly. To be more...
As I stated in the previous post: I have looked through the code several times, and I cannot spot the problem. I think it may be a logical error, but as far as I can tell, there is none. Seeing as...
I did not step through it with the debugger because to look at every loop I would have to click the button many times (to be exact 9x9x9x10 at the smallest, or more depending on the loop) and look at...
Is the maze constant or does it have to randomly generate one, and similarily, does the mouse follow a certain path or do you have to write a function for it to solve the maze?
I did say what the problem is; it's that smatrix is incorrect. And also, I am not on my home computer now, so I am unable to test if alanjhd08 is right, but that should do it.
This isn't very helpful so far... Which either means the code I have is fine, or that people just aren't finding it, either of which mean I have to go back and do MORE troubleshooting.
I have tried to get some sort of graphics programming to work on my computer and it hasn't worked. I downloaded Dark GDK the Game Creators from Microsoft, but when I tried it, the header compiled...
I know this. I just made it start at 1 for my own purposes, and it is uniform throughout. The only disadvantage is a little bit of wasted space, but that is not the problem, because as I said...
I wrote something to solve sudoku puzzles as practice in c++.
The basic idea is that there is a secondary matrix (called smatrix) that is 3-dimensional. I think of it as layers of 2-dimensional...