Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~55.7K People Reached
Interests
Programming
PC Specs
Core 2 Duo E6600 2 Gig Ram Radeon x1950 XTX Seagate 750 Gig HDD

78 Posted Topics

Member Avatar for sneekula

I too am a beginer to python and have codded a few programs. I always knew of classes but never knew anything about them. I still have yet to use a class in any of my code, and I was wondering if anyone could post a link to some tutorials …

Member Avatar for Vineetha_1
0
4K
Member Avatar for vegaseat

Here is an example of how you could use Tkinter, a loop, counter, and some other stuff. Here is the program code: [code]#Created by Mattamus Prime (AKA Matt Tacular) #This is a simple dice program, pretends to roll a die and show you the progress #After 25 random screens, it …

Member Avatar for vegaseat
23
34K
Member Avatar for Matt Tacular

Does anyone know an easy way to do array's of arrays? I'm not 100% sure this is the thing I want though because I just need a simple way to make a loop able to change the list it's comparing. I have the loop done, I just can't figure out …

Member Avatar for chanthutshamsu
0
169
Member Avatar for Matt Tacular

Ever have two lists in python and you want to know what how much of one list the other contains? This code snippet will help you do that.

Member Avatar for vegaseat
0
359
Member Avatar for Thinka

Not sure where you could get one in the UK, but I used to do that (with an xbox instead) using an all in wonder card. I could play the game in a seperate window on my desktop. But if you don't want to replace your graphics card, you could …

Member Avatar for Thinka
0
322
Member Avatar for kanaku

If you want, you could try to make a shortcut of the c drive on your desktop. Do this: [I]right click [/I]on[B]desktop[/B]| [I]go to [/I][B]new [/B]| [I]go to[/I] [B]shortcut [/B]| [I]type[/I] "C:" | [I]click [/I][B]next[/B] | [I]click [/I][B]finish [/B] Then you should be able to just double click that. But …

Member Avatar for lappoo
0
821
Member Avatar for Matt Tacular

If I print something to the screen, is it at all possible to erase some of that? Some sort of backspace? That way it would be possible to clear the screen, make a text progress bar, etc. If not, what's the easiest way to do something similar? Thanks,

Member Avatar for mchen10
0
472
Member Avatar for rbfolland

Go into the bios at startup and see if the bios finds a hard drive. If not your hard drive may be dead.

Member Avatar for pepper69mike
0
106
Member Avatar for Matt Tacular

I need a way to get a number from the user, break that number up (eg. 1128 into 1 1 2 and 8), and then manipulate each number. Here is what I tried to do, failed horribly: [code]#include <iostream> #include <string> #include <cmath> int main() { string str; int a …

Member Avatar for hinduengg
0
104
Member Avatar for Matt Tacular

Can someone look at this and tell me if it actually is doing what it's supposed to. [php]from __future__ import division counter = 1 while True: li = [] for i in range(1,(counter+1)): if (counter/i) % 1 == 0: li.append(i) if len(li) <= 2: print counter,"is a prime." counter = …

Member Avatar for vegaseat
0
287
Member Avatar for Matt Tacular

In my program I have a loop with a variable that shows the players name, they choose something then it goes back to display their name and all it shows is arrows.... why? I'll post my code, run it and enter 3 or 4 players are playing, give them some …

Member Avatar for Matt Tacular
0
170
Member Avatar for Matt Tacular

