Alright, here's the problem. I have a simple function that takes an input string, a starting delimeter and an ending delimeter, and returns the string in between.
std::string...
Type: Posts; User: Spitball
Alright, here's the problem. I have a simple function that takes an input string, a starting delimeter and an ending delimeter, and returns the string in between.
std::string...
What about this?
int x = 0; /* a comment.. lalalala
some more stuff...
*/ x = 5;
There are lots of different things to consider.
Alright, thanks. I'll look into that
Hi everyone. I'm building a simple chat server/client using c++ and Winsock and I've run into a problem with my client. I'm combining two examples from Beej's Networking Guide to try and use select()...
I think novacain means to do something like this:
int iParts[5];
iParts[0] = (int)(iTotalWidth * 0.2);
iParts[1] = (int)(iTotalWidth * 0.2);
iParts[2] = (int)(iTotalWidth * 0.2);...
Yeah. Firefox is pretty good, but when I set my computer on fire it crashed!
You could try using Winsock to open a connection to the HTTP Server then POST your info to it.
:eek: How dare they!
You could always try learning a gaphics library such as Allegro or SDl. I'm having fun playing around with little pixel-ants that run around randomly :D
Oh... so it's that simple? Thanks :D I'll give it a try.
Hi, I'm trying to load a file into a structure. Well actually, a structure and a 3d array of structures. Very confusing for somebody like me. Here's what everything looks like.
struct...
I think it would be much easier to manage if it was encapsulated into a class... and instead of checking their health, food; and all that in every function can't you just have it in a loop?
I'm trying to get this simple File I/O code to work but it just outputs junk. Can anybody tell me what the problem is?
#include <iostream>
#include <stdlib.h>
#include <fstream>
using...
Since when is using system(); a security issue? Yes, people could write their own 'pause' command and put a virus in it, but would they really want to considering its running on their own computer?
Okay thanks for the help. I'm not sure I completely understand what you're suggesting, but I'll give it a go anyway. Thanks!
Hi, I'm currently working on a 2d rpg-ish type game (might be implementing stats/etc. later on) and I've been thinking about how I'm going to go about storing my maps.
Obviously I've been...
I'm still a newbie but I'm pretty sure that you're trying to compile this code as a console application, when it should be a win32 application. Make sure when you create a new project that you select...
don't use inverted commas (or whatever they're called lol) when you do this: keys['1']
Just do this: keys[1]
Yeah, I got stuck near that part too, maybe try downloading the binary for Mingw? You should probably ask someone else first though, cause I don't really know very much lol.
to answer your question about floats (and other variables at the same time too i guess), you can name a float type variable anything you want (almost) but it's value has to be a number with a decimal...
Silly me, lol. Must of accidently clicked Windows application. Thanks!
Hi, it's been a while since I've done any C++. When i try to compile this code, I get a linker error. There are probably quite
a few bugs in the code. But this shouldn't cause a linker error, should...