345 Posted Topics

Member Avatar for gunbuster363

Wow I haven't done allegro in a long time... I think the problem may be that you need to clear the screen before you re-draw the text.

Member Avatar for gunbuster363
0
185
Member Avatar for Daocsm
Member Avatar for KellieD

I believe that the problem lies in line 7. You appear to create a variable called "array" (type double). In line 29, you are trying to call values from an array called "array". However, in line 7, you did not set "array" as an array. There is also something a …

Member Avatar for SgtMe
0
153
Member Avatar for python_user

So your looking at GUI's? Tkinter would be your best bet. Look up how to create cascading menu's. I have a couple of youtube videos on them as well. Just apply your own logic for how to create them from user input. It should be fairly simple. Text documentation/tutorial: [url]http://www.pythonware.com/library/tkinter/introduction/x5819-patterns.htm[/url] …

Member Avatar for richieking
0
165
Member Avatar for barry.birchall

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.

Member Avatar for barry.birchall
0
254
Member Avatar for flamedragon00

What are you trying to get the monthly average of? Can you explain your problem a bit better? It's unclear what problem you are having.

Member Avatar for flamedragon00
0
1K
Member Avatar for Hayzam_#include
Member Avatar for tagazin
Member Avatar for gunbuster363

[url]http://docs.python.org/howto/unicode.html[/url] [url]http://boodebr.org/main/python/all-about-python-and-unicode[/url] [url]http://evanjones.ca/python-utf8.html[/url] ^Those should give you a helping hand :)

Member Avatar for richieking
0
98
Member Avatar for evertron

You would probably want to import both of those files as seperate modules into a core main script. Then you can use the return statements in your get functions.

Member Avatar for slate
0
136
Member Avatar for Agnusmaximus

Please don't bump old threads. Note: This is not a bump of an old thread, this was top of the forum anyway, so it won't make much difference.

Member Avatar for Agnusmaximus
0
141
Member Avatar for aznlitomik3

What you need to do: [LIST] [*]Make an array of length 26 to store each value of occurrences for each letter [*]Read through text file one byte at a time [*]Ignore spaces [*]If letter is <Uppercase> or <lowercase> add one to corresponding array value [/LIST] Then obvs. set up a …

Member Avatar for SgtMe
0
128
Member Avatar for parth27987
Member Avatar for SgtMe
0
209
Member Avatar for arunapad
Member Avatar for arkoenig
0
336
Member Avatar for oggiemc

In your code: -On line 29: [CODE] Dog::Dog(int aHeight, int aWeight):[/CODE] I'm not sure on the whole Class::Function thing, but surely you are referencing a function called "Dog" and a class called "Dog", which are the same, which may cause an error.

Member Avatar for oggiemc
0
143
Member Avatar for stack111

You need to show some effort! We won't write out the code for you. Research for and while loops on the official python documentation. Make a variable that will be the condition for the loop. Increment this by two each time, making sure it starts on one, and stops when …

Member Avatar for richieking
-1
175
Member Avatar for deepfixa

Please post your code so that we can help you. What is the particular problem that you are having?

Member Avatar for SgtMe
0
141
Member Avatar for burcin erek
Member Avatar for gunbuster363

Python has growing support for things like OpenGL, which are huge in the sofware/games development industry. Also, there are several Python modules enabling the use of web apps or sites. There are a surprising amount of desktop programs that were programmed in Python, Blender being just one of them. So …

Member Avatar for convoluted
0
308
Member Avatar for armanus

The error is around lines 70 and 75. The user input changes the value of "Move" and the computer random value writes to the value of "move". Notice the difference? Now look at lines 88 to 98. This is where you execute the moves. They both use "Move", which will …

Member Avatar for SgtMe
0
181
Member Avatar for Smed

Could you post your entire code? I have an idea for how it could work, but I would need to implement it in your existing code. My idea: [LIST] [*]Read line from file and convert to int [*]If int is less than 2, discard, if it is 2 or above, …

Member Avatar for TrustyTony
0
76
Member Avatar for whaba

Just a quick question from myself. I have next to no SDL experience but I was having a logical look through your code. From lines 93 - 120, in your "handle_input()" function, you check for key downs and key ups. Surely this won't move while the key is held, but …

Member Avatar for mike_2000_17
0
121
Member Avatar for newbyE

Well you could put a blank line underneath in a text editor. It would save a lot of time. I take it your using a loop to keep reading the lines?

Member Avatar for newbyE
0
7K
Member Avatar for nikki33

You have described your problem well enough for us to help, but we won't, because you need to show us effort, as that will show us that you are committed to the task and want to learn, and you don't just want to cream code off of us.

Member Avatar for SgtMe
-2
221
Member Avatar for malayasthana
Member Avatar for serkan sendur

The Hangover - A lol round every corner 300 - Just epic Oh has anyone seen Africa United? My Aunt was a producer of that film.

