Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 25 of 25
Search took 0.01 seconds.
Search: Posts Made By: Siphon
Forum: C++ Feb 8th, 2005, 4:33 PM
Replies: 15
Views: 1,029
Posted By Siphon
Fixed it earlier, programming running perfectly...

Fixed it earlier, programming running perfectly now...

Quite good to have a brother that's a prodigy at these things :p

Took him <5 minutes to fix everything in the code, but I don't remember...
Forum: C++ Feb 7th, 2005, 11:58 PM
Replies: 15
Views: 1,029
Posted By Siphon
This is what happens when I do as you...

This is what happens when I do as you say:

D:\PROJEKTET\game\game\player.cpp(470) : error C2064: term does not evaluate to a function
D:\PROJEKTET\game\game\player.cpp(473) : error C2064: term does...
Forum: C++ Feb 7th, 2005, 11:48 PM
Replies: 15
Views: 1,029
Posted By Siphon
What o_O?

What o_O?
Forum: C++ Feb 7th, 2005, 4:49 PM
Replies: 15
Views: 1,029
Posted By Siphon
that's probably because you haven't included...

that's probably because you haven't included these other 2 files... I get 12-13 more errors like these when I do that:

D:\PROJEKTET\game\game\player.cpp(501) : error C2064: term does not evaluate to...
Forum: C++ Feb 7th, 2005, 4:47 PM
Replies: 15
Views: 1,029
Posted By Siphon
both errors are supposed to be in the player.cpp...

both errors are supposed to be in the player.cpp and player.h

here are the two other files in the program:


#include <iostream>
#include "monster.h"
#include <time.h>
#include "player.h"
Forum: C++ Feb 7th, 2005, 4:39 PM
Replies: 15
Views: 1,029
Posted By Siphon
that aint it.. almost everything in their is...

that aint it..

almost everything in their is supposed to be in the for-loop... so it starts over and over until you type "leave"... that is, leave the shop.
Forum: C++ Feb 7th, 2005, 4:25 PM
Replies: 15
Views: 1,029
Posted By Siphon
#ifndef __MONSTER_H__ #define...

#ifndef __MONSTER_H__
#define __MONSTER_H__

#include <string>
#include <iostream>
#include <windows.h>
#include "player.h"

using namespace std;
Forum: C++ Feb 7th, 2005, 4:19 PM
Replies: 15
Views: 1,029
Posted By Siphon
Oh and what is the Windows equivalent to...

Oh and what is the Windows equivalent to "unistd.h" in linux/unix ?
Forum: C++ Feb 7th, 2005, 4:08 PM
Replies: 15
Views: 1,029
Posted By Siphon
local function definitions are illegal

Got these errors:
d:\projektet\game\game\player.h(19) : error C2061: syntax error : identifier 'monster' player.cpp

and...

D:\PROJEKTET\game\game\player.cpp(442) : error C2601: 'fight' : local...
Forum: C++ Feb 6th, 2005, 11:51 PM
Replies: 7
Views: 279
Posted By Siphon
Tried that .. White isn't the same as the...

Tried that .. White isn't the same as the original color... In fact, white is really annoying :P
Forum: C++ Feb 6th, 2005, 5:26 PM
Replies: 7
Views: 279
Posted By Siphon
Yea ok that was ok.. But how do I turn the color...

Yea ok that was ok.. But how do I turn the color off again?
Forum: C++ Feb 6th, 2005, 4:45 PM
Replies: 7
Views: 279
Posted By Siphon
Color Text in MSVC++

How do I give my strings color? Trying to do:

#define color_red "\33[0:31m"
#define color_off "\33[0m"

and then

cout << color_red << string_name << color_off << endl;

But this doesn't work, but...
Forum: C++ Feb 5th, 2005, 5:28 PM
Replies: 3
Views: 302
Posted By Siphon
Just noticed I had some "player::" errors, cba to...

