Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~18.7K People Reached
Favorite Forums
Favorite Tags
c++ x 96
Member Avatar for 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 basic or do something illegal? The errors: : error C3861: 'createAndInitializeTextFile': …

Member Avatar for fiqa92
0
4K
Member Avatar for QuantNeeds

Hello , My program works fine but I still have one error that appears and I would like to fix it. It is complaining about [code] srand( time(0) ); [/code] with the following error: .cpp(25) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data …

Member Avatar for mrnutty
0
755
Member Avatar for 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 "print". This function is the printTextFile(fstream &readFromFile ) function. But initially it is supposed to …

Member Avatar for Ancient Dragon
0
303
Member Avatar for 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 string is “lawn mower”. So I started to use …

Member Avatar for QuantNeeds
0
137
Member Avatar for 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 sure if this is something difficult but I really need …

Member Avatar for ArkM
0
80
Member Avatar for 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: [code] int main() { int size = 20; new double[size]; for(int count = 0; count <= size; count++) { int value; cout << "Enter …

Member Avatar for QuantNeeds
0
463
Member Avatar for 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 perfectly to the file, but for some reason when I go to update a record it does …

Member Avatar for ArkM
0
69
Member Avatar for 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 this is the case because I keep checking the .dat file …

Member Avatar for Agni
0
156
Member Avatar for 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 Tools &record ) function. I am having issues with outputline when I try to print to screen and then …

Member Avatar for Ancient Dragon
0
199
Member Avatar for 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 line of code in the main function, the program begins to repeat infinite …

Member Avatar for Lerner
0
242
Member Avatar for 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 declaration of 'strncpy' My code is the following: [code] // set the tool name void …

Member Avatar for QuantNeeds
0
410
Member Avatar for 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 the following: [code] // set the tool name void Tools::setToolName( string toolNameString) { // …

Member Avatar for QuantNeeds
0
1K
Member Avatar for 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 improve the usage of pointers? For instance how can I pass pointers …

Member Avatar for Alex Edwards
0
67
Member Avatar for QuantNeeds

Hello, I was wondering how I could correct this. It is referring to the following line: [code] set.quickSort(prt1, 0, arraySize-1); [/code] I tried to create an object and call the function this way but I am not sure how to correct this error. My code is the following: [code] bool …

Member Avatar for QuantNeeds
0
175
Member Avatar for QuantNeeds

Hello, The following code works but I am having trouble formatting it with setw() and I am not sure if it possible to format it with a space so that the entire seat header fits on one line and for the rows to also fit on one line with spaces. …

Member Avatar for Nick Evan
0
106
Member Avatar for QuantNeeds

Help I am having the following error: error C2446: '==' : no conversion from 'int' to 'char *' When I tried the following it ignores my counter and I am not sure why. This is a serious problem because it creates and infinite loop that keeps printing. [code] if(char(seating[openSeat + …

Member Avatar for Duoas
0
3K
Member Avatar for QuantNeeds

Please help – I am having either some logic issues or formatting issues: My code is the following: [code] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; using std::setprecision; #include <cstdlib> // contains prototypes for functions srand and rand using std::rand; using std::srand; #include <ctime> // …

Member Avatar for QuantNeeds
0
96
Member Avatar for QuantNeeds

Is it possible to store * and # in an array? I thought I could do this through the data type char. On top of that I was wondering if I could check the array elements to see if the element equaled that character, but I don't think that's possible. …

Member Avatar for QuantNeeds
0
73
Member Avatar for QuantNeeds

I have a problem. I need to pass a non-static data member in one class (class Disks, data member disks) to another class (ToH) to its static bool function, so I can test that value. Here is my error: : error C2597: illegal reference to non-static member 'Disks::disks' My code: …

Member Avatar for mitrmkar
0
141
Member Avatar for QuantNeeds

Well here is my biggest jam of the day: 1) I am not sure if I am using the test method successfully in this program. I need to test the recursion to make sure it’s working accurately. I am not sure how to test this before it prints because I …

Member Avatar for QuantNeeds
0
1K
Member Avatar for QuantNeeds

I am not sure what to do for this error because I do not want to create an object that I initialize. I just want to use it to call the functions. I have included my header file and main() in case that I am doing something wrong. It is …

Member Avatar for QuantNeeds
0
223
Member Avatar for QuantNeeds

Hello, I am working on two separate programs because I was trying one differently. I got my other program’s issue solved but now I would like to complete this one. But I am little lost on the error because the data it is complaining about is part of the class. …

Member Avatar for QuantNeeds
0
2K
Member Avatar for QuantNeeds

Hello, I have 3 major problems: 1) I am not sure if I am doing my static test method correctly. 2) I am not sure if the wagering class is actually checking the bankBalance and the wager 3) I have the following error, which I am not sure how to …

Member Avatar for QuantNeeds
0
294
Member Avatar for QuantNeeds

So I finally I got this to work, but my problem is that it gets very messy when I try to print it as a chart. I have to print the output in a neat tabular format that minimizes the number of lines of output while remaining readable. When I …

Member Avatar for QuantNeeds
0
199
Member Avatar for QuantNeeds

I am little confused, maybe a little overwhelmed because we are just getting into the various storage classes and scopes, and also arrays. My biggest issue is getting my functions and data members recognized in the separate files. I was able to do this with a project I had on …

Member Avatar for QuantNeeds
0
94
Member Avatar for QuantNeeds

Hello I am trying to write a program that prompts the user for 3 test scores, averages the 3 test scores, and keeps repeating until the user enters "N". My problem is that I am creating the average and exam scores as data type double but in order to check …

Member Avatar for QuantNeeds
0
127
Member Avatar for QuantNeeds

Help – for both of my for header components, error reads the following, but I do not understand how to fix this because I am not sure what is wrong about it. Please help. warning C4552: '>' : operator has no effect; expected operator with side-effect [code] void inputGrades (int …

Member Avatar for QuantNeeds
0
771
Member Avatar for QuantNeeds

Help - why is there an issue with the power function? the error states: : error C2668: 'pow' : ambiguous call to overloaded function [code] void compute(int integer) { cout << integer; int value = 9; while(value > 0) { cout << ++ integer; int square = pow(integer,2); cout << …

Member Avatar for QuantNeeds
0
611
Member Avatar for QuantNeeds

Hello, So my program (to calculate n factorial) works well, except for one thing, it won’t output correctly after 12. My other 2 projects working with factorials ( calculating the constant e and e^x) worked because I used data type long. I tried doing it with my program but it …

Member Avatar for Salem
0
117
Member Avatar for QuantNeeds

Hello, I am having the following problem with calling my function to return the salary it calculated depending on the switch statement. I don't understand the error: ": error C3861: 'getSalary': identifier not found" [code] double Salary::getSalary() { return salary; } void Salary::compute() { cout << "Enter the employee's paycode …

Member Avatar for QuantNeeds
0
150