A tokenizer would be best for something like this; substr() works but you would have to assume that the 'actual' data starts at a specific location in the string, which may be the case, although a...
Type: Posts; User: Tman
A tokenizer would be best for something like this; substr() works but you would have to assume that the 'actual' data starts at a specific location in the string, which may be the case, although a...
You would typically want to do this with a modem for actual phone line calls. In fact, there isn't any other way to do it (and I'm not entirely sure it can be done with a modem, but I think so)....
<stdio.h> is the standard C I/O header. You're using C++. So go ahead and replace the <stdio.h> with <iostream>. Keep the using namespace std;, otherwise you'll have to use std::cout and the like...
I remember reading on Slashdot, quite awhile ago, about an organization of some sort that would host non-profit (maybe just FOSS) massively multiplayer online games for free. I've googled...
Good idea, I'll try it later.
I'm having some major issues with the game I'm developing, called Adage. It will eventually be a hacker-type RTS, but it's still in the early stages and I'm having a big problem with the widget set....
Yeah, I witnessed the event through IRC. Someone decided to countdown until the exact moment. Cool, but... not that cool :p
You have no idea what you're talking about. A single test program, with default options, does not give any useful statistics. A compiler is so multifaceted that good statistics are very hard to come...
ober: Okay, that explains it. Partly. I'll join the new community and maybe the current one.
sand_man: Because, compared to vBulletin, phpBB sucks. As far as free goes, phpBB is great, but vB is...
Here are some good AI Websites that have lots of tutorials and resources.
www.ai-depot.com
www.generation5.org
www.ai-junkie.com
Reccomended reading:
ANN's and GA's: AI Techniques for Game...
I see... Well apparently the Register option on the forums isn't working right now. So I'll check back later.
So I was bored and decided to check back on Flashdadde Forums. I went to flashdaddee.com, clicked the 'Forums' link and.. EEEEK! The first thing I notice is that a new style is up, then that the...
It's already merged, I even emerged it again just in case (was the latest version) and it didn't work :(.
www.libsdl.org - There are links to some tutorials there.
You don't need to learn WAPI for OpenGL, SDL is cross-platform and you can use it with that.
It still gives the same error.
I have it - it's in /usr/lib. Apparently it's not the right version or something?
Gentoo is sweet dude :D
I'm using it right now. But, people 'just starting off' in linux will find it hard to install. I started with slackware, but soon decided that I didn't like it at all and...
How can I get SDL to work with g++? In gcc it works fine, but when I try to compile something with g++.. well the compile is fine, but at runtime I get the following error message and it exits:
...
Just to add to that: when you attempt to compare strings with the == operator, you're comparing their pointers. So basically, you were comparing the memory address of unit_type with the memory...
Okay, basically your problem is that in C, you can't compare strings that easily. Instead, you have to use strcmp():
if ( strcmp (unit_type, "q") == 0 )
break;
if ( strcmp (unit_type,...
You'd be using hash tables. Personally I would implement it with a struct:
struct hash {
char name[10];
int value;
} hashtable[3];
Then you can set the name and value of each...
Professional looking? I say messy.
strings are nice, but if you don't want to use them, strcpy() is the way to go.
strcpy (cardNAME, "Two of Hearts");
Should do it, assuming you have the array big enough to hold all the...
Oh okay, thanks for the clarification.
I realise how it's "adjusting" to my post, but it's really ugly and would be nicer if it just stayed the same :rolleyes: