623 dammit ;)
Invade -> War
the most expensive
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.
Flush the input stream:
http://www.daniweb.com/forums/thread90228.html
Would you be able to use a DOS command to restart the program?
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 :)
[Spooks]
CSI: Crime Scene Investigation
South Park
623
or it could even be
Planet -> Mars
lid of the
the destruction of
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.
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.
Apologies :( With your two downs we hit 623, and i uppy to 625 again :D
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.
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 :) )
Revelation -> Earth
item that were
627
I do believe you might win...eventually :L
which, I guess, is fairly
"Blood Stained Valentine" - Murderdolls
OK so what is the current issue you are having?
Nice. Can you upvote my post seeing as it helped you?
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.
cout << "Sorted list is " << endl;
SortedList(data); //HERE
You need to cout this.
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.
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).
anything like that before in
"Inside The Fire" Disturbed :D
Burn -> Spark
LOL
631
succeeding in any
which made him greatly embarrassed.
Please mark the thread solved if your problem has been fixed.
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.
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]
Please use code tags. Are you getting any compiler errors? Post them here.
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 :)
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.
So is your problem resolved now?
Hmmmmm....OK then. Thanks.
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?
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 :)
The Hangover - A lol round every corner
300 - Just epic
Oh has anyone seen Africa United? My Aunt was a producer of that film.
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.
What are the post count ranks?!
Can someone give me a complete list?