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...
Type: Posts; User: FloatingButter
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...
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;
Oh, 'setEmployee()' actually isn't suppose to be in there, I added that one in myself.
^ Yes I did leave out the header guards.
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
{...
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...
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 ...
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...
Is the old node the tail or the previous node?
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...
^ 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...
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...
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...
"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...
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...
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...
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...
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: ***...
^ Thank you so much. I've finally gotten this to work the way i want it to!!!
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...
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...
I actually just copied and pasted those, since i was lazy at the time and did not want to type out everything again.
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...
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...
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...