I get an error message that some kind of structure is needed to the left of the period in
cout<<Joe.range();
//.h file
Type: Posts; User: Noobie
I get an error message that some kind of structure is needed to the left of the period in
cout<<Joe.range();
//.h file
what is meant by "goes out of scope"?
is there a way to delete the height and width? I want to delete the entire instance of the class.
I think this is what I want:
#include <iostream.h> ...
I don't need one; but I want to learn how to do it.
The below code creates a "Box" class; and then an object "thisbox"; how can I uncreate the object?
#include <iostream>
class Box {
private:
int height, width, depth;
public:
How much RAM does it take for every integer? What about a char or char[256]? I haven't been able to find any decent tutorials on objects (i guess i can initialize one but i cant get them to interact)...
I have no idea what this means
#include <string.h>
char *strstr( const char *str1, const char *str2 );
The function strstr() returns a pointer to the first occurrence of str2 in str1, or...
Wuts the difference between
Player p(x,y,z);
p.talk();
and
What if the ONLY graphics I want to do is display .jpgs inside a nice little windows box with a command prompt console below it, is there a good tutorial for that?
Im not sure what you mean, I tried to add that but it said that talk was not a member of player and I don't know...but the below code works I guess
#include <iomanip>
#include <iostream>...
I don't know what a reference is, aside from a dictionary or encyclopedia.
What am I not understanding?
class Player
{
public:
Player();
void talk();
};
instead of saying
if (!strcmpi("execute command", command))
is there a way to check and see if command includes "execute command" without checking to see that command[0]=e and command...
Of course there is an outer limit to the universe...what...you think its infinite? lol
Don't you think moderators could moderate the board if it was open to posting? It is somewhat inappropriate to harass people for making a suggestion on how to improve the site.
I don't have a question about a post on the FAQ board, I have an answer to a question asked on the FAQ board. It seems pointless and limiting to prevent the submission of replies.
Um, I think this IS a post about it...
if I have something like
'm'==command[0] && 'u'==command[1] || 's'==command[2]
how does it work? Can I use both && and || together and if so what does it mean? Does it mean (this AND that) OR...
No No No No - I don't want to move a post to the FAQ board, I want to reply to something already on the FAQ board
It would be more reasonable to say:
"There is a finite number of atoms within the universe."
heh
If u like encyclopedias and GNU you'll love www.wikipedia.org
I just wanted to suggest maybe the FAQ board should be open to posts. I was gonna add something but I can't and I felt it was pertinent and helpful information that I couldn't add.
Ive been working on a text game for awhile, and the big that helped me out was looking at someone's well annotated sourcecode. However, my game is now far more complicated than my initial example;...
No idea.
If u open it in command prompt itll stay open, but if u open it as an executable itll close when its finished unless u program it not to.