richieking 44 Master Poster

That is the power of precedence.
The multiplication will take the power. thats int y =a-b++ * --b;
you need to put them in a correct arragement depending on what you want to achieve such as.
1. int y = (a - b++)*--b;
2. int y = a-(b++ * --b);

Any selection above will at least provide you with a constant answer because the compiler will explicitly understand your intention.

richieking 44 Master Poster

$100 for fully working GUI APP.

richieking 44 Master Poster

Its everywhere... do a little searching ok? we are not here to work for you. just do yourself a little googling.

richieking 44 Master Poster

I think its only polite for me to add this to dragon's.
You should have functions to handle your code as it is very unconfortable to go through your code.
its really not confortable at all.

richieking 44 Master Poster

You can also use the cpp11 lambda and the for_each in the algorithm as follows.

#include <algorithm>
#include <iostream>
#include <iterator>
using namespace std;
int main()
{
    int a[] = {1, 2, 3, 4, 5};
    int i = 2;
    cin >> *(a + i);
    copy(a, a + 5, ostream_iterator<int>(cout, " "));

    // Or you can use lambda as follows
    for_each(a,a+5,[](int &c){cout<<c;});// also very useful.

    cout << '\n';
}
richieking 44 Master Poster

And always main() must be int method not void as it returns a value.

WaltP commented: You must work with the Department of Redundency Department. Am I not clear? Do you people have to repeat everything that I say? -3
richieking 44 Master Poster

please close the thread.

richieking 44 Master Poster

Always do a logical known check first

trainingDays = trainingData.getMeasurements()

for i in range(pDaysRange,32):

       for day in trainingDays:
		if day[i].condition == "Fog":
			prevDaysF += 0.5
		if day[i].condition == "Snow":
			prevDaysS += 0.5
		if day[i].condition == "Rain":
			prevDaysR += 0.5
		if day[i].condition == "None":
			prevDaysN += 0.5
		print prevDaysF
richieking 44 Master Poster

Start looking into vector ok?
its more flexible and a template. This mean you can extend your code to other data types.

understand that 21.43 is a positive number. Well the compiler will save you from that but the user will not be happy with the result as there will be data truncation.

WaltP commented: Students are not allowed to "look int vectors" until the instructor teaches them. -3
richieking 44 Master Poster

idle just got so many problems. Even on the linux box like ubuntu.
You cant rely on idle gui.
Thats a fact.!

richieking 44 Master Poster

why dont you try pyqt forum my friend. :)

richieking 44 Master Poster

mmmmmmmmmmmmm not bad. I jus dont see any real life need for this algo. besides There should be a better way than this.
:)

richieking 44 Master Poster

Aha ;)

richieking 44 Master Poster

why no close this thread and try django forum. I will do that if i were you.
;)

richieking 44 Master Poster

aha ;)

richieking 44 Master Poster

just close the thread will you ? ;)

richieking 44 Master Poster

VulcanDesign.....

Can you please give a benchmark to support your claim or just dont write what you dont know.
The world is waiting for your benchmark pleeeeeeeeeeeeeease

;)

Besides the screen clearing prove i have given you... and besides the one i say it works cross platform...

Do you have a different one?
If not. Please dont disturb anyone anymore ok?
;)

Note. the syntax is not print("\n") *100 , but print("\n" *100) and this prints nothing ok??? Blah

Its python syntatic suger. have a try ok?

richieking 44 Master Poster

I will replace C# with C++ and java with python.

C++ and python are taking the PL. Expecialy Java is sucking nowadays since it take you too much typing for a simple stuff in python.

well thats my take ;)

richieking 44 Master Poster

Do you run your php code on mac or unix...

There must be a platform...????

Please advice. ;)