Forum: C++
Feb 8th, 2005, 4:33 PM
|
|
Replies: 15
Views: 1,029
|
Forum: C++
Feb 7th, 2005, 11:58 PM
|
|
Replies: 15
Views: 1,029
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
|
Forum: C++
Feb 7th, 2005, 4:49 PM
|
|
Replies: 15
Views: 1,029
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
|
Forum: C++
Feb 7th, 2005, 4:39 PM
|
|
Replies: 15
Views: 1,029
|
Forum: C++
Feb 7th, 2005, 4:25 PM
|
|
Replies: 15
Views: 1,029
#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
|
Forum: C++
Feb 7th, 2005, 4:08 PM
|
|
Replies: 15
Views: 1,029
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
|
Forum: C++
Feb 6th, 2005, 5:26 PM
|
|
Replies: 7
Views: 279
|
Forum: C++
Feb 6th, 2005, 4:45 PM
|
|
Replies: 7
Views: 279
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
|
Forum: C++
Feb 5th, 2005, 5:26 PM
|
|
Replies: 3
Views: 302
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
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
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
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
|
Forum: C++
Feb 2nd, 2005, 12:32 PM
|
|
Replies: 10
Views: 590
|
Forum: C++
Feb 2nd, 2005, 3:13 AM
|
|
Replies: 10
Views: 590
|
Forum: C++
Feb 2nd, 2005, 3:09 AM
|
|
Replies: 10
Views: 590
|
Forum: C++
Feb 1st, 2005, 7:12 PM
|
|
Replies: 5
Views: 303
|
Forum: C++
Feb 1st, 2005, 11:52 AM
|
|
Replies: 10
Views: 590
#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
|
Forum: C++
Feb 1st, 2005, 5:42 AM
|
|
Replies: 5
Views: 303
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...
|