What is an apmatrix?
Type: Posts; User: KoshiB
What is an apmatrix?
Err, What I want is for the 3/2 to give me one, as one is the middle in a 0,1,2 array. 5/2 gives me 2 which is what I need for a 0,1,2,3,4 array.
It may be bad practice to do it like that, but it...
MSVC++ automatically round down, and I want the value it gives as the starting position(due to arrays starting at 0).
The error seems to be some sort of memory error, but i cant figure out where....
Okay, heres the deal. I have a magic square program I made for calculating a 3x3 magic square. Code compiles fine, runs almost fine. It starts to get the right values. But then it stops, throws a...
Thanks but I figured it out on my own :-)
I found the following code:
int **ptr;
ptr=new int *[y];//creates an array pointer
for(int i=0; i<y; i++)
{
p[i]=new int [x];//creates space for each row
}
Okay, Im writing a program where I need a 2d array that I don't know the length and width of at compiletime. I know the length and width will be the same, I just dont know what they are. Pointers...
I wouldn't worry about the 3d math part yet. You're going to need to learn basic C or C++ programming before even THINKING about things like 3d math/programming.
Start with the tutorials on this...
Okay. I'm trying to run the code found on this sites tutorials. It's the 'Your First OpenGL program'. However, in the comments it says i need to make the proper library links in the project settings....
Gah, stupid VC++. I normally open up the .cpp file, not the other project files it likes to create(cause i work a lot with notepad) and I think it defaults to opening it as a console app. Is there a...
Okay. Im try to make a very simple windows program from the intro to windows programming in the opengl section of tutorials on this site. This is the program:
#include <windows.h>
int...
Perhaps he's trying to make a game hacking program to change game variables?
Okay. I've decided to begin learning (networking) sockets. My question is this. Im on windows xp. I use MSVC++ 6 compiler. I program for DOS right now. What sockets library do I use, and is it...
Someone it seems doesn't read. I don't do the work for others. I show them the door, help them understand things better when I can.
I also do the assignments they get fully, for my own benefit....
I help a couple of Engineering students from India who are required to take the course. They have trouble speaking english, so they have trouble understanding the teacher, and need a bit o' extra...
Ok. I have a start on the program based off of the tutorial linked by MadCow257. However, when I compile, it gives me errors. Heres the code so far:
// dynamic allocation and polymorphism...
Let me just state here that I am not looking for code. I am merely looking for help understanding the problem.
Okay. I am the unofficial tutor of a couple of people. And today they got their...
Actually, the loop doesn't run an extra time with it. Otherwise, it would spit out an extra set of the cout's with blank information, like it did previous to my change, but it doesn't. It works fine...
I don't normally use goto's, and indeed, have since removed them.
Heres the program in current state:
#include <fstream>
#include <iostream>
#include <conio.h>
Actually, i solved it my own way; Moved the cout's into the loop, and changed while(file) to while(!file.eof())
And, Im sorta learning c++, ive got most of the stuff down pretty well(pointers,...
Ok, I made a quick program to try to do that...it compiles and runs fine...but wont put out the information. What did I do wrong?
#include <fstream>
#include <iostream>
#include <conio.h>
...
Okay guys. Hello again! I have yet another question about the login program i've been working on.
I have the program working quite nicely. It uses a class to register students and has a data value...
Thanks for the replys. Shortly after I posted the question, i realized the answer, lol.
Now im getting a new error with a different part of the program *sigh*
Okay, I have this program that im making that's a login program. It uses classes, functions and everything, but what's giving me problems right now is a simple integer in the int main() section.
...
Ok. Im making a login program mostly as practice with various c++ things, and when i tried to compile the code, it gave me one error I can't figure out. I use MSV C++ 6 for my compiler. This is the...