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
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for randrum1707

Hello, I'm trying to overload an indexing operator and I'm running into issues with a vector (3 dimensions). Here is what it should do: [CODE]operator[] The indexing operator should be overloaded to provide accessor methods for the class. Subscript 0 should provide access to the x component value of the …

Member Avatar for triumphost
0
294
Member Avatar for randrum1707

Hello everyone, I'm having a problem with an assignment that I'm not sure how to fix I'm getting the following error: accountdb.cpp:55: error: cannot convert std::string to const char* for argument 1 to int strcmp(const char*, const char*) Here is my header file: [CODE] #ifndef ACCOUNTDB_H #define ACCOUNTDB_H #include "account.h" …

Member Avatar for randrum1707
0
1K
Member Avatar for randrum1707

Hi everyone, I'm having issues incorporating something required by my assignment. I am supposed to create a class that has 2 private data members. One should be an array of 10 Database (Database being the name of the other class) objects. The other should be an integer that assigns the …

Member Avatar for randrum1707
0
153
Member Avatar for randrum1707

Hi everyone, I'm trying to to output an entire character of arrays in my program. I am using a header file with my class, and a source code file for my method definitions. Here are the relevant parts. The method definition for getName() [CODE] char Account::getName() const { return *AccName; …

Member Avatar for WaltP
0
98
Member Avatar for randrum1707

Hey everyone, I'm trying to remove all punctuation from a string of characters. Here is the part of the code that I'm using to remove the punctuation from the string (string1 being the string). [CODE]for (int i =0; string1[i]; i++) { if(ispunct(string1[i])) string1.erase(i,1); } [/CODE] It is removing punctuation perfectly …

Member Avatar for mazzica1
0
519