wrong message board, try windows programming or game programming
Type: Posts; User: ay_okay
wrong message board, try windows programming or game programming
you got there before me :(
if you want to edit the variables in main directly from a function, then include them in the functions argument and add a & infront of them
int Runme(&y, &z);
I'm not sure if you need to...
Your cin.ignore() worked, but first I had to switch cin>> with cin.getline() because it missed the spaces and skipped the cin.get(). Thanks for the help!!! :)
Your return 0; should be after the bracket and then add one after return 0; like this:
else;
if (test == true)
out.close();
else
in.close();
In my program, I have a cout statement I want peopl to be able to rea, so I use cin.get() to pause. For some reason, it skips that and ends. I think its my cpu speed or keyboard I unno. Can someone...
for finding the size of a char, include the string.h or cstring lib and use the function:
int strlen(const char *string);
example
char string[30] = "Hello World";
cout<<"The char is...
Alright, I corrected your code and I will explain what I did.
#include <iostream>
#include <fstream> //<----why are you using this? Its only for reading
using...
Thanks Daved it worked with the file_op.ignore() and the while loop also improved my program. :) By the way, elad, what you say is true. I've done that so many times, but I didn't include it in the...
For a text based game, I don't think you can really use a different method. Sorry.
I don't get what you're trying to say. I edited my post, doesn't work. Any oher suggestions?
guys, can you tell me whats wrong with this code. I included everything, no compiler errors but I need to read the number, then the phrases underneath it. look at my code and the contents of my file....
Thanks that should do it. But could you send me a link to a tutorial that explains linked lists well(not the one on this site) that would be really nice:)
Hello, I am a newbie at OpenGL, as you will probably figure out yourself once you read my question. I am reading a book called "Beginning OpenGL Game Programming" and it is pretty useful, but I don't...
Thanks guys, I'll try the commands at initialization. I'm not at my computer right now but I'll post back if it works or not.
glPushMatrix();
glColor3f(1.0f, 0.0f, 0.0f);
glBegin(GL_TRIANGLE_STRIP); //back
glVertex3f(-1.0f,...
Can someone give me the code that draws a cube in OpenGL with each face a different colour because I did it with rectangles not polygons and the faces go through each other. Thanks alot!
I managed to get it working, except for one thing. I used my xp to logon to the 2000 comp and it asked for user name and pass. There is no pass so i entered the user name that i use on the 2000 comp...
I've been to many sites but haven't found an answer. I have 3 computers connected to a router and all are connected to the net. I want to be able to see files on the other computers. I dont want one...
Thanks a lot, I had a lot of trouble with that before too.
I don't know whats wrong. I'm trying to use a vairable of type char and I can't assign anything to it. Heres my code:
struct SUIT_ID
{
char number[20];
char suit[20];
};
...
Thanks for trying and for poking fun. I found out how to do it. I have a western digital HDD, and I heard rumors that it doesn't like being on the same IDE tape as another drive. So I put my CD_ROM...
alright, I'm letting it go, I just started it now at(the time this was posted).
I guess no one can help then.
When I don't press anything, the system reboots, and the second time, it just clears the screen and all I can see is a blinking cursor in the top left corner. So I wait for half an hour and nothing...