It will compile, but should have a warning about unreachable code. Jim
if (cCommand == "a") To compare two cstrings ymu strcmp(); Jim
The problem is probably a newline character has been left in the input buffer. The following code should solve the problem. cin.ignore(100,...
What operating system are you using? Why not use the standard C/C++ from stdio.h/iostream to get the key? If you are writing a...
It might be helpful if you take the "C" code and actually convert it back to pseudo code. For example: "int v0 = 0;" create a variable v0 and...
I will help you, but I will not do the assignment for you. If I just give you the code what will you learn?? Create a function returning the...
So you need to convert: to mips assembly here Is there an actual question here? Jim
Please show a small code sample. What compiler and operating system are you using? Jim
For this you should check out the functions in the ctime header. Create a structure tm to hold each of the dates and times. Then use difftime to...
The only thing I can suggest is to change your dPred and uPred vectors to pointers. std::vector<MyPred*> uPred; // values that were always...
I understand everything above but: Do you mean that you are adding a "record" to the vector or you need to alter the contents of one of the...
In your structure: std::string x; std::string y; MyPred(const std::string& x, const std::string& y): x(x), y(y) {} My compiler complains...
The only other way I know of finding the duplicates would be to sort the vector. There might be other ways but I not sure how that would be....
I think the below is something close to what you want. Please consider it pseudo code. struct Pred; { std::string startDate; std::string...
I Googled "motorized pan/tilt head" and there are many links. Here's one http://vimeo.com/groups/1189/videos/2296627. Depending on your skills,...
Have you been able to get a map, mutlimap to work with std::vector<std::string>? Jim
Please don't double post. Please show what you have tried. Also please provide a small sample of your input file (10 records max). Jim
What are your interests, hobbies? Since you are going for an B.E. in computer engineering how about a simple pan/tilt head for a webcam that is...
Ok, but my mind reading software is back--ordered.. Please post some code with the problem highlighted. Jim
If your indentation was consistent it would be easier to see why you don't enter the else. #include <cstdlib> #include <iostream> #include...
Separate names with a comma.