Search Results

Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: dmmckelv ; Forum: C++ and child forums
Forum: C++ Nov 20th, 2007
Replies: 12
Views: 3,039
Posted By dmmckelv
yep! well HH(Stop)-HH(Start), etc..
Forum: C++ Nov 20th, 2007
Replies: 12
Views: 3,039
Posted By dmmckelv
Sure, use a tokenizer to separate HH, MM, and SS from HH:MM:SS. Then subtract HH from your other HH, MM from MM, etc. As long as it is in 24hr format it should work. You will have to write some...
Forum: C++ Nov 20th, 2007
Replies: 12
Views: 3,039
Posted By dmmckelv
This may not be the best way to do it but, you could build a function to convert the times into seconds and use subtraction. Your function would have to tokenize the time format using the : as a...
Forum: C++ Jan 17th, 2007
Replies: 6
Views: 1,348
Posted By dmmckelv
After taking Lerner's advice I have found that myString is not accepting spaces. If I type in a name... Doe, John Hanes, I expect that entire name to be in the string but when I check this all that...
Forum: C++ Jan 17th, 2007
Replies: 6
Views: 1,348
Posted By dmmckelv
I am getting a runtime error somewhere in the inputData function, I can't find it. Can anyone help? Thanks


#include <iostream>
#include <string>
using namespace std;
void inputData (string...
Forum: C++ Dec 1st, 2006
Replies: 1
Views: 1,497
Posted By dmmckelv
My mixed int is getting set to the wrong value somewhere. Can anyone help me see where?

Driver:

#include <iostream>
using std::cout;
using std::endl;
using std::cin;
#include "Rational.h"...
Forum: C++ Nov 29th, 2006
Replies: 1
Views: 3,050
Posted By dmmckelv
Sorry the code got all screwed up there. Something happened when I previewed my post! Don't worry about helping me out because I think I might have solved my problem.
Forum: C++ Nov 29th, 2006
Replies: 1
Views: 3,050
Posted By dmmckelv
I am having some trouble with the logic for my constructor. The constructor is supposed to open a object of class Rational. The constructor is also supposed to check to make sure the denominator is...
Forum: C++ Nov 21st, 2006
Replies: 3
Views: 2,402
Posted By dmmckelv
Can anyone help me get started on converting a float to a fraction?
Forum: C++ Nov 19th, 2006
Replies: 1
Views: 1,189
Posted By dmmckelv
My while statement does not work. This program is only performing the function on the first word in the sentence. Can anyone help me get the while statement to do all of the words in the sentence?...
Forum: C++ Nov 19th, 2006
Replies: 11
Views: 4,114
Posted By dmmckelv
OK next question. I am trying to change the array tokenPtr is pointing to. My compiler will not let me save tokenPtr as a char[]. How can I access different array positions using tokenPtr? I need...
Forum: C++ Nov 19th, 2006
Replies: 11
Views: 4,114
Posted By dmmckelv
Still having trouble with the code. I did what joeprogrammer said and changed all of the *tokenPtr to tokenPtr and now I can't get the program to compile. If someone can help me pass the word into...
Forum: C++ Nov 18th, 2006
Replies: 11
Views: 4,114
Posted By dmmckelv
OK Can anyone help me understand what a tokenizer does? And why I have to put *tokenPtr? What is the * for?

I am having a heck of a time figuring out how to write a program that takes the last...
Forum: C++ Nov 17th, 2006
Replies: 4
Solved: Array problem
Views: 1,264
Posted By dmmckelv
It was just an easy way for me to allow the user to select which employee sold a product.
Forum: C++ Nov 17th, 2006
Replies: 4
Solved: Array problem
Views: 1,264
Posted By dmmckelv
I am back this week with another homework problem. My array is not working like I thought it would. My brain is about to explode trying to comprehend what is going on. This code will compile but,...
Forum: C++ Nov 9th, 2006
Replies: 7
Views: 7,611
Posted By dmmckelv
I am new to C++. This is a homework problem. So if anyone gives up their time to help me it is greatly appreciated. I have perfect number program, I can get it to run if all my code is in the...
Showing results 1 to 16 of 16

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC