Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~511 People Reached
Favorite Forums
Favorite Tags
Member Avatar for DawnOfIkaros

Don't know if this is the right place to post this but... I just started with SDL, and get the error: expected constructor, destructor, or type conversion before '*' token With this code: [CODE]#pragma comment(lib, "SDL.lib") #pragma comment(lib, "SDLmain.lib") #include "C:\Documents and Settings\Mikael\Mina dokument\SDL\SDL-1.2.14\include\SDL\SDL.h" #include <cstdlib> #include <iostream> #include <string> …

Member Avatar for DawnOfIkaros
0
112
Member Avatar for DawnOfIkaros

I'm making a text-based RPG (Sure you haven't heard that one before ;)) So I'm trying to randomize the damage that the player deals. I want the damage to be (strength*2) + a random number between the variables mindamage and maxdamage, how do I do that?

Member Avatar for DawnOfIkaros
0
63
Member Avatar for DawnOfIkaros

Could someone help me with this? [CODE] ifstream readfromfile("stats.txt"); readfromfile >> lvl >> xp >> str >> spd >> acc >> hp >> endl >> inventory[0] >> endl >> inventory[1] >> endl >> inventory[2] >> endl >> inventory[3] >> endl >> inventory[4] >> endl >> inventory[5] >> endl >>inventory[6] >> …

Member Avatar for programmersbook
0
239
Member Avatar for DawnOfIkaros

Hi! I'm new to C++, been through the basics, and now I'm attempting to make a small console rpg-game where I want my stats (level, xp and such) to be saved in a file. I've successfully saved them into a txt-file, but how do I open it? I don't need …

Member Avatar for DawnOfIkaros
0
97