Search Results

Showing results 1 to 40 of 96
Search took 0.01 seconds.
Search: Posts Made By: QuantNeeds
Forum: C++ Aug 2nd, 2008
Replies: 5
Views: 1,091
Posted By QuantNeeds
Basically I typed in the input and then hit 1 to print the file. I can find the print.dat file but I cannot find the hardware.dat.

Basically I try to make a change and then hit 1 again and when I...
Forum: C++ Aug 1st, 2008
Replies: 5
Views: 1,091
Posted By QuantNeeds
I can't find my hardware.dat file on the computer and also the write in the updateRecord() function does not work.
Forum: C++ Aug 1st, 2008
Replies: 8
Views: 671
Posted By QuantNeeds
Thank you AncientDragon :) I got it to work. Now I am trying to figure out my last problem. Not sure if you can help, but if possible, that would be great ;-D
...
Forum: C++ Aug 1st, 2008
Replies: 5
Views: 1,091
Posted By QuantNeeds
Hello,

Finally I am down to the last issue with my program: text file writing and reading.

My file has a function whose ofstream object does work and produces a text file for printing called...
Forum: C++ Aug 1st, 2008
Replies: 8
Views: 671
Posted By QuantNeeds
Ok well I am still frustrated with this problem. And I can't let this issue in working with strings go because I know it must be simple but for some reason I can't figure it out. Anyhow this is the...
Forum: C++ Jul 30th, 2008
Replies: 3
Views: 421
Posted By QuantNeeds
Hello,

I have seriously tried to work on this in different manners and now I am back to an infinite output. I have posted for the past 3 days and the responses have just been questions so I am not...
Forum: C++ Jul 30th, 2008
Replies: 1
Views: 725
Posted By QuantNeeds
Solved it my self lol, but for the sake of others in the same silly situation, the solution:


int size = 20;
double * numList = new double[size];


