No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I've read that one should use cin.get() instead of system("pause"). Why is that? |
|
Re:
Hello, I am knew here and not sure how to ask but I guess I will ask it here and if this is not where it goes feel free to tell me where to post it.....THANKS I am trying to write a recursive function Python program that will ask the … |
|
Hey forum, I've been interested in creating Python scripts to work with iTunes, and I recently learned about the win32com library, and more specifically, win32com.client. My problem is that I lack knowledge of the iTunes.Application properties and methods. I've done multiple Google searches in hopes of finding a knowledge base … |
|
Hey guys! I'm requesting constructive criticism on the code that I've written so that I might get a better idea of how to strengthen my code while keeping it short and sweet, or even just pointing out unnecessary things or things that I should have added. My assignment was: [quote]Write … |
|
Hey Daniweb Python forumers, I'm guessing that this is a Vista thing, but when I run my wxPython programs in Vista by double-clicking the file, I get errors from the computer saying that "python.exe has stopped working". I also use the IDLE IDE, so when I run the program from … |
|
"They also don't allow goto. The problem with the three of them is that they disrupt the flow of the code for someone reading it. You are supposed to put everything into the conditions for the loop. It seems to me that there are times when a few continues or … |
|
Hey guys. I'm having an issue with my Dev-C++ IDE where whenever I try to compile my code, I get a " [Linker error] undefined reference to `__cpu_features_init' ld returned 1 exit status " error. Even with simple programs with just sending information to [I]cout[/I] I get this error. Something … |
|
Hey, this time I'm back with a threading error! I need to write code that gets the address of a message sender while at the same time letting the user know that the pygame didn't freeze, so I started a thread to keep control of the screen while searching for … |
|
I've got an issue with lists right now. I've got 2 lists, Checker1 and Checker2, which check for the Ko rule in my game of Go. However, Checker2 should always be checking the board one turn behind Checker1, which checks the board every turn. That way, the Ko rule can … |
|
Hi guys, I have a simple question. I'm trying to import my modules from a different folder (the different folder is in the same place as the the program I'm importing from), but I don't know how. I've looked on Google, but I've had no luck so far. My question … |
|
Well, I couldn't think of a better word than online for a title, but I meant allowing others on other computers to connect to a server to play a game. Right now, I need help in planning my "online" game of Go. I'm moderately new to servers and clients (I … |
|
Re:
Hi I was wondering if anyone can help me. I am trying to create a game in visual python and have come to a complete stop. I need to be able to run many while loops at the same time, i have looked into threading but can't get my head … |
|
Hi there. I'm pretty beginner at functions, and I would like to know if it's possible to have a parameter of a function that takes multiple arguments. Like in Python, you could have [CODE=python] >>> def a(*args): print args >>> a(1, 2, 3, 4, 5, 6) (1, 2, 3, 4, … |
|
Hi there. I'm pretty new to the C++ language (came from Python :lol: ) and I was wondering how to create a library. In Python I used to create files with functions that can be used in other programs, and I want to know how to do that in C++. … |
|
Re:
Hey guys, I don't understand the for loop. Could someone explain it to me? for example [code] >>> # Measure some strings: ... a = ['cat', 'window', 'defenestrate'] >>> for x in a: ... print x, len(x) ... cat 3 window 6 defenestrate 12 [/code] what is x? how does … |
|
Re:
code: def rpn(): list = [] while 1: x = raw_input(" ") if x in ["+","-","*","/","%"]: y=str(eval(list[-2]+x+list[-1])) list[-2:]=[y] elif x == "": break elif x == "=": print y else: list.append(x) How can i modify my rpn calculator in order to: 1)accept random number x = random number e.g x … |
|
At the moment, I'm looking for formulas for jumping, falling, accellaration, and de-accellaration (pardon my spelling!). Does anyone have any good formulas for them? Thanks alot! |
|
Hi there, Im trying to start learning C++, but I haven't been able to find any compilers for it. Does anyone know any good compilers for C++? Thanks. |