Search:

Type: Posts; User: tms43

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,999

    OK, so I just added #include and I am...

    OK, so I just added #include <algorithm> and I am still getting this error message....
  2. Replies
    7
    Views
    1,999

    library question max(val, 255)

    I've got this code 'snippet' that is giving me problems. Isn't max(val, 255) part of the <iostream> library? I get an error when I use it like this:




    val=max(min(val,0),255);



    Says...
  3. Thank you :)

    Thank you :)
  4. **pointer explanation, please for a C++ programmer

    I have this code, and I need to understand it better. I'm hoping one of you will explain, ESPECIALLY the part using the double pointer:



    typedef strudt{ // I get this part, I include it...
  5. Replies
    5
    Views
    1,059

    tyvm

    tyvm
  6. Replies
    5
    Views
    1,059

    ok, then how do I access the structs? Is it...

    ok, then how do I access the structs? Is it customary to put the structs in a different file or above main?
  7. Replies
    5
    Views
    1,059

    Struct equivilence

    what would be the most likely equivilence for a struct? C programmers LOVE structs, but as a noob C++ programmer, I'm not well versed with them.

    EX:


    typedef struct{
    float x, y;
    float...
  8. Replies
    15
    Views
    2,542

    nice touch! It's always good to shorten code AND...

    nice touch! It's always good to shorten code AND make it more readible. Thanks again!
  9. Replies
    15
    Views
    2,542

    by george I think you saved the day! I was on...

    by george I think you saved the day! I was on the same track, but missed the ipWireJ... GREAT catch.

    Thank you very much :)
  10. Replies
    15
    Views
    2,542

    yes, I tried initializing all of them using the...

    yes, I tried initializing all of them using the constructor without parameters. So, I'm thinking that what I've done will never get me to what I need it to do. (*gasp*) This should be so easy. I...
  11. Replies
    15
    Views
    2,542

    It puts out garbage. I need to initialize my...

    It puts out garbage. I need to initialize my variables, probably in my default constructor. But I've tried it several ways and it hasn't worked. Like for instance:

    ipJ = 0;

    does not change...
  12. Replies
    15
    Views
    2,542

    constructor problems

    I'm writing a program that is supposed to simulate a JK flip flop. Thing is it's been a while since I've written in C+ and I can't figure out how to initialize my variables (*embarrassed*).

    Here...
  13. Replies
    3
    Views
    2,139

    the last character would move to the first, the...

    the last character would move to the first, the first character would move to the right. So it seems that it would only effect the code word made, making the code word longer, right?
  14. Replies
    3
    Views
    2,139

    So nobody can help me with this?

    So nobody can help me with this?
  15. Replies
    3
    Views
    2,139

    Help with adaptive Huffman theory question

    The question from my homework is this:
    In the adaptive Huffman algorithm, first the codeword for an encountered symbol is issued and then the conversion table is updated. Could the table be...
  16. Replies
    2
    Views
    4,405

    yeah, its the pointer thing that confuses me as...

    yeah, its the pointer thing that confuses me as well as the interaction with the binary tree. I'm sure it seems obvious, but everything I've done (by instinct) has been wrong. I am simply stuck. ...
  17. Replies
    2
    Views
    4,405

    Binary Search Tree - one last question

    The final function (method) needed to make my Address Book complete is a modify function. One that modifies the data in the address book. Right now I've done a rather 'sloppy' version, by deleting...
  18. Replies
    3
    Views
    2,464

    Thank you thank you thank you!

    Thank you thank you thank you!
  19. Replies
    3
    Views
    2,464

    Ofstream... broke as a result of ifstream fix

    Now I'm having troubles with writing the file out. I'M SO CLOSE to finishing this assignment!

    OK, here is my call to the function:



    case 5: cout << "Enter the name of the File to save...
  20. Replies
    2
    Views
    1,772

    You've helped me before. Once again you've saved...

    You've helped me before. Once again you've saved the day! Thank you! That is what was needed.

    tms
  21. Replies
    2
    Views
    1,772

    Ifstream filename passing problem

    In my test program (main) I am asking the user to give me a filename in case 2:



    #include <iostream>
    #include <string>
    #include "Tree.h" // Tree class definition
    #include "AddressBook.h"
    ...
  22. DOH! thanks

    DOH!

    thanks
  23. Its this test code: #include "Tree.h" //...

    Its this test code:



    #include "Tree.h" // Tree class definition

    int main()
    {
    Tree< string > stringTree; // create Tree of int values
    string stringValue;
  24. well, its still doing the same thing. It says...

    well, its still doing the same thing. It says that the item doesn't exist, and nothing gets deleted. So, I'm working on other parts of this applicaiton. I know there is something simple missing,...
  25. ok, I did that. Still doesn't work. Here is the...

    ok, I did that. Still doesn't work. Here is the changes:



    template< typename NODETYPE >
    void Tree< NODETYPE >::deleteFromTree(TreeNode<NODETYPE>* &ptr)
    {
    TreeNode <NODETYPE> *current; ...
Results 1 to 25 of 34
Page 1 of 2 1 2