Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #3K
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 49
Member Avatar for dexter1984

Hi guys, need some help with this. I googl'ed but found no solution. :icon_sad: [CODE=cpp] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; void createRationalNo (int, int); int RationalInfo (int []); //void printArray (int [], int); const int MAX = 20; const int setArray = 5; int initialArray [setArray][MAX]; …

Member Avatar for Maxwell175
0
139
Member Avatar for dexter1984

[CODE=cpp] while (j < i) { cin.ignore(); cout << "Please type enter to display: "; cin >> enter2; if (strcmp(enter, enter2) == 0) { cout << "ID: " << students[j].ID << endl; cout << "Name: " <<students[j].name << endl; cout << "Address: " <<students[j].address << endl; cout << "Telephone: " …

Member Avatar for ponce_jelie31
0
85
Member Avatar for joed13k1941
Member Avatar for dexter1984

Hi guys, I'm having some problem with my C++ assignment. Can't get this part down. [CODE=CPP] class Date { private: static const int daysInMonth[13]; int monthNo, year, day; string month; bool validDate, leapYear; public: void displayDaysInMonth(); void displayDate(); void enterDate(); void verifyDate(); void displayOptions(); void ahqError() {cout << "Error! Enter …

Member Avatar for dexter1984
0
119
Member Avatar for egolovin

Hmmm shouldn't if (test=1) be if (test == 1) Anyway I read that it isn't good to have void main().

Member Avatar for grumpier
0
169
Member Avatar for dexter1984

[url]http://i126.photobucket.com/albums/p98/justln/untitled3.jpg[/url] Which codes do I use so that the answer is not out of place? I tried using \t and setw but it doesn't work :(

Member Avatar for dexter1984
0
148
Member Avatar for dexter1984

Hi, I'm doing a project regarding converting roman numerals to decimals and vice versa. With some reference from the internet, I was able to come up with one. However, it isn't working very well. Can someone look at my codes and point out what/where's the mistakes? Thanks in advance. [CODE=cpp] …

Member Avatar for dexter1984
0
162
Member Avatar for dexter1984

I'm almost done with my assignment but now I'm stuck with some binary file problems. Below is the binary file section of my work. [CODE=cpp]cin.ignore(); cout << "\nPlease enter filename: "; cin >> openBinary; ifstream finBinary; finBinary.open(openBinary, ios::in | ios::binary); if (!finBinary.good()) cerr << "File could not be opened" << …

Member Avatar for Narue
0
137
Member Avatar for dirtdogg

Maybe you should put cout.setf(ios::fixed, ios::floatfield); cout.precision(13); before you cout your answer? And please put [CODE=CPP] code here [/CODE] when you have codes. I almost can't see your comments.

Member Avatar for dexter1984
0
109
Member Avatar for dexter1984

Part of the code from the program I'm having trouble with. The deletion of array element for this doesn't work properly. Can anyone tell me why? I can't spot any mistakes though zzz, [CODE=cpp]cin.ignore(); delStudentCounter = 0; cout << "Please enter ID to delete student: "; cin.getline(delStudent, 50); for (int …

Member Avatar for Salem
0
99
Member Avatar for dexter1984

[CODE=cpp]void choiceSelect() { int choice; char exitconfirm[100]; printmenu(); cin >> choice; if (isdigit(choice)) { if (choice == 7) { cout << "Exiting program. Enter yes to confirm.\n"; cin.ignore(); cin.getline (exitconfirm, 100, '\n'); if (strcmp ("yes", exitconfirm) == 0) { exit (1); } else { choiceSelect(); } } while (choice != …

Member Avatar for dexter1984
0
103
Member Avatar for dexter1984

[CODE= CPP] //Searching for specific characters while (!stats.eof()) { stats.getline(counter,200); for (int i=0; i<strlen(counter); i++) { if (isupper(counter[i])) upper++; if (islower(counter[i])) lower++; if (isdigit(counter[i])) decimal++; if (isspace(counter[i])) blank++; if (counter[i] == '.') end++; if (counter[i] == '!') end++; if (counter[i] == '?') end++; total++; } } [/CODE] Hi guys, I …

Member Avatar for Ancient Dragon
0
117
Member Avatar for dexter1984

[CODE= cpp] #include <iostream> #include <ctime> #include <cstdlib> #include <iomanip> #include <fstream> using namespace std; const int MAX = 51; const int setArray = 5; float initialArray[MAX][setArray]; void createRationalNo (int, int); float RationalInfo (float[][setArray], int); void printArray (float[][setArray], int); int main() { cout << "No\tP\tQ\tQuo\tRem\tValue\n\n"; srand(time(NULL)); int setPQ = 2; …

Member Avatar for dougy83
0
114
Member Avatar for carnage

Arrays is like... storing a lot of values in 1 place. For example, int a [3] means that it can store 3 values, a[0] to a [2]. [url]http://www.learncpp.com/cpp-tutorial/61-arrays-part-i/[/url] Read up more on here.

Member Avatar for carnage
0
131
Member Avatar for dexter1984

Hi guys, I need a little help in my assignment. Got it down to the last part but I don't really get recursive functions. [code=language] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void swapArray (int [], int); int printArray (int [], int); const int MAX …

Member Avatar for dexter1984
0
86
Member Avatar for dexter1984

Hi guys, I need some help with arrays. [ICODE] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void printArray (int [], int); const int MAX = 30; int sizeArray = rand() % MAX; int main() { srand(time(NULL)); int makeArray [sizeArray]; constructArray [makeArray, sizeArray]; printArray [makeArray, sizeArray]; …

Member Avatar for SpS
0
161
Member Avatar for dexter1984

Hi, I need some help with an assignment. Got some problems with my while loop. Can't seem to figure out what's wrong with it. [code=cpp] #include <iostream> #include <string> #include <bitset> using namespace std; int last (int num) { int l; l = (num % 10); return (l); } int …

Member Avatar for JRM
0
194
Member Avatar for dexter1984

Hi, I did some C++ assignments and was confused about a certain code. [CODE=language] #include <iostream> #include <iomanip> using namespace std; int main() { long result, input, num, count; count = 0; cout << "key in number"; cin >> input; while (input>0) { count++; input /=10; } cout << count; …

Member Avatar for dexter1984
0
92
Member Avatar for dexter1984

Hi, I'm a student new to C++, just started learning it for 3 weeks. I just encountered a problem in making a multiplication table as an assignment. Tried alot of methods but still can't figure out what's wrong. [code=cpp]#include <iostream> #include <iomanip> using namespace std; int main() { int input, …

Member Avatar for dexter1984
0
103