for(int count = 0; count <= size;...
Forum: C++ Jul 30th, 2008
Replies: 1
Views: 725
Posted By QuantNeeds
Help the error states:
.cpp(31) : error C2337: 'count' : attribute not found
referring to new[count] = value; as the problem.

My code is the following:


int main()
{
int size = 20;
Forum: C++ Jul 30th, 2008
Replies: 3
Views: 1,629
Posted By QuantNeeds
Hello,

The following is my code:



class Tools
{
public:
Tools(int = -1, string = "", int = 0, double = 0.0); // default tools constructor
Forum: C++ Jul 30th, 2008
Replies: 3
Views: 1,629
Posted By QuantNeeds
Help,

I still cannot understand why the following function will not write the change to my program correctly. For my other functions (add a record and delete record, it wrote all the records...
Forum: C++ Jul 29th, 2008
Replies: 4
Views: 505
Posted By QuantNeeds
Ok it’s a lot of code that’s why I avoided pasting the entire thing but I am curious as to how I can fix the following:

1) I don’t know how to clear the getline() function in order to clear and...
Forum: C++ Jul 29th, 2008
Replies: 4
Views: 505
Posted By QuantNeeds
Hello,

I need help to try and figure out why one of my functions does not write to the file. I have 4 functions (below) and all of them write to the file except the updateRecord function. I know...
Forum: C++ Jul 28th, 2008
Replies: 5
Views: 2,108
Posted By QuantNeeds
Ok - yep I have been working on it and I still have the same problems:

1) the way its reading in the strings and not clearing the past entries for the new inputs (just tags remaining at the end
...
Forum: C++ Jul 28th, 2008
Replies: 8
Views: 671
Posted By QuantNeeds
So now I am trying to use the following code so that getline can get all words typed in and then the setToolName function can get the string, count the length and then truncate it if need be. My code...
Forum: C++ Jul 28th, 2008
Replies: 8
Views: 671
Posted By QuantNeeds
No I cannot do this because then even record can have its own size and it will not be consistent to print the records and align them.
Forum: C++ Jul 28th, 2008
Replies: 5
Views: 2,108
Posted By QuantNeeds
Not sure what you mean by this but below are the 2 functions and the screen print out for an example on how it is printing my array with the tool names.

Basically the characters ( ? padded...
Forum: C++ Jul 28th, 2008
Replies: 8
Views: 671
Posted By QuantNeeds
I am having some issues. I was trying to use my setToolName function to copy the string into the array – this would check if the string was too long. But then it does not capture 2 words, say if the...
Forum: C++ Jul 28th, 2008
Replies: 5
Views: 2,108
Posted By QuantNeeds
I am not sure how to prevent the padded characters within a string array from printing. The user inputs the information in function enterRecords() and then prints in outputLine(ostream &output, const...
Forum: C++ Jul 28th, 2008
Replies: 7
Views: 823
Posted By QuantNeeds
This is what I have in the declaration in the header file:


private:
enum Choices { PRINT = 1, UPDATE, NEW, DELETE, END };


Maybe there is something wrong in the switch statement?

I...
Forum: C++ Jul 28th, 2008
Replies: 7
Views: 823
Posted By QuantNeeds
Hello,
Thank you I was able to get the entire tool name through the getline function. I also tried to change my while loop. I would like the program to stop requesting tool information input as soon...
Forum: C++ Jul 28th, 2008
Replies: 7
Views: 823
Posted By QuantNeeds
thanks this worked :)
Forum: C++ Jul 28th, 2008
Replies: 7
Views: 823
Posted By QuantNeeds
I am having 2 main issues with this function:

1) For some reason my while loop is working but not correctly. If the user enters 0 rather than the while loop terminating and proceeding to the next...
Forum: C++ Jul 28th, 2008
Replies: 5
Views: 3,147
Posted By QuantNeeds
Forum: C++ Jul 28th, 2008
Replies: 2
Views: 1,071
Posted By QuantNeeds
thank you - for some reason I did not see the response and was worried about the error

But those answers did work.
Forum: C++ Jul 28th, 2008
Replies: 2
Views: 1,071
Posted By QuantNeeds
I need help because I do not know what the error means so I am not sure how to correct this. The error states:

.cpp(70) : warning C4996: 'strncpy' was declared deprecated

\string.h(156) : see...
Forum: C++ Jul 27th, 2008
Replies: 5
Views: 3,147
Posted By QuantNeeds
Hello,

I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is:

.cpp(70) : warning C4996: 'strncpy' was declared deprecated

My code is...
Forum: C++ Jul 27th, 2008
Replies: 2
Views: 4,461
Posted By QuantNeeds
aaww yes I forgot the object! how silly.... thank you. :o)
Forum: C++ Jul 27th, 2008
Replies: 2
Views: 4,461
Posted By QuantNeeds
I am not sure why this is occuring. I declared these functions in the header file and it is defined them in the .cpp file but in the main function it does not recognize them. Did I forget something...
Forum: C++ Jul 21st, 2008
Replies: 1
Views: 325
Posted By QuantNeeds
Hello,

My code works but I would like to adjust it to perform better. My teacher would like me to perform quickSort with pointers. I did use them but I was wondering what else I could change to...
Forum: C++ Jul 21st, 2008
Replies: 2
Views: 2,979
Posted By QuantNeeds
Forum: C++ Jul 21st, 2008
Replies: 2
Views: 2,979
Posted By QuantNeeds
Hello, I was wondering how I could correct this. It is referring to the following line:


set.quickSort(prt1, 0, arraySize-1);


I tried to create an object and call the function this way but...
Forum: C++ Jul 8th, 2008
Replies: 13
Solved: help formatting
Views: 1,027
Posted By QuantNeeds
I was wondering how to actually implement this. For instance where would I incorporate it and are there any standard library templates that I need to refer to?
Forum: C++ Jul 7th, 2008
Replies: 9
Views: 3,672
Posted By QuantNeeds
Thanks@! I hate when I spend so much time trying to fix code and it turns out to be something that should have been so obvious.

Thanks again :)
Forum: C++ Jul 7th, 2008
Replies: 2
Views: 405
Posted By QuantNeeds
It's ok I figured it out.

For all of them it was a formatting issue that only needed:



<< setprecision(2) << showpoint << fixed <<
Forum: C++ Jul 7th, 2008
Replies: 13
Solved: help formatting
Views: 1,027
Posted By QuantNeeds
Good idea. Thanks. I decided to leave it formatted the way it is and basically it’s all nice and aligned except the header from 10-30 does not have any spaces as the window is not wide enough.
...
Forum: C++ Jul 7th, 2008
Replies: 2
Views: 405
Posted By QuantNeeds
Please help – I am having either some logic issues or formatting issues:

My code is the following:


#include <iostream>
using std::cout;
using std::cin;
using std::endl;
Forum: C++ Jul 7th, 2008
Replies: 9
Views: 3,672
Posted By QuantNeeds
Sure - below is my entire code. Where I actually call the displayOptions() function I commented out so I could work with my other functions.
Basically if I do not use the cast char to convert it and...
Forum: C++ Jul 7th, 2008
Replies: 9
Views: 3,672
Posted By QuantNeeds
thank you - I did not even catch that.
Forum: C++ Jul 7th, 2008
Replies: 13
Solved: help formatting
Views: 1,027
Posted By QuantNeeds
I see. I was wondering, do you know if the prompt command box will delete initial output if the information being printed is too long or will it keep the entire history? It keeps chopping off and I...
Forum: C++ Jul 7th, 2008
Replies: 9
Views: 3,672
Posted By QuantNeeds
Showing results 1 to 40 of 96

 


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

©2003 - 2009 DaniWeb® LLC