Search:

Type: Posts; User: SilasP

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,031

    Good deal.

    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
  2. Replies
    10
    Views
    1,031

    Simplest way I know.

    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...
  3. Replies
    10
    Views
    1,031

    Try this.

    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...
  4. Replies
    10
    Views
    1,031

    Boolean examples.

    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. ...
  5. Replies
    0
    Views
    1,043

    Recursion using linked list

    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...
  6. Thread: Linked Lists

    by SilasP
    Replies
    9
    Views
    1,280

    This might not be as simple as you want, but it...

    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...
  7. Thread: Error help.

    by SilasP
    Replies
    3
    Views
    780

    Here is the main also.

    Here is the main also.
  8. Thread: Error help.

    by SilasP
    Replies
    3
    Views
    780

    Sorry about that. I completely forgot to attach...

    Sorry about that. I completely forgot to attach the files.
  9. Thread: Error help.

    by SilasP
    Replies
    3
    Views
    780

    Error help.

    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...
  10. Thread: Stacks

    by SilasP
    Replies
    9
    Views
    1,006

    Would this also apply to my question silent?

    Would this also apply to my question silent?
  11. Thread: stack

    by SilasP
    Replies
    2
    Views
    827

    stack

    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....
  12. Replies
    2
    Views
    984

    What is the code for substr()? I might be able...

    What is the code for substr()? I might be able to help if I can see this.
  13. Thread: List class

    by SilasP
    Replies
    0
    Views
    2,050

    List class

    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....
  14. The comment line is due to pasting. I'm not sure...

    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...
  15. Linked list with two class types within template.

    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...
  16. Use the string function strstr. It's a substring...

    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...
  17. Thread: polymorphism

    by SilasP
    Replies
    10
    Views
    1,406

    Polymorphism is calling virtual function from a...

    Polymorphism is calling virtual function from a class, but keep in mind you must use a pointer to call the function.
  18. You need to have a student class with the same...

    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...
  19. Replies
    5
    Views
    1,335

    Zen has the best idea with the smallest amount of...

    Zen has the best idea with the smallest amount of code to be used. Very simple and very easy.
  20. Replies
    14
    Views
    2,139

    Thanks a lot. That clears all of it up.

    Thanks a lot. That clears all of it up.
  21. Replies
    14
    Views
    2,139

    Viewing my post, I take it I get a happy face for...

    Viewing my post, I take it I get a happy face for the : followed directly by a p. Sorry bout that
  22. Replies
    14
    Views
    2,139

    Is that the way it is supposed to be defined in...

    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 ...
  23. Replies
    14
    Views
    2,139

    Ok. So this really doesn't cause the inheritance...

    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?
  24. Replies
    14
    Views
    2,139

    I think I understand it. All of my classes have...

    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?
  25. Replies
    2
    Views
    995

    You haven't declared anything as a pointer. Try...

    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.
Results 1 to 25 of 40
Page 1 of 2 1 2