Member Avatar for ronnieaka
0
1K
Member Avatar for bshrestha

Please press the code tags button before pasting code. So you would code simplification? The first thing you should probably do is to test whether the fraction is prime. If the test returns false, then you should check what numbers can divide into it. Use while/for loops to test. Obviously, …

Member Avatar for SgtMe
0
118
Member Avatar for joy55

Please provide more detail on the question. I'm not sure what's going on with the .,.,.. in the middle of the question, so please explain that. Furthermore, you must show effort (ie. your current code), before we will help.

Member Avatar for maria198
0
170
Member Avatar for davisw4089
Member Avatar for vbx_wx

I had a quick google, and I have to say, there really isn't much out there. In some place I saw something about using the Windows SDK? Do a little research and see if that will help. Here's one of the place I saw it. [url]http://social.msdn.microsoft.com/Forums/en/xpwirelesssdk/thread/8bd08edc-d361-47f4-ad90-e29601cada7d[/url]

Member Avatar for SgtMe
0
56
Member Avatar for Cstonehouse
Member Avatar for smeghead007

You would want to read the line into an array, and split it at the spaces, so you have little blocks of data. Obviously the first array value (position 0) will be "123", so you can just leave that one, but the next bit would be "d52.55". You would want …

Member Avatar for SgtMe
0
194
Member Avatar for chode1

Please use code tags. What problem are you having? You can never describe to us a problem in 8 words. We need more detail.

Member Avatar for SgtMe
0
153
Member Avatar for aswain123

Please explain your question better. One sentence is not enough to describe a problem to us. It appears that English is not your main language, so I can understand that, but you have shown no effort, and have not given us enough detail to help you.

Member Avatar for SgtMe
0
67
Member Avatar for DynamicMember

I personally use Dev-C++. I believe it's no longer in development, but there are plenty of add-on packages that make it really simple to install new libraries. Apparently Code::Blocks is currently the best IDE.

Member Avatar for DynamicMember
0
147
Member Avatar for Transcendent

Do you really need an entire book? Take a look at this website. Read through the code and the explanations and then make your own demo of structs. It's unbelievably simple. [url]http://www.cplusplus.com/doc/tutorial/structures/[/url]

Member Avatar for Ancient Dragon
0
305
Member Avatar for phfilly

If you want some practice exercises, head over to this thread: [url]http://www.daniweb.com/forums/thread32007.html[/url] It's for python beginner projects, but you can use the same ideas in C++ as well :)

Member Avatar for phfilly
0
183
Member Avatar for stereomatching
Member Avatar for jattvelly035

I ran your code in NetBeans: [CODE]ERROR 1: SuitEnumerator(suit): ^ SyntaxError: invalid syntax (You have a random colon [:] on the end. Remove it) ERROR 2: card_list = [[ (rank, suit) for suit in range(4)] for rank in range(1, 14)]] ^ SyntaxError: invalid syntax (You have one too many close …

Member Avatar for woooee
-1
164
Member Avatar for Tcll

So you want to read verts from a file and write it in your own format? You just need to be able to read a line from a file, delete any un-needed characters and split the string up into three parts. Then you can convert them to int and make …

Member Avatar for Tcll
0
814
Member Avatar for BigBang5
Member Avatar for SgtMe
0
164
Member Avatar for Ace1.0.1.

That would be very difficult seeing as you have varied boundaries between grades. An easy way round it would be laying out percentage boundaries for each grade. Ie: [CODE]A* = 90% A+ = 88% A = 86% A- = 83% B+ = 80% etc. [/CODE] Then calculate a percentage and …

Member Avatar for SgtMe
0
152
Member Avatar for nk28

To create a new screen, you could just manipulate what is on the screen already. You could delete all the objects from the current screen, and then add the new objects of the next scene. There is probably a better way to do it as that would be a little …

Member Avatar for SgtMe
0
801
Member Avatar for pixelss

Nice effort! I decided to rewrite your code to make a it bit shorter (it's a little long winded having lots of seperate functions for each bit of data). My code does look fairly long, but I have left comments, lots of whitespace, and a demo to prove that it …

Member Avatar for SgtMe
0
906
Member Avatar for fat0ali0ma

This is where I learnt structs: [url]http://www.cplusplus.com/doc/tutorial/structures/[/url]

Member Avatar for SgtMe
0
81
Member Avatar for Anuradha Mandal
Member Avatar for geryin

Here's a page on checking for a prime number: [url]http://www.wikihow.com/Check-if-a-Number-Is-Prime[/url]

Member Avatar for WaltP
0
182
Member Avatar for perfwill

Probably the main thing would be the large picture in the background and the music player. I would get rid of the music player altogether on this page, as its just a log-in page. Maybe have a smaller image and a dark-ish coloured pattern for the background...maybe something using black …

Member Avatar for Kraai
0
75
Member Avatar for Dinnerfortwo
Member Avatar for PinkyMV
Member Avatar for dexter321
0
3K

The End.