Glad I could help. I've gotten a lot of help on this message board myself, so it felt good to be able to return the favor to someone who needed help.
~Silas P
Type: Posts; User: SilasP
Glad I could help. I've gotten a lot of help on this message board myself, so it felt good to be able to return the favor to someone who needed help.
~Silas P
I posted some pretty simple code for OR,AND statements already. So I'm thinking you aren't getting the basic thought process of each.
&& means the conditional AND in code.
|| means the...
There are some tutorials at the following site. Go to the tutorials main page and scroll down and click on the beginner tutorials. I don't know how good they are, but they may help. There are a lot...
You would use booleans to check for true or false, or possibly more than one answer that needs to be checked for a condition.
For example, checking if a user input is 'a' or 'A' when entering data. ...
I have a big problem. I have a test in 2 days over recursion and recurrence relations. Our instructor always put a twist on everything we do. We have gone over the following recursive functions...
This might not be as simple as you want, but it is a linked list class using a double template type. One for the list and one for the key(search object). If you go through it a few times it might...
Here is the main also.
Sorry about that. I completely forgot to attach the files.
I'm trying to run a program and it is throwing me an error I can't find any help for. It will compile, but fatals when it is building. Here is the error:
General error in module stacks.cpp near...
Would this also apply to my question silent?
I have a problem that is probably something very simple I'm overlooking. I am trying to build a stack and output it. It is compiling, but gives an error that isn't related to my main before it runs....
What is the code for substr()? I might be able to help if I can see this.
This is my main program to create a list of integers 1-9. I am using the enclosed header file list.h . The compiler is generating errors to the header file saying a line within the search function....
The comment line is due to pasting. I'm not sure what you mean about instantiating. The only thing I'm trying to do is make an integer list from 1-9 and output the list so far. The key would be the...
I'm having a problem getting a program to run for class. We are using a specific list class our Professor rearranged himself. We have to use it. It is of template type with two classes imbedded such...
Use the string function strstr. It's a substring pattern match.
Example: char *s = "theologist", *t = "the";
p = strstr(s,t); // Will set p=0 because it's the address location...
Polymorphism is calling virtual function from a class, but keep in mind you must use a pointer to call the function.
You need to have a student class with the same number of arguments matching the types of data in the file. Such as: name, id , grade,gender and birthdate. Name will probably be a string object so you...
Zen has the best idea with the smallest amount of code to be used. Very simple and very easy.
Thanks a lot. That clears all of it up.
Viewing my post, I take it I get a happy face for the : followed directly by a p. Sorry bout that
Is that the way it is supposed to be defined in the derived?
Such as:
class account {}
class sav_acct:public account {} ?
The way I was starting the class was going straight to the ...
Ok. So this really doesn't cause the inheritance to transfer to the derived from the base class. It just checks to see if it has been defined. Right?
I think I understand it. All of my classes have their own header files, so I should just include the name of the header file I am creating in the ifndef and define statements. Is this right?
You haven't declared anything as a pointer. Try setting a pointer to the array, such as int *p=data and substituting p for data in the cout statement.