Search:

Type: Posts; User: FloatingButter

Search: Search took 0.00 seconds.

  1. Replies
    35
    Views
    3,949

    Since the majority of the users are suggesting...

    Since the majority of the users are suggesting that I declare the boolean functions outside of my Employee class it seems like I'm going to address this issue with my professor.



    I always...
  2. Replies
    35
    Views
    3,949

    This is the exact header file as it was given to...

    This is the exact header file as it was given to me:



    #ifndef CCC_EMPL_H
    #define CCC_EMPL_H

    #include <string>
    using namespace std;
  3. Replies
    35
    Views
    3,949

    Oh, 'setEmployee()' actually isn't suppose to be...

    Oh, 'setEmployee()' actually isn't suppose to be in there, I added that one in myself.

    ^ Yes I did leave out the header guards.
  4. Replies
    35
    Views
    3,949

    Yeah you might be right about that. Sometimes I...

    Yeah you might be right about that. Sometimes I tend to over think myself if I'm unsure of how to go about coding something.

    Below is what the header file looks like.



    class Employee
    {...
  5. Replies
    35
    Views
    3,949

    The only reason why I wanted to have the boolean...

    The only reason why I wanted to have the boolean functions as class member functions was because I have to use a header file which contains them inside of a class. (We are using cxxtesting to test...
  6. Replies
    35
    Views
    3,949

    using the C++ sort stl

    I'm tasked with building a program that sorts a list of employees by name and by salary using the sort stl in the c++ library. Theres a code at this site: STL Sort Comparison Function - CodeProject ...
  7. Replies
    14
    Views
    4,246

    Ok. I ended up redoing that function, and now it...

    Ok. I ended up redoing that function, and now it can delete from the end of the list(see code for new version). The only problem that I am having now is getting my search and insert function to...
  8. Replies
    14
    Views
    4,246

    Is the old node the tail or the previous node?

    Is the old node the tail or the previous node?
  9. Replies
    14
    Views
    4,246

    I know whats wrong, I have to implement a...

    I know whats wrong, I have to implement a condition to check if the delPtr is at the end of the list and then delete it. I know that in order to do this I have to point the tail of the node to the...
  10. Replies
    14
    Views
    4,246

    ^ I hadn't tested the search and insert function...

    ^ I hadn't tested the search and insert function yet, but for the search and remove function, If I tried to run the following code below, It'll print out the entire list but not run my search and...
  11. Replies
    14
    Views
    4,246

    I've managed to figure out how to insert an...

    I've managed to figure out how to insert an assignment after I've found a certain due date. I've ended up making two search function: "search_and_remove" and "search_and_insert" that removes and...
  12. Replies
    14
    Views
    4,246

    It is, I was just having a hard time...

    It is, I was just having a hard time understanding how its delete it. Originally,I wasn't sure whether or not my "DeleteAssign" function would work correctly. I thought that since "current->date" was...
  13. Replies
    14
    Views
    4,246

    "found" is a node right? I've modified my code...

    "found" is a node right?

    I've modified my code a bit again, instead of the user entering one long string into addAssign, I've created three parameters to be initialized with the three string in...
  14. Replies
    14
    Views
    4,246

    Alright. I think I've figured out a way to...

    Alright. I think I've figured out a way to implement Evan's split method into my code. I've create a method "search_and_remove" that takes each line of my list, splits it, and compares the date with...
  15. Replies
    14
    Views
    4,246

    Splitting in a linked list class

    I'm trying to develop a program that stores a list of hw assignments in the form of "Date,Assignment name,grade". I have functions that add,remove, and delete from a list, but I would also like to...
  16. Nevermind. I was able to figure it out. All I had...

    Nevermind. I was able to figure it out. All I had to do was to delete my library name under "Project -> properties -> Linker ->Libraries -> Add option -> Other -> -l%libname%" and everything worked...
  17. Getting Boost Libraries to work with Netbeans and MinGW

    I'm getting this error


    g++.exe: error: date_time: No such file or directory make[2]: *** [dist/Debug/MinGW-Windows/boosttest.exe] Error 1 make[1]: *** [.build-conf] Error 2 make: ***...
  18. Replies
    14
    Views
    2,227

    ^ Thank you so much. I've finally gotten this to...

    ^ Thank you so much. I've finally gotten this to work the way i want it to!!!
  19. Replies
    14
    Views
    2,227

    No this is fine, I've just modified it a bit...

    No this is fine, I've just modified it a bit cause I want the user to enter in a number for both the category and item instead of having to type in everything word for word. I'm also trying to get my...
  20. Replies
    14
    Views
    2,227

    I forgot to put comments in my code. The...

    I forgot to put comments in my code.

    The problem I'm having is figuring out a way to print out just a certain amount of items from the map (Ex. if the user enters a 1 for the CPU category, they...
  21. Replies
    14
    Views
    2,227

    I actually just copied and pasted those, since i...

    I actually just copied and pasted those, since i was lazy at the time and did not want to type out everything again.
  22. Replies
    14
    Views
    2,227

    When I tried to use this function my program...

    When I tried to use this function my program would not print out a price, but would jump to the next output statement I had. So I've changed my code a bit, instead of the user having to type in each...
  23. Replies
    14
    Views
    2,227

    Alright, I'm gonna try this and see how I can...

    Alright, I'm gonna try this and see how I can modify the rest of my code. By the way, I forgot to mention that if I had gotten rid of the hypens in some of my map names and included spaces in between...
  24. Replies
    14
    Views
    2,227

    Suggestions on how to tweak my code

    In my code I'm creating a pricing system consisting of computer parts, where the user can enter in an item, the program will find it stored in a map, and return its price. The different categories...
Results 1 to 24 of 25