Just noticed I had some "player::" errors, cba to fix them here, did it in my own code, still the same errors.

Oh and Im using MSVC++ 6.0 (Professional Edition, doubt it matters :) )
Forum: C++ Feb 5th, 2005, 5:26 PM
Replies: 3
Views: 302
Posted By Siphon
Including your home-made header files

I made "player.h" for "player.cpp" ... But how do you include the "player.h" ?

I tried with <player.h> says it can't find the file... If I do "player.h" I get freaky errors...

Here's the code from...
Forum: C++ Feb 3rd, 2005, 7:38 AM
Replies: 1
Views: 118
Posted By Siphon
Combat in MUDs

Anyone know where I can find some tutorials to where they show how to do combats in MUDs? You know, both units hit once, wait 1 sec, etcetc.
Forum: C++ Feb 2nd, 2005, 4:47 PM
Replies: 10
Views: 590
Posted By Siphon
Managed to add it to the Source Files/Header...

Managed to add it to the Source Files/Header Files by using 'Add files to folder' ... But doesn't work in either folder... btw, where should "dirent.h" be? With MSVC++'s other include files (iostream...
Forum: C++ Feb 2nd, 2005, 4:44 PM
Replies: 10
Views: 590
Posted By Siphon
Nothing... All that comes up is a hex-list...

Nothing... All that comes up is a hex-list like:

0000010 21 3C ... . . . .. <some form of semi-understandable coding text>
0000020 . . . ... . . . <ditto>
00000... ....................
Forum: C++ Feb 2nd, 2005, 1:19 PM
Replies: 10
Views: 590
Posted By Siphon
Tried to drag it to the left window where all the...

Tried to drag it to the left window where all the files are seen... All that happened was that alot of numbers and letters showed up in the right window...

oO... I'm puzzled.
Forum: C++ Feb 2nd, 2005, 12:32 PM
Replies: 10
Views: 590
Posted By Siphon
Hehe.. Project Viewer? Is that the editting...

Hehe.. Project Viewer? Is that the editting window or the one to the left where all the files are seen?
Forum: C++ Feb 2nd, 2005, 3:13 AM
Replies: 10
Views: 590
Posted By Siphon
I put the dirent.h-file in the same directory as...

I put the dirent.h-file in the same directory as all my other header-files (iostream etc) that MSVC had made itself... Still doesn't work... Still get these errors:

error C2065: 'scandir' :...
Forum: C++ Feb 2nd, 2005, 3:09 AM
Replies: 10
Views: 590
Posted By Siphon
Can't find "References" anywhere, found a place...

Can't find "References" anywhere, found a place where you can set the directories of include-files

But nothing else.
Forum: C++ Feb 1st, 2005, 7:12 PM
Replies: 5
Views: 303
Posted By Siphon
The included file should be dirent.h... And the...

The included file should be dirent.h... And the other errors are fixed now.. Its those 2 and one error that has to do with a function inside the header-file containing the class that this, not...
Forum: C++ Feb 1st, 2005, 11:52 AM
Replies: 10
Views: 590
Posted By Siphon
#include <dirent.h>

Im using MSVC++ 6.0 in WinXP... Do I need to download "dirent.h" from somewhere and if I do, where should I put it? Right now I've downloaded it and put it in the same folder as my program.

error...
Forum: C++ Feb 1st, 2005, 11:15 AM
Replies: 5
Views: 303
Posted By Siphon
bump - still need help, and its urgent.

bump - still need help, and its urgent.
Forum: C++ Feb 1st, 2005, 5:42 AM
Replies: 5
Views: 303
Posted By Siphon
scandir etc errors in MSVC.

error C2065: 'scandir' : undeclared identifier
error C2065: 'alphasort' : undeclared identifier

I've included direct.h, had to download it tho, and I put it into my project-folder with my other...
Showing results 1 to 25 of 25

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:55 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC