Forum: C May 3rd, 2008 |
| Replies: 6 Views: 1,100 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: 484 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: 529 Thank you very much Ancient, it works now. |
Forum: C Mar 7th, 2008 |
| Replies: 4 Views: 529 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: 529 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: 5,187 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: 5,187 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: 5,187 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: 5,187 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: C Mar 6th, 2008 |
| Replies: 14 Views: 5,187 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: 5,187 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: C Mar 6th, 2008 |
| Replies: 2 Views: 466 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: C Mar 5th, 2008 |
| Replies: 4 Views: 768 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,961 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,961 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,316 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,907 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,907 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,907 ALready installed the Devpak, was the first thing i did. |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,907 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,907 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... |