Forum: Assembly Mar 31st, 2009 |
| Replies: 2 Views: 749 EDIT:
Using NASM with the 80x86
I get this error
"Comma or End of Line Expected" on these lines
mov bx , offset Array ;store start of array in bx |
Forum: Assembly Mar 31st, 2009 |
| Replies: 2 Views: 749 Hi everyone,
got a slight problem. trying to make a program that takes the users input and puts it into a string untill it detects a CR character then outputs the string, i've made a start but i'm... |
Forum: C# Jan 1st, 2009 |
| Replies: 3 Views: 1,343 hey everyone.
Just a quick question i hope i'm using c# with XNA and currently i have created a game which draws a spaceship on the screen and allows me to move it around using an xbox360... |
Forum: C++ Dec 31st, 2008 |
| Replies: 6 Views: 943 the only thing i've done is add
GLUT_BUILDING_LIB to the preprocessors to stop a clash between glut and stdlib
i have no idea what code to post, my program consists of 30 files and the error... |
Forum: C++ Dec 31st, 2008 |
| Replies: 6 Views: 943 all the files that seem to give me the cstdlib error have that in them already
-midi |
Forum: C++ Dec 31st, 2008 |
| Replies: 6 Views: 943 hello again,
just tried to compile my project and i'm getting errors with a file cstdlib
Error 2 error C2039: 'abort' : is not a member of '`global namespace'' c:\program files\microsoft visual... |
Forum: C++ Dec 31st, 2008 |
| Replies: 4 Views: 993 thanks Chris, i understand what your saying i just never had to do it until now :P
oh well gotta learn sometime.
thanks again |
Forum: C++ Dec 31st, 2008 |
| Replies: 4 Views: 993 would you care to explain that in a little more detail?
my program was working fine no linker errors untill i added GLUT into the processors list.
but if i dont have that in there then i get... |
Forum: C++ Dec 31st, 2008 |
| Replies: 4 Views: 993 Hello everyone,
got a really strange and annoying error. When i compile my program i get 2 errors and 2 warnings all 4 to do with stdlib.h
error C2381: 'exit' : redefinition;... |
Forum: C++ Dec 20th, 2008 |
| Replies: 2 Views: 334 Thanks alot :)
Works perfectly, can't believe that had me confused for so long.
Thanks again.
-Midi |
Forum: C++ Dec 19th, 2008 |
| Replies: 2 Views: 334 Hello again everyone,
Having a really annoying problem using pointers and arrays at the moment,
i'm trying to store a 4x4 matrix as a an array of 16 floats.
so i declare my array like so |
Forum: C++ Nov 28th, 2008 |
| Replies: 2 Views: 360 because i read that reading in strings first then converting by using the stream works better than cin due to problems with cin.
i'm currently rewriting it to use cin now.
when reading in my... |
Forum: C++ Nov 28th, 2008 |
| Replies: 2 Views: 360 Hey again guys and gals,
getting a really weird error when i attempt to print out doubles
in my program i have to store several double values, but when ever i print then out all i get is
... |
Forum: C++ Nov 15th, 2008 |
| Replies: 3 Views: 512 Hello everybody,
I'm back, started my 2nd year at Uni now and started programming in the wonder that is C++ and enjoying it tremendously.
but I've hit a slight problem, not with code but with... |
Forum: C++ May 15th, 2008 |
| Replies: 2 Views: 378 Just been looking over Dynamic Memory Allocation, using new.
Heres a snippet of the code i've got.
vertices = new float *[v];
for (i = 0; i < v; ++i)
{
vertices[i] = new float[3];
} |
Forum: C May 3rd, 2008 |
| Replies: 6 Views: 1,092 okay, theres a few things that i can see wrong with your code.
Line 7
void mrinch ( double inches[]);
your declaring the function "mrinch" ,but the function doesnt exist within your code. |
Forum: C Apr 28th, 2008 |
| Replies: 2 Views: 476 Hi everyone, i'm back with another problem that i cant seem to work out.
i'm trying to read in a .obj file which is basicaly a list of vertices and facets in this format
v 0.00 0.00 0.00
f 0 0... |
Forum: C Mar 7th, 2008 |
| Replies: 4 Views: 518 Thank you very much Ancient, it works now. |
Forum: C Mar 7th, 2008 |
| Replies: 4 Views: 518 Thank you, but it hasnt solved the problem but i think i know what the problem is, its the inputing from a file thats causing the problem.
as soon as i comment out the 2 lines of code that input... |
Forum: C Mar 7th, 2008 |
| Replies: 4 Views: 518 Well another problem, sorry for constantly asking.
My program is coming along well i think, it creates the file writes the data to it but it crashes when i try to view the information.
i'm not... |
Forum: C Mar 7th, 2008 |
| Replies: 14 Views: 4,532 it would work lol, if the name is 10 characters long or more it creates the file perfectly. So my guess is that when i press return to store the name it also stores the rtn character which is what is... |
Forum: C Mar 6th, 2008 |
| Replies: 14 Views: 4,532 How very peculiar, thanks gerard. I'm still wondering what i'd done wrong but it compiles and doesnt crash now so i'm happy :)
Thank you very much
-Matt
EDIT: 1 last problem, i dont know... |
Forum: C Mar 6th, 2008 |
| Replies: 14 Views: 4,532 i swear i'm still half asleep lol, another error fixed but, still crashes soon as i press enter after typing in name.
Just a thought though, could it be that the string being recorded is "Name... |
Forum: C Mar 6th, 2008 |
| Replies: 14 Views: 4,532 surely playerdata shouldn't be null because i'm asking the C program to create the file.
the "W+" command opens the file for reading and writing, if it doesnt exist creates new if it does makes it... |
Forum: Community Introductions Mar 6th, 2008 |
| Replies: 6 Views: 431 |
Forum: C Mar 6th, 2008 |
| Replies: 14 Views: 4,532 Thanks Gerard, but my program still crashes after the input of the data. so i assume there must still be problems in the code :( |
Forum: C Mar 6th, 2008 |
| Replies: 14 Views: 4,532 Hi Again,
Well i'm bored and i've decided to do some coding just for practice and i've decided to work on a text based RPG, its only going to be basic due to my own knowledge but i think its... |
Forum: Java Mar 6th, 2008 |
| Replies: 2 Views: 419 The University i'm studying at suggests using
“Introduction to Java Programming (Sixth Edition) - Comprehensive Version”
By Y.Daniel Liang
Prentice Hall – Pearson International
ISBN... |
Forum: Java Mar 6th, 2008 |
| Replies: 4 Views: 923 It would be easiest to use a switch statement for you menu's link below explains switch statements.
Switch Statements
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/switch.html
... |
Forum: C Mar 6th, 2008 |
| Replies: 2 Views: 457 What exactly do you need help with? you havent started any of it, if you start the basics of the code and get stuck post and then maybe we can help you.
but we cant do your homework for you as AD... |
Forum: Community Introductions Mar 6th, 2008 |
| Replies: 6 Views: 431 Hi, I'm Matt, i'm a first year BSC Student at Staffordshire University.
Currently living in Stafford, but i'm originaly from near London.
I'm studying Computer Games Programming. I enjoy... |
Forum: C Mar 5th, 2008 |
| Replies: 4 Views: 750 This could be used for the input.
int i;
int buffer = 100;
int length;
char names [10][10]; /*stores 10 strings of 9 characters long including \o */
char input [buffer]; /* holds the... |
Forum: C Mar 5th, 2008 |
| Replies: 1 Views: 1,835 Solved:
Programming at 4am in morning is bound to produce stupid mistakes :(
removed glTranslatef(225.0f, 225.0f, 0.0f); and it worked perfectly. |
Forum: C Mar 4th, 2008 |
| Replies: 1 Views: 1,835 Hello again,
i'm trying to make a program that draws a cube on the screen using data inside of a .txt file, this is the code that i've got so far, it compiles and runs but doesnt actualy display... |
Forum: C Mar 1st, 2008 |
| Replies: 48 Views: 3,276 I'm affraid i cant help you with alot of that as i'm not an expert at C but i did recently do some work involving reading from files and i found this website helpfull.
... |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,819 I wrote in my original post, that i've already writen and compiled the code on a machine at the university using visual studio, i've taken the code home tried to use it on on Dev C++ have been unable... |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,819 No, i created a blank project because i'm using code that has already been created.
Creating it as an openGL project would have only put the parameters in for me and created a .C file with the... |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,819 ALready installed the Devpak, was the first thing i did. |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,819 Thanks for the reply, i've looked over the site and although it hasnt solved my problem it has made me think that my problem might be a missing library file so i'm gonna investigate that and see if i... |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,819 I'm getting Linker errors when trying to compile my OpenGL code with Dev C++, the code compiles perfectly on the university machines using Visual Studio.
I've visited several sites that explain... |