No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
20 Posted Topics
How would I go about detecting keystrokes on the keyboard? | |
[CODE] #include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { string names[] = {"Jim", "Rob", "Sam", "Tim"}; int i; i = 0; string stain; stain = "f"; while (stain == "f") { if (names[i] == "") { stain = "p"; } i += 1; } for (int … | |
Hey everyone, Ive got a question about team programming. My teacher for Computer Science gave us our first team project last week. The goal was to create a program that calculated how long it took a ball to hit the ground given a certain height. Me and my group failed … | |
I have the following code (as you will see im using the same template as earlier...:$ [CODE] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { int z = 1; int x = 2; int y = 3; bool b; b = (x < … | |
Ive began a book to learn c++ and in the first chapter I ran across my first question(thats never good...). In the book it says I should use this same template in every single c++ program I EVER make. The template is [CODE] #include <cstdio> #include <cstdlib> #include <iostream> using … | |
Hi im new to this board. Im beginning a new Python prject, my last one was a html GUI which I built in Tkinter. This time im going to make a AIM bot. Any idea on where to start with a project such as this. All help is appreciated! Thanks | |
Ive been working with perl for a while now and was wondering how and if I could get started in making my perl code do real life things like flip a switch. Any help is appreciated. | |
How do you add to a variable that is inside a foreach loop? Everything I try hasnt worked. | |
Hey guys. Ive got a problem with a simple hello world script. Im a perl beginner so bear with me. Im running mandriva linux if it matters. Also this file is saved under /home/rysin/documents. Code [CODE]#!/usr/bin/perl print "Hello World\n";[/CODE] When I go into the command line and use the perl … | |
I have [CODE]#!/usr/bin/perl @line = <STDIN>; print @line;[/CODE] and when I hit control D, control c, or even control z it just ends the program. Im on a linux machine. Any help? | |
Here they are -= and +=. What do they mean? | |
During my quest to learn pygame I came across a tutorial that was really helping me through. However I came across a piece of code that has confused me. Being that this tutorial has a very vague explanation on each of the snippets, I need someone to explain this to … | |
Re: Yes it is possible. In my attempts to learn Pygame I read somewhere that you can use it to make a media player. Im not sure what other methods are available however. | |
If I have something like this [CODE] a = input("Number: ") b = 2 + a [/CODE] How do I make the answer of b the name of a file? Thanks! | |
Hey guys. Ive been coding python for about a year now, and yesterday my older brother,who has no experience in programming at all, asked me when I was going to start programming video games. Is there some sort of test I can take to see if im ready for this … | |
Re: I asked this question to someone back when I was coding my text editor(horrible project). THis is what that person gave me to use. [CODE]def count_words(self): text = self.text.get(1.0, 'end') words = len(text.split()) print words self.master.title("Text has %d words" % words)[/CODE] ITs a function that counts words. Hope this helps! | |
I want to make a program that prints how long it has been running. I tried this [CODE] import time b = time.tick() print b[/CODE] Even if this did work it wouldnt do what I want it to do. I basically want it to tell me how long the program … | |
Re: I think hes talking like a key logger. He probably wants to make it so that when a key is pressed it sends what key to his email or something. There can be honorable and dishonorable uses for this. It can be used if he is a parent to make … | |
Hey guys, recently I started playing around with pygame. Right now im making a little orb move when you hit a key. But its stuck with the image loading! [CODE]background_image_filename = 'C:\\orb\\backroundorb.jpeg' sprite_image_filename = 'C:\\orb\\orbsprite.jpeg' import pygame from pygame.locals import * from sys import exit pygame.init() screen = pygame.display.set_mode((640, 480), … | |
Can someone explain to me exactly what a game editor does. How do you incorporate the game script into the editor, and how exactly would you go about scripting one? Thanks ![]() |
The End.