SgtMe 46 Veteran Poster Featured Poster

tracks -> running

SgtMe 46 Veteran Poster Featured Poster

208...hmmmmmm he will be angry :/

SgtMe 46 Veteran Poster Featured Poster

sunblock -> cream
I'm over 1000...wellllllllllll...on it.

AndreRet commented: Nice on your 1000 posts! +0
SgtMe 46 Veteran Poster Featured Poster

468

SgtMe 46 Veteran Poster Featured Poster

sunshine -> sunburn

SgtMe 46 Veteran Poster Featured Poster

464

SgtMe 46 Veteran Poster Featured Poster

Hi there.
On my home computer, I have a folder with all my IT homework in it. At school, I have another IT folder for all of my lesson work. Is it possible to sync the documents between these two folder into one folder with everything? So if I save work at home, it will automatically appear in my IT folder. To make things more complicated, my school uses Windows XP and I have Windows 7.
Thanks :)

SgtMe 46 Veteran Poster Featured Poster

436

SgtMe 46 Veteran Poster Featured Poster

30 Seconds To Mars

SgtMe 46 Veteran Poster Featured Poster

436

SgtMe 46 Veteran Poster Featured Poster

434

SgtMe 46 Veteran Poster Featured Poster

408

SgtMe 46 Veteran Poster Featured Poster

Don't worry it's cool :) The point is that you now know :)

SgtMe 46 Veteran Poster Featured Poster

Please repost your code with code tags (push the code button before you paste your code).

SgtMe 46 Veteran Poster Featured Poster

408

SgtMe 46 Veteran Poster Featured Poster

402

SgtMe 46 Veteran Poster Featured Poster

01110010011011110110011001101100011000110110111101110000011101000110010101110010

SgtMe 46 Veteran Poster Featured Poster

400....

SgtMe 46 Veteran Poster Featured Poster

400!

SgtMe 46 Veteran Poster Featured Poster

398 lol

SgtMe 46 Veteran Poster Featured Poster

0100100100100000011101110110111101101110011001000110010101110010001000000110100101100110001000000110000101101110011110010110111101101110011001010010000001101000011001010111001001100101001000000110010001101111011001010111001101101110001001110111010000100000011101010111001101100101001000000110000101101110001000000110111101101110011011000110100101101110011001010010000001100010011010010110111001100001011100100111100100100000011101000110111100100000011101000110010101111000011101000010000001110100011100100110000101101110011100110110110001100001011101000110111101110010001011100010111000101110

SgtMe 46 Veteran Poster Featured Poster

There won't be a straight forward method of converting every piece of Raptor code into Python code. The way to do it is to look at each line and find functions and methods that make the equivalent of the Raptor code. Effectively, you are rewriting your program around the same logic.

SgtMe 46 Veteran Poster Featured Poster

398 again ;)

SgtMe 46 Veteran Poster Featured Poster

Finally!
394 :)

SgtMe 46 Veteran Poster Featured Poster

Please use code tags (press the code button next time before you paste your code).

SgtMe 46 Veteran Poster Featured Poster

The easiest to solve ones:

Line 18: "indexofsmallest" undeclared.
Where should this variable come from? What does it do?

Lines 35 and 61: "wordcount" undeclared.
You will need to count the words first and send this to the function in the arguments.

Line 145: Expected "}" at end of input
You are missing one close brace. Tac this on to the end. You will need to properly indent the couple of lines above it that are currently out of line.

SgtMe 46 Veteran Poster Featured Poster

grrrrrrrr 398 ;)

SgtMe 46 Veteran Poster Featured Poster

Simple fix (you'll really kill yourself for this one ;) ). You have int gold; , which will set the value of gold to "0". Then, all of your options (apart from else and your inventory option) require you to have enough gold. Consider using a switch instead.

Set gold as 100. Then, have a switch. For example, if the user inputs option 1, you can test whether they have enough money, then go through the function if they do, and call a function or a line of code to tell them they don't have enough if they don't.
http://java-samples.com/showtutorial.php?tutorialid=327

SgtMe 46 Veteran Poster Featured Poster

398

SgtMe 46 Veteran Poster Featured Poster

Next time, please press the code button before you paste your code.

for (i=0; i<=9; i++){}

Ever done a while loop before? Consider a loop which is while (i<=9){} . At the end of the loop, you would have i++; to increment the value of i .
Basically (in a for loop): i=0 makes a new variable called i which is set to 0 . i<=9 means that we keep looping while i is less than or equal to 9. i++ means that we increment the value of i once each loop.

SgtMe 46 Veteran Poster Featured Poster

398

SgtMe 46 Veteran Poster Featured Poster

398

SgtMe 46 Veteran Poster Featured Poster

Say you have the number: 251 The smallest number from those digits will be: 125 Therefore: digit1 = smallest number, digit2 = next smallest, etc.

Seperate the number into individual digits using an array. Find the smallest value and put this in the first index of a new array. Repeat this, removing the number you use each time, until you have no numbers left in the original array. Put all of the new array's values into a string and convert that to an int. This is your new number!

EDIT: You may want to use lists not an array.
EDIT EDIT: Oops got beaten too it. Ah well :)

