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

[CODE]#include<iostream> #include<cmath> using namespace std; void getChoice(int& choice); void getInput1(double& foot, double& inche); void getInput2(double& meter, double& cm); void convert1(double foot, double inche, double& meter, double& cm); void convert2(double& foot, double& inche, double meter, double cm); void showResult1(double foot, double inche, double meter, double cm); void showResult2(double foot, double inche, …

Member Avatar for hao001
0
2K
Member Avatar for hao001

[CODE]#include <iostream> using namespace std; int main() { cout << "Enter the number of students: "; int numberOfStudents; cin >> numberOfStudents; double score = -1; for (int i = 0; i < numberOfStudents; i++) { cout << "Enter a student score: "; int score1; cin >> score1; if (score < …

Member Avatar for JasonHippy
0
5K
Member Avatar for hao001

[CODE]for(int i=5;i>=1;i--) { for(int j=5-i;j>=1;j--) { cout<<" "; } for(int k=1;k<=i;k++) { cout<<"* "; } cout<<endl; }[/CODE] sorry but can someone explain this coding to me? T.T''

Member Avatar for hao001
0
89
Member Avatar for hao001

[ICODE] #include <iostream> #include <algorithm> #include <string> using namespace std; struct employees { int em_id; string em_name; string position; string gender; }; void read(employees record[], int max_1); bool IDsort(const employees &a, const employees &b) { return(a.em_id < b.em_id); } char Namesort(const employees&a, const employees &b) { return(a.em_name < b.em_name); } …

Member Avatar for VernonDozier
0
144
Member Avatar for hao001

Hi..i saw this a randomly..i got some part don't understand: [url]http://www.daniweb.com/forums/thread214624.html[/url] @ancient dragon's reply 1) const unsigned int MAX_SIZE = 2; student array[MAX_SIZE]; Q: Why MAX_SIZE = 2 ? 2)15: void insert(student array[],const unsigned int MAX_STUDENT); 33: void mySort(student array[],const unsigned int MAX) 55: void display(const student array[], unsigned int …

Member Avatar for hao001
0
125
Member Avatar for icu222much

I am new to programming in C++. I have a bit of experience in Python and ActionScript3. I decided to pick up C++ so I downloaded Dev-C++ complier. I tried to run the following code but it doesn't seem to do anything. I complied the code, and it did not …

Member Avatar for hao001
0
192
Member Avatar for xfreebornx

[CODE]#include <iostream> #include<vector> #include<ctime> #include<algorithm> using namespace std; struct student { int id; char name; char nationality; char gender; student() : id(0) , gender(' ') { } student(int i, char g) :id(i), name(g) { } }; void insert(student array[]); bool sortByID(const student& a, const student& b) { return ( a.id …

Member Avatar for hao001
0
318