- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
6 Posted Topics
I'm supposed to modify this method ([url]http://pastebin.com/6xF1pN51[/url]) to this (translated): "A faster algorithm to compute the average can be done by looping through the entire image in two passes in each session and make a one-dimensional mean value. In the first pass compute the mean value of the y-axis (one … | |
Re: It seems like you aren't able to think on your own, and expect to be spoon-fed. Do you even know what a function is, and how to use one? So, you did put the code inside a function. And you don't know what to do next.. I suggest you read … | |
Re: I suggest that you pick up a proper C++ book.. ;( also [url]http://www.cplusplus.com/doc/tutorial/functions/[/url] | |
Re: Wow, what's up with the solutions here.. [CODE=C]#include <iostream> using namespace std; int main (int argc, char * const argv[]) { string inputx; cin >> inputx; int numCounter; for (int i=0; i<inputx.length(); i++) { if ( isdigit (inputx[i] )) { numCounter++; } } for (int i=0; i < numCounter; i++) … | |
Re: also, this is prettier [code=c]cout << endl << "Regular Hours Worked: " << regularHours << "Overtime Hours Worked: " << overtimeHours << "Gross Pay for Employee" << employeeID << "is" << grossPay << endl; [/code] |
The End.