I was wondering how I could access my several countryAttachedXX arrays(in this post they start on line 85), without many if statements, determined by user input. I was thinking maybe an array of arrays, but had difficulty finding out how to do that on the web. Thanks, -Matt [code=cplusplus]/**************************** * …

Member Avatar for Narue
0
85
Member Avatar for Matt Tacular

I am trying to make a text version of risk, and I need to store the population, or army count, for each country. So the only way I could think to do that, as you'll see in my code, is by making a variable for each country, and then storing …

Member Avatar for ~s.o.s~
0
86
Member Avatar for Matt Tacular

How do you initialize an STL list with the values when you declare it? That way I don't have to add the values later with a loop and push_back. Thanks, -Matt

Member Avatar for iamthwee
0
258
Member Avatar for Matt Tacular

I'm having some trouble with STL lists. What I want to do in my program is take the players initial and put it into an array at the spot that they got from when I divided up 20 numbers (0-19). Can anyone tell me why line 151 (in this post …

Member Avatar for Matt Tacular
0
102
Member Avatar for Matt Tacular

I'm wondering why it prints so many spaces when I only ask it to print one. Here's the code: [code=cplusplus]#include <iostream> #include <string> using namespace std; string ar[21] = " "; int main() { ar[3] = "M"; ar[4] = "n"; for(unsigned int i=0 ; i<20 ; i++) { cout << …

Member Avatar for ~s.o.s~
0
137
Member Avatar for Matt Tacular

I had a thread going not too long ago, and from that I was able to make a global vector that I can store class objects in. But now when I try to access it, it says "no match for 'operator[]' in 'jailHouse[0]' " Anyways, Here's the code, if you …

Member Avatar for Matt Tacular
0
131
Member Avatar for Matt Tacular

How can I make a pointer to an array? So that I access the members of the array by using the pointer in a seperate function. I'm wondering because I have an array I have to access in functions other than the one it was defined in, but I need …

Member Avatar for Matt Tacular
0
331
Member Avatar for Matt Tacular

I'm making a program where there is a function that asks how many players there are, and depending on the answer, it makes an array of classes that size. How can I access the array of classes from other functions? I thought I would just make it global, but how …

Member Avatar for Narue
0
124
Member Avatar for Matt Tacular

I need to set up 2 buttons to take input from the user, that increase and decrease a variable, it doesn't matter which 2 buttons are used, but preferably the up and down arrows. And I also need to have a display of the variable that constantly updates as it …

Member Avatar for Opo
0
149
Member Avatar for Matt Tacular

Is there a way to make a loop that creates strings? I ask the user how many players there are, and then the loop makes that many strings in order to get all of their names... Something like this, (but not in normal english...): [code]cout << "How many players? " …

Member Avatar for Ancient Dragon
0
104
Member Avatar for Matt Tacular

Can anyone tell me why this doesn't work? I know it's probably really easy, but I did try.... [code]/* ISU program created by Matt in grade 12 programming. */ #include <iostream> #include <list> #include <iterator> using namespace std; class humanPlayer { public: humanPlayer(char thePlayersName, unsigned int thePlayersTurnNum); //constructor ~humanPlayer(){}; void …

Member Avatar for Narue
0
115
Member Avatar for Matt Tacular

When using an STL list, how can I check if a certain variable happens to just be in there? Basically, given this already: [code]#include <iostream> #include <list> #include <iterator> using namespace std; list<int> integer_list;[/code] I need a way to code this in C++: [code]if(x is in integer_list){ do this }[/code]

Member Avatar for Matt Tacular
0
99
Member Avatar for Matt Tacular

**I know the code looks big, but it's a very small isolated section at the bottom (starting at line 164) that's giving me the problem.** When this program is run, when I try to open the file I just appended some text to, it doesn't open... can anyone spot why? …

Member Avatar for Salem
0
148
Member Avatar for Mouche

You've probably seen the my thread. The things I've done to make mine the mastest, the biggest improvements were done by making the code not even bother to check to see if even numbers are prime numbers because we know they wont be. Do that by making the range of …

Member Avatar for arsham
0
140
Member Avatar for Matt Tacular

[code]str1 = 'c:\documents and settings\user\desktop' str2 = 'starcraft.exe' print str1[/code] I would like to know how it would be possible to add str2 to the end of str1 with a "\" inbetween the two strings. so that I end up with "c:\documents and settings\user\desktop\starcraft.exe". Thanks

Member Avatar for ghostdog74
0
183
Member Avatar for Matt Tacular

[code]############################################################################ # # # This program seeks out every copy of "starcraft.exe" in the computer # # and deletes them. # # Created by Matt in Python 2.5 May 2007. # # # ############################################################################ import os def file_find(folder): """search for a filename fname starting in folder""" for root, dirs, files …

Member Avatar for jrcagle
0
109
Member Avatar for Matt Tacular

Ok, so I'm making a program in c++ that keeps track of the number of objects you make for a specific class. It works, but I added a part to change the screen output at a specific number of objects and that's where it broke.... heres the program: [code]#include <iostream.h> …

Member Avatar for Matt Tacular
0
241
Member Avatar for Matt Tacular

Hey, I was just wondering how to get a variable assigned a random number within a certain range. I tried the rand, but I seem to get the same set of numbers everytime I run the code... I did some research on random numbers in C++ and understand the whole …

Member Avatar for Matt Tacular
0
71
Member Avatar for naya22
Member Avatar for Matt Tacular
0
78
Member Avatar for Matt Tacular

Is there an easy way to determine if a value is at all present in an array? In python you can type: [code]if value in list: do this[/code]But how could i do that in c++? I would like something like this: [code]if(value "is present in" array1) { do this; }[/code]Thanks …

Member Avatar for Infarction
0
100
Member Avatar for Matt Tacular

I am making a tic tac toe game, and for the grid, I had originally made 9 variables to represent the grid's spaces, but instead, I would now like to use a single char array. I can make the array and print certain parts, but I can't change them. For …

Member Avatar for WaltP
0
95
Member Avatar for Matt Tacular

