345 Posted Topics
Re: I haven't got an iTouch (yet), but I played World At War: Zombies on a friends and it will awesome. | |
Re: Three men book a hotel room that costs £30. They pay, then go to the room. Then, the manager realises that they should have only been charged £25. He gives the porter £5, with instructions to give it back to the three men. Realising that £5 won't split between 3 … | |
Re: Furthermore, Piriform make a variety of free programs for windows. CCleaner cleans out most un-needed things from your PC, and is generally useful. Defraggler is a defragmenting program, which can work on entire drives or single files. [url]http://www.piriform.com/ccleaner[/url] [url]http://www.piriform.com/defraggler[/url] | |
Hi all :) I figured out the other problem but now I need more help :'( I need to rename a disc and it needs a title which is 16 characters, long, but I am not allowed that many. And for long complicated reasons, it has to have this name. … | |
Re: Have you tried altering the security or whatever on your XP computer? | |
Re: You have many errors. Firstly, click the code tags button instead of typing them in (you need a back slash on the close code) You are missing a semi-colon [;] on line 4. Next, you have not included fstream. Also, you need to change the line you say "is giving … | |
Re: Drunken Hyena!!! :D:D:D:D:D [url]http://www.drunkenhyena.com/cgi-bin/dx9.pl[/url] | |
Re: It depends what you want to do. If you just want to start making basic 2D games, then you would want to learn C++ and Allegro. [url]http://www.cppgameprogramming.com/cgi/nav.cgi?page=index[/url] (Double click anywhere on the site to bring up a menu). Start with the C++ tutorials and make some demo programs, then move … | |
Re: Theses might help a bit: [url]http://www.linuxforums.org/forum/newbie/68856-cpu-usage.html[/url] [url]http://www.linuxquestions.org/questions/programming-9/how-to-determine-cpu-usage-memory-usage-i-o-usage-by-a-particular-user-logged-on-li-220164/[/url] I'm stressing the words 'might' and 'a bit' here. | |
Re: Why are you making an enumerator for [ICODE]boolean[/ICODE]? Can you not just use: [CODE]bool x = False;[/CODE] That's probably what it's moaning about. | |
Re: You could use pygame. [url]http://pygame.org/docs/ref/event.html[/url] Tips: Remember to "pump" the event queue on each update. Don't initalize a window, just use the console. | |
Re: Try making 'halfSideLength' an int. ie line 21: [CODE]alfSideLength = int(( 0.9 * overallLength ) / 2.0)[/CODE] Just a hunch, seeing as the error says it can't "multiply not-int type float()", when you call the function on the line specified. | |
Re: Ouch. That sounds quite hard. To the best of my knowledge, there isn't any way of combining another GUI kit with Allegro. Your best option would be to make your own text entry field. Draw out a box, and when the user clicks on it (check mouse position), a flashing … | |
Re: Is there a way of resizing the window through your program after it's been created? | |
Re: Please post what code you have so far. Thanks :) | |
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 … | |
Re: Please post this in the Windows 7 forum. Hardware And Software -> Microsoft Windows -> Windows Vista And Windows 7. Try downloading a different installer. | |
Re: Sweet code! May I recommend adding getchar(); at the end to pause? Just makes it a little easier for the user :) | |
Re: Please explain what you are trying to do. Thanks. | |
Re: I would start using allegro. It's quite easy and you can simply download and install the package in Dev-C++. [url]http://www.cppgameprogramming.com/cgi/nav.cgi?page=index[/url] | |
Re: Welcome to DaniWeb! Don't worry about being knew and being knew in IT generally. We're here to help you ;) I started out here not knowing much about programming and being a complete noob generally, but I've progressed quite far with the help of this community and my aim now … | |
Re: Welcome to DaniWeb! Good to have you onboard. I'm sure you have a wealth of knowledge to contribute :) | |
Re: In your code, you specify numbers of length "9" (index "0" to index "8"). Then, you have a look that feeds data into the array "if nSize is less than or equal to length '10' (index '0' to index '9')". Therefore, your program will try to reference an index of … | |
Re: You would indeed use a while loop. You would want the console to be hidden, so save your script as a [*.pyw]. If you want to not use your CPU too much, you could put in a delay/wait/sleep or whatever you want to call it, so the program is checking … | |
Re: Do you mean program WITH the phone, or program FOR the phone? Not sure about programming with it. Seeing as it is an android device, there may be an android app for this, but you would haev to do some research. If you mean programming FOR, then of course you … | |
Re: I would make a simple game. If the game is text based, you could do something like tic-tac-toe. If you really want to go for it, you could do a console version of space invaders, but this may be too challenging for a first project. If the programs have to … | |
Re: Try here: [url]http://www.codersource.net/mfc/mfc-tutorials.aspx[/url] And get windows 7 ;) | |
Re: [url]http://www.youtube.com/user/TheMonkeyLords#p/c/0/RC5GeZIOZaU[/url] This is a guy who has a series of Python 3 tutorials. If the link works, you should see the playlist of the videos on the right. If not, you will need to find the "Python 3 Tutorials" playlist. Good luck :) | |
Re: Learning C++ and fairly advanced use of DirectX in 2 weeks? Sorry, it's just not possible. Surely you could speak to your tutor about this "personal problem" and come up with something that would suit both of you? | |
Re: Simple fix (you'll really kill yourself for this one ;) ). You have [ICODE]int gold;[/ICODE], which will set the value of [ICODE]gold[/ICODE] to "0". Then, all of your options (apart from [ICODE]else[/ICODE] and your [B][U]inventory[/U][/B] option) require you to have enough gold. Consider using a switch instead. Set gold as … | |
Re: I've found a few bits on hiding the console window: [url]http://www.franz.com/support/documentation/7.0/doc/operators/cg/h/hide-console.htm[/url] [url]http://www.governmentsecurity.org/forum/index.php?showtopic=26476[/url] [url]http://answers.yahoo.com/question/index?qid=20081029081028AAnGwqn[/url] Please upvote this post if it helps :) | |
Re: 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 … | |
Re: Say you have the number: [ICODE]251[/ICODE] The smallest number from those digits will be: [ICODE]125[/ICODE] 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 … | |
Re: The easiest to solve ones: [B]Line 18: "indexofsmallest" undeclared.[/B] Where should this variable come from? What does it do? [B]Lines 35 and 61: "wordcount" undeclared.[/B] You will need to count the words first and send this to the function in the arguments. [B]Line 145: Expected "}" at end of input[/B] … | |
Re: We won't write the code for you. We will help you if you show us effort. Sorry, but it's the rules. | |
Re: Please use code tags (press the code button next time before you paste your code). | |
Re: Not sure why you have such a long for loop at the end there. Surely you can make the string into a list of chars, then you add a character at the end (which is the same as the first one) and remove the starting character. | |
Re: What is the error? Is it a compiler error? Runtime error? Logic error? | |
Re: Please be clearer in what you want to do. You want a game to make in C++, that's not tic-tac-toe? How about space-invaders, asteroids, pacman...do a google search for classic arcade games and make a clone. | |
Hi there. I have made a program in Python with PyGame and PyOpenGL to test out vertex and pixel (fragment) shaders. I would like to be able to right click on the shader file (just a text file with a custom extension) and choose Open With... and then open with … | |
Re: This works for me: [CODE]import random import os def main (): #declare variables compNumber = 0 playNumber = 0 tie = 0 playGame = findWinner(compNumber, playNumber, tie) os.system("pause") def findWinner(compNumber, playNumber, tie): compNumber = random.randint(1, 3) print "Player1, please select your choice." playNumber = int(raw_input('1 for Rock, 2 for Paper, … | |
Re: For each snake, you should store the starting position and the ending position. If the user hits the starting position, then they 'teleport' to the ending position (ie, they go from the top to the bottom). For each ladder, you should store the starting position and the ending position. If … | |
Re: Questions: 1: What do you mean? 2: Do you expect us to do it for you? GUID: WEORINWEIONR-WERJNOWJENR-23409230489088wh-asdasdon Control: Me File Name: This thread is pointless | |
Re: If it is going to be text based, why would you use XNA? If you want to do something really awesome, try making a game similar to "Dwarf Fortress". It is basically a game which uses ASCII characters to represent objects instead of images. However, it would be quite complex. … | |
Re: [url]http://takinginitiative.net/2008/08/31/directx10-tutorial-1-setting-up-the-d3d10-device/[/url] [url]http://developer.nvidia.com/object/physx.html[/url] | |
The End.