- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
[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, … | |
[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 < … | |
[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'' | |
[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); } … | |
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 … | |
Re: i think add a line of[U] system("pause")[/U] would help.. sorry that i am also a newbie ><'' | |
Re: Hi..i saw this thread randomly..i got some part don't understand: 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 MAX); Q: 1. From … |
The End.