alright i see now. im having the small problem of always coming up with 8. but that shouldnt take more then a few minutes to get past
Type: Posts; User: lilhawk2892
alright i see now. im having the small problem of always coming up with 8. but that shouldnt take more then a few minutes to get past
my little program works now. from all your contributions. i feel as though ive accomplished something today.
but i used cin.ignore(); without the parameters. is this okay? or dangerous?
You should get in the habit of choosing better names for your variables. Naming your ifstream "count_space" and your ofstream "Count_Space" seems as if you are deliberately trying to confuse...
"and also. i seen it easy to just ad cout<<x + 1;"
this is what i mean by that.
heres the last bit of code
while(1)
{
Count_Space >> msg;
well. at first i realised it was count the words. after first trying to count spaces. but i figure right now itd be a start to count the whitespaces instead of the words. and switch it up when i can...
now. as you can all see by my join date ive been interested in programming for quite some time. and ive probably gone through this multiple tutorials to get nowhere.
i never built a solid...
im working through TICPP one and i cant seem to get getline() to work;
i am actually having a new problem. ive gotten getline to work. i was just reading from the wrong stream. but now i cant seem...
can you please show us your whole code? or atleast what matters..
headers, base class, derived classes, classes in action etc
those lasts tips helped my program is now running fine. and i know how to fix it the next time
my IDE... sorry. when i say compiler im usually referring to the entire development enviroment
thanks for your input.. ill try this on a few other compilers and see how it works.. i just got through my tutorial on polymorphism. so im not too knowledgeable on virtual functions. but i know what...
sorry about the indentation.. i usually let the compiler handle the indentation.. thanks for the strings.h comment.. ive fixed it. but the problem persisits.. seems to happen everytime i use...
im working on a simple program.. but it constantly crashes. i have absolutely no idea why. ill start the program.. write my name.. press enter. and it gives me the windows error "send bug report"...
ya i do have poor design. its not my specialty.. for example. heres my entire character.h file
#ifndef CHARACTER_
#define CHARACTER_
#include "headers.h"
#include <string>
class Character
oh i always thought that i had to use -> evertime i use a pointer and try to use a method
im trying to make my badguy pointer work. but i have no idea where the problem lies
this is the function code
int Monsters::DistanceToPlayerX(int curX,int PlayerX,Monsters& pBadGuy){
...
im in a perdicament, i need to declare the monsters in my game. but im not exactly sure of how to do that. so im turning to arrays, my original plan was just to do this
Character[2] =...
ok right now im working on a roguelike. and i need to draw the room door. i have a class called room which has the integer width and height as private ofcoarse and in main i have the object MyRoom....
WOOOO for the first time in a week. i have a build with absolutely NO unmanageable errors. feels nice.
put them in there own .cpp file? but should what could possibly need to go in the cpp file? i thought a .h would suffice?
oh but i did add newlines into my project in the compiler. not on the...
how about billboard_objects::
thank you.. for the past little while ive been doing some tinkering. so the defines were there at one point.. things just got a bit hectic.. one moment ill put them in. they should go in the header...
there are repeats? i could have SWORN i checked every line of code there 2 - 3 times.. ill get rid of the extras.. then ill post most of my code if it doesnt work.. thank you for the speedy replies....
my program wont compile because of an error i cant solve.. i have and c++ file that defines all of my class funtions, but in every function definition i have an error (sometimes 2 or 3) per function...
im currently designing my rpg engine.. just to see what i can do. im currently at the point where i would like to implement a visual dungeon. im thinking of making a text file with the design
text...