For my programming class, I have gotten to the lesson that involves overloading constructors and what not, but I have a problem with mine that I am possitive is a very simple syntax error or something. If anyone could be so kind as to take a look at the following …

Member Avatar for kishore5001
0
132
Member Avatar for Matt Tacular

As part of my programming class, I need to go through the tutorials, and make my own program that shows off whats in the tutorial, I'm done with the class tutorial and have it all done except one part. The volume part doesn't return the right value and I don't …

Member Avatar for Matt Tacular
0
302
Member Avatar for Matt Tacular

Does anyone know of anyway to get the kworld lineup of tv tuners to work with XP x64? Thanks everyone, I've sent the kworld techsupport an email 2 weeks ago and have yet to get a reply.

0
89
Member Avatar for Matt Tacular

Hi everyone, for the past few months, I've been writing a text based version of the risk boardgame for my grade 12 programming isu(i plan for it to be windows based by the time I'm done). But I come across the occasional bug which is hard to find and fix. …

0
60
Member Avatar for Matt Tacular

I have an image being displayed in a Tkinter window. I need a way to add letters to the image in certain spots depending on what is done by the user. Example: if button 1 is pressed, the peoples names appear over their heads, but I can't just switch the …

Member Avatar for mawe
0
3K
Member Avatar for Matt Tacular

i'm making a program in c++ that gets a binary number and converts it to an integer. But of coarse i've hit a snag, I need a way to store a binary number that's any length, then run through the number to see if a 2 or something is there, …

Member Avatar for Matt Tacular
0
89
Member Avatar for Matt Tacular

I would like to make my program grab an integer from the user (binary) and convert it to a normal number, I plan to do this manually but I need to know how to do something first: If the user enters, for example, 10110101 I need to be able to …

Member Avatar for Matt Tacular
0
82
Member Avatar for deadrising2day

The 7900 is quite a bit faster. But the 6800 is cheaper. Which one has the better price/performance ratio? My guess would be the 6800, but I'm not sure.

Member Avatar for jbennet
0
150
Member Avatar for Matt Tacular
Member Avatar for ~s.o.s~
0
91
Member Avatar for Matt Tacular

I have some code that generates numbers, and I wish to add them to some kind of list, I did research and an array seems to be close to what I want, but I can't find how to add a generated variable to it. Or is there some other kind …

Member Avatar for Matt Tacular
0
74
Member Avatar for Matt Tacular

First of all, let me exaplain that I only really know python. I thought I would give c++ a try and since then (about two days ago), I have read a few tutorials and have made a guess number game. I thought I would be able to rewrite one of …

Member Avatar for Matt Tacular
0
240
Member Avatar for tech291083

May I ask why you aren't getting 64 bit? That motherboard your looking at: the processor will be a 64 bit one. So buy the 64 bit version of windows vista. And wait for cheaper directx 10 graphics cards, that's what I'm doing, I have a measily x550 until directx …

Member Avatar for tech291083
0
157
Member Avatar for Burdie56

Looks like you need to update your video card's driver. When the built in windows one is all that is running a card, sometimes all you get are two options like that: 2 or 16 colours, for example. Find what card you have, and go to the manufacturer's website, get …

Member Avatar for Burdie56
0
108
Member Avatar for cdt0283

Pros for the KDS: Better horizontal veiwing angle by about 10 degrees Pros for the Acer: Better contrast ratio: 800:1 instead of 700:1 Other than that they seem identicle to me. And the differences are so small you won't notice unless you set them up side by side and look …

Member Avatar for jbennet
0
87
Member Avatar for jen_a

Sounds like the backlight is cooked. Only breifly flashes what should be displayed if you toggle the monitor's power. That happened to me. It was the backlight, contact the manufacturer and see if they'll replace it for you, or you could try to find a new backlight and put it …

Member Avatar for Matt Tacular
0
94
Member Avatar for ingeborgdot@yah

You said you do light gamming, a little video editing, and your wife likes to watch 3d visualizations.... That card is [I]overkill[/I] for what you do. It would be like getting a ferrari as a golf cart. Get one of the lower 7 series, still over kill but much better …

Member Avatar for Matt Tacular
0
239
Member Avatar for numan

[quote=numan;153355]My system spec is Intel celeron D 2.4GHz (256kb chace) MSI Motherboard AGP 4x. 300W powersupply. 512Mb Kingstone DDR 400 bus[/quote] Problems I see: 1. Celerons DO suck for gaming, plus yours is only 2.4 ghz, not bad, but not [I]good[/I] for gaming. 2. Your motherboards AGP is only 4x, …

Member Avatar for Matt Tacular
0
133
Member Avatar for sneekula

I have also wanted to know that. But I am a beginner to GUI, and since you say Tkinter is easier, are their any good tutorials with the beginner in mind for Tkinter?

Member Avatar for sneekula
0
1K

The End.