Sorry, I haven't been able to look at this for more than 12 hours. random(int n) is a function for my compiler. I know it's not standard.
Thanks to everyone. You set me straight in some of my...
Type: Posts; User: MMD_Lynx
Sorry, I haven't been able to look at this for more than 12 hours. random(int n) is a function for my compiler. I know it's not standard.
Thanks to everyone. You set me straight in some of my...
I'm making a name generator (for no reason except practice) except I'm having problems with the string array to store the "syllables"
Here's my code.
#include <stdio.h>
#include <stdlib.h>
...
thnx
so you're saying that i need to include the "item.h"/"player.h" inside the #ifndef? And I need to put class Player/Item inside too?
thnx, again
My mouth is agape from the coolio pictures...
If only I had the much skill...
GAH!
Okay, I'm making an RPG (I know, who isn't?)
However, I hadn't run into any problems I couldn't fix until now.
Here is the code that most likely has the bug in it.
//item.h"
#include...
also, today he asked if i was a computer nerd. i said "yes." He asked me if i used Linux. I said I wanted to but no. he said i wasn't a computer nerd. well, that's a load of crap. if i had more...
can u say, "infinite loop?"
do we have *two* discussions/arguments about pointers and references? check the other one...and u'll see that people think it's funny that we have two posts on pointers going on....
man...i wanted this post to help eliminate those...why don't these people do at least SOME research before posting...*crowds stares at Lynx with a look that says, "hypocrite..."* uh...
Just felt like posting this. True Story.
I heard this kid talking in school about him making this internet program thing...how it takes like files off the internet the filters them and such. Well, I...
wow! thanx...i was thinking of doing allegro (since the graphics are for a game/game engine)
i was really expecting to be yelled at...but i wasn't trying to be...nvm
I would like to learn some sort of graphics library. however, I'm using windows and already hate windows programming. I didn't understand OpenGL hardly at all. Does anyone have any suggestions what...
cash?! :p
*sits down and ponders for a good 13 hours, 38 minutes, and 7 seconds* wait!!!
...
...
how much cash we talkin' about?
lol jk
you can definately make games with c++
as for graphics, u need another library (like OpenGL or Allegro)
i think u should start with maybe a card game (or even tic tac toe)
then once ur skill is...
when in doubt, google it. a-duh!
yes that should probably help a lil
bool init_rand = false;
Asteroid::Asteroid
{
if(init_rand == false)
{
init_rand = true;
in two posts made by prelude i noticed initializing an int by the means of of ( )
is that kinda like a constructor? does it set the value of it without using =?
:confused: sorry if its a newbish...
heh...i never use std namespace or std:: and I have no trouble. in fact, when i do using namespace std;, i get an error. im using Borland 5.02
thx to all u guyz here. u evened out my reputation.
i wuv u...er...jk. im not that type a guy. but thx :D
recursion is simple. it's just when a program calls itself. or you could do something weird like:
int recur(int i)
{
cout<<i<<endl;
return recur(i/2);
}
pinout isn't a global variable because it is in the main() function. put it outside, then that might solve your problem.
pinout = PortD;
main()
{
initl();
while(1)
No, I don't think that will work. Because he needs to update pinout. otherwise the while loop will continue forever. of course, I only no what not to do, not what to do. just like in everything i do.
Most of my reputation points have to do with my spanish signature. then one guy set me down to -10 cuz i was "whining." It may have sounded like that, but i wasn't really trying to. I said it smells...
Toco violoncello (I play cello)
Cellos are the best. Deep tones :)
it might be a typo. int Main() should be int main()