SgtMe 46 Veteran Poster Featured Poster

398

SgtMe 46 Veteran Poster Featured Poster

Say you have a string: [potato]
You convert the word into a list of chars: [p] [o] [t] [a] [t] [o]
You clone the first letter and place it at the end: [p] [o] [t] [a] [t] [o] [p]
You remove the first letter: [o] [t] [a] [t] [o] [p]

SgtMe 46 Veteran Poster Featured Poster

396

SgtMe 46 Veteran Poster Featured Poster

Sweet I have Dev-C++!
It's really simple.

Step 1: Tools -> Check for updates/packages...

Step 2: Select devpak server from dropdown box. You need "devpaks.org Community Devpaks". Then press the "check for updates" button in the bottom left.

Step 3: On the "groups" dropdown menu, select "Allegro". Then select one of the allegro packages (note: I tried version 4.4.0.1 but it didn't install properly. Try 4.2.2)

Step 4: Click the checkbox next to it and press the "download selected" button in the bottom left. Then follow the installation instructions. Just keep pressing next, next, install or whatever, then finish.

Step 5: Close the download manager, and open a new C++ project. Select the multimedia tab, and choose "Allegro application". It will load some demo code, but you can delete that and put your own code in.

SgtMe 46 Veteran Poster Featured Poster

392

SgtMe 46 Veteran Poster Featured Poster

or...390

SgtMe 46 Veteran Poster Featured Poster

LOL no I'm alright :)
390

SgtMe 46 Veteran Poster Featured Poster

What is the error?

SgtMe 46 Veteran Poster Featured Poster

340

SgtMe 46 Veteran Poster Featured Poster

No please upload it. We really need to see it! Just think: we could fix any errors in that file, help you shorten it, help you improve your knowledge etc. :)

SgtMe 46 Veteran Poster Featured Poster

structure -> integrity

SgtMe 46 Veteran Poster Featured Poster

Cheers :)

SgtMe 46 Veteran Poster Featured Poster

OK :) Steps:

1. The download in step 2 (the files for wxPython) are in a "tarball (tar.gz2)". Not sure what you use on Ubuntu to open these. Have a look around and you should find something. Try this link though (look at the first post by MisfitI38) http://ohioloco.ubuntuforums.org/showthread.php?t=1417011
You may need to extract twice. On windows 7 with 7-zip, you extract the "tar.gz2" to a ".tar", then to the folder containing the files.

2. Download the source package for wxPython here:
http://sourceforge.net/projects/wxpython/files/wxPython/2.8.11.0/wxPython-src-2.8.11.0.tar.bz2/download

3. Extract the tarball to wherever. It doesn't really matter.

4. Look for the folder wxPython-src-2.8.11.0\wxPython\ . In this folder, there should be a script called "setup.py". Copy the path to this file, including the filename (if you can't copy this, tac it on in the next step).

5. Open the shell or whatever (like Windows Command Prompt). Not sure what the Ubuntu command is, but ( cd ) navigate to the directory of your file (paste it in). The tarball must be fully extracted.

6. Type: setup.py install or failing that, python setup.py install . NOTE: THESE ARE THE WINDOWS COMMANDS. YOU MAY HAVE TO PUT SOMETHING FUNNY IN THOSE, BUT TRY THEM OUT FIRST!!!

7. The console will stream out a whole load of cr*p. Ignore this. It should give you confirmation or whatever. Don't close the shell just yet! Open up your python prompt and type import wx . If …

SgtMe 46 Veteran Poster Featured Poster

396

SgtMe 46 Veteran Poster Featured Poster

wings -> flight

SgtMe 46 Veteran Poster Featured Poster

400 eeeeeeeeeek :/

SgtMe 46 Veteran Poster Featured Poster