Thanks for all the information.
I'll have to remember to "inline" my functions in header files. Thank you.
(How would I link a source file to a header file if the source file contains all the...
Type: Posts; User: C_User
Thanks for all the information.
I'll have to remember to "inline" my functions in header files. Thank you.
(How would I link a source file to a header file if the source file contains all the...
Note: I changed the lines of header containing AI_Subject class to #define AI_Subject_H and eliminated the using std references. Now the compiler is not recognizing the two strings that are part...
"Oh, and those function definitions either be declared in-line or moved to a source file." - C Witch (I don't really recall what "inline" means anymore, although I heard the word a lot in a class a...
Please go to main board for this subject and look for post by C_User. Thank you.
I've written a class and a main program. The class is in a header file.
(I know that I don't need all the headers listed in the class header file, but I'm not at the point where I want to take the...
I'm going to post the code, main and C++ class, in another post.
I'd like to make this class conform to the standards used by the VC++ Express compiler, and it appears that although I can get the...
I have code working, but that is largely because a vector that I am using as part of a structure that is the first of two elements of a MAP (with the second being an integer that is assigned later)...
Gracias!
Danke shoen!
(Thanks!)
I am having a great deal of trouble getting the following to work.
I define "Comwords" as a string, but apparently it takes the members as chars, then I can't set strings in a structure equal to...
Elysia:
Consider my hat tipped to you! If you ever write a C++ tutorial at a beginner level, please post it here.
Right now, what I'm really looking for is away to create a class, assign that...
Elysia,
Thank you!
Your code is way over my head, so I'll try to be more specific.
My version of creating a 2D vector was to embed a matrix routine that I could call.
Just to clarify, given the nature of the responses I've gotten so far, I'm really looking for some sample code here that works. Thanks.
Being new to this, I thought that the declaration I made would stand as the declaration of the array variable.
I'd like to start out by adding an array to a C++ class. I'd like to be able to reference the array using a class object that I create, for example:
Class is Stone.
Stone Bob is an instance of...
Hi,
I wrote the piece of code that follows. I hadn't touched C in years. I'd like to fill in the "blanks" that I wall-papered over to make ths work on my own. For example:
1. What is the...