SgtMe 46 Veteran Poster Featured Poster

623 dammit ;)

SgtMe 46 Veteran Poster Featured Poster

Invade -> War

SgtMe 46 Veteran Poster Featured Poster

the most expensive

SgtMe 46 Veteran Poster Featured Poster

that was the

SgtMe 46 Veteran Poster Featured Poster

Nobody will just give you the code. This is an assignment. You are obviously meant to learn. Learning does not entail getting us to give you the code. You will learn nothing from it. Not only does it not benefit us, but it won't benefit you either. You will have a greater understanding of C++ later on if you do this for yourself.

SgtMe 46 Veteran Poster Featured Poster

Flush the input stream:
http://www.daniweb.com/forums/thread90228.html

Would you be able to use a DOS command to restart the program?

SgtMe 46 Veteran Poster Featured Poster
SgtMe 46 Veteran Poster Featured Poster

1. Stay here at DaniWeb! As you can see, we have a huge amount of dedicated members who love to contribute.
2. Have a look at sourceforge
3. You should have a decent understanding of Python and should be able to complete the task you sign up for. It really depends what the team lead is asking for.
4. I don't know if books are a good idea or not. I only used the official documentation for python when I was learning, and then just practise practise practise...
5. Just stick at it :)

SgtMe 46 Veteran Poster Featured Poster

[Spooks]
CSI: Crime Scene Investigation
South Park

SgtMe 46 Veteran Poster Featured Poster

623

SgtMe 46 Veteran Poster Featured Poster

or it could even be

SgtMe 46 Veteran Poster Featured Poster

Planet -> Mars

SgtMe 46 Veteran Poster Featured Poster

lid of the

SgtMe 46 Veteran Poster Featured Poster

the destruction of

SgtMe 46 Veteran Poster Featured Poster

Post 1:
The return value will currently go no-where. If you want to write the return to the variable (luckyNumbers):

<type> luckyNumbers = spin_wheel();

Post 2:
If you want to repeat turns, then use a loop. Use, say, a while loop, to keep playing until the user presses a certain key or a variable is false or whatever.

SgtMe 46 Veteran Poster Featured Poster

This is because you are returning "temp", which is in a for loop, and is constantly over-written. You need an array outside of the for loops which you write each sorted part of the list to, and then return that.

SgtMe 46 Veteran Poster Featured Poster

Apologies :( With your two downs we hit 623, and i uppy to 625 again :D

SgtMe 46 Veteran Poster Featured Poster

The reason is that your function is of type "void", and does not return anything, so you can print it. Change the type of the list or whatever you are returning.

SgtMe 46 Veteran Poster Featured Poster

You don't HAVE to return a bool if you don't have one declared. Change the type of the function and then change the type of variable that receives the return. You could just use "void" and not have any return if you don't need it.
(If people helped then upvote please :) )

SgtMe 46 Veteran Poster Featured Poster

Revelation -> Earth

SgtMe 46 Veteran Poster Featured Poster

item that were

SgtMe 46 Veteran Poster Featured Poster

627
I do believe you might win...eventually :L

SgtMe 46 Veteran Poster Featured Poster

ball of goo

SgtMe 46 Veteran Poster Featured Poster

which, I guess, is fairly

SgtMe 46 Veteran Poster Featured Poster

"Blood Stained Valentine" - Murderdolls

SgtMe 46 Veteran Poster Featured Poster

OK so what is the current issue you are having?

SgtMe 46 Veteran Poster Featured Poster

Nice. Can you upvote my post seeing as it helped you?

SgtMe 46 Veteran Poster Featured Poster

On line 155:

return(player_turn);

Surely you are trying to return the function itself? You don't appear to have a variable with this name in the function.

SgtMe 46 Veteran Poster Featured Poster
cout << "Sorted list is " << endl;
SortedList(data); //HERE

You need to cout this.

SgtMe 46 Veteran Poster Featured Poster

Can you do AV scans in safe mode? Do you have an ATI chipset? My Mum has one and it causes the laptop to freeze alot.

SgtMe 46 Veteran Poster Featured Poster

Have you checked that the service is enabled to run automatically on startup and that the process is allowed to run? Go to services and features and make sure "Windows Search" is enabled. Also go to "Windows Features" and make sure that it is allowed. (I am using Windows 7 so those options may not be there).

SgtMe 46 Veteran Poster Featured Poster

anything like that before in

SgtMe 46 Veteran Poster Featured Poster

"Inside The Fire" Disturbed :D

SgtMe 46 Veteran Poster Featured Poster

Burn -> Spark

SgtMe 46 Veteran Poster Featured Poster

LOL
631

SgtMe 46 Veteran Poster Featured Poster

succeeding in any

SgtMe 46 Veteran Poster Featured Poster

which made him greatly embarrassed.

SgtMe 46 Veteran Poster Featured Poster

Please mark the thread solved if your problem has been fixed.

SgtMe 46 Veteran Poster Featured Poster

I guess that these programs would offer up support eventually. Find a brand-new GUI or graphics module that is supported in 3.x This gives you the opportunity to learn how to use that module without wasting time.

SgtMe 46 Veteran Poster Featured Poster

You would want to read the string into an array. Split the string at each space, so you have individual words, and feed it into an array. Then use the "random" module to generate a number from 0 to the length of your array. Then, that integer it gives can be used to read a value from the array at that position. Ie, if it gave you 3, you would write, like:
print array[3]

SgtMe 46 Veteran Poster Featured Poster

Please use code tags. Are you getting any compiler errors? Post them here.

SgtMe 46 Veteran Poster Featured Poster

All you need to do is look through your if statements, and try to find a pattern or formula that can relate to all the values. When sum is 2, the array position is 0, and we input 2. When sum is 8, the array position is 6, and we input 8. Each if statement will do one of these, though they all follow the same pattern:
sum == sum ... array position = sum-2 ... input = sum

So:

total[sum-2] = sum;

Don't worry, I haven't written the code out for you. You will need to put this in a loop :)

SgtMe 46 Veteran Poster Featured Poster

You need to provide us with more details so we know the specification of the question. Plus, we won't write the code for you, we will only help.

SgtMe 46 Veteran Poster Featured Poster

So is your problem resolved now?

SgtMe 46 Veteran Poster Featured Poster

Hmmmmm....OK then. Thanks.

SgtMe 46 Veteran Poster Featured Poster

By this, it would suggest that either the variable has not yet been defined, or has not been defined in the same scope as where you are trying to call it (global scope, function scope etc.). Could you post the error and tell us the line which gives the error?

SgtMe 46 Veteran Poster Featured Poster

Not sure if you are getting the error (still getting back into C++ from a long spell in Python), but I think you need to define your "get_input" and "CheckLeapYear" functions before the main. Otherwise, you are calling something from the main that is not yet initialized. It also helps to keep the same type format for your function names. "get_input" and "CheckLeapYear" could instead become "GetInput" and "CheckLeapYear", or "get_input" or "check_leap_year".

I did a quick google for this problem and it seems that your logic for working out whether "x" is a leap year or not may be wrong. This is a line of C code I found:

if(year%400 ==0 || (year%100 != 0 && year%4 == 0))

Hope this helps you out :)

SgtMe 46 Veteran Poster Featured Poster

The Hangover - A lol round every corner
300 - Just epic

Oh has anyone seen Africa United? My Aunt was a producer of that film.

SgtMe 46 Veteran Poster Featured Poster

Also, if you have onboard graphics and it is turned on along with the graphics card, they may conflict. Go in the BIOS and check whether the onboard graphics are enabled.

SgtMe 46 Veteran Poster Featured Poster

What are the post count ranks?!
Can someone give me a complete list?