43,549 Solved Topics
Remove Filter ![]() | |
I'm completely new to Java, and programming in general, and I'm trying to do something that I thought would be simple but I'm stumped. I probably did something wrong thats obvious to other people but not to me. I'm trying to display a GPA after you put in the grades, … | |
ok so i need to make a program that where the user enter a day, month, year. has to be 3 ints, functions must display months name I have no clue where to start | |
how do u make it so when you enter in a number then outcomes a letter also to make it more convienent for the computer i have the list for each letter on the keyboard witch is assinged a given bianary code in ASCII so if your type in 1000001 … Software Development c ![]() | |
I need to know how many times my function has been accessed in my program. Any suggestions other than global variable? Software Development python | |
Hi all, I'm writing a simple MIDI player (which I might eventually turn into a editor, if I feel ambitious). To that end, I've been futzing around with the pygame.mixer and pygame.mixer.music modules. I can get MIDI files to play, but I would also like to be able to grab … | |
Hi, I want to be able to stop hardware devices and I was wondering if it was possible and how you go about doing it. I'll explain the plan; I am making an automated install account. Users on the domain would login with a certain user. An install would start … Software Development visual-basic | |
Did I do this right and can you please help me. This program uses a GUI to input a user's first and last name, and construct and display a UserID. Although the program 'runs', there are several problems with it. Fix each of these problems in turn: 1) The text … Software Development display gui python user-interface | |
Hi, I wish to run a vb app which queries the registry and returns a result. I then want to use that result to set a variable value which I can use in DOS. A batch file runs the vb app, when the vb app has finished a variable has … Software Development microsoft-windows visual-basic | |
Hi everybody, I am currently working on an assignment on linked lists. I am stuck with parts of the project, and I would be very pleased if anyone could help me. I am supposed to create a linked list of patient records. Each record is identified by a patient ID … Software Development c++ linked-list | |
Hi, Is there a faster means by which I can get data from an edit box and assign them to an array. lets say I got this intergers m_1....m_100, and I want to put the values to an int val[10][10] whaat I did was to hard code each interger to … Software Development c | |
Hi, i have a program where i use a while loop to create buttons dynamically. Each button is created with, for a label, the name of one the drives on the machine(using the result of the fsutils command). Up to this point everything works fine, if i have drive C: … Software Development python | |
Hi all, I have a listbox that displays a list records from a file. The records contain details about a film - title, certificate, genre, whether or not its rented out or in. At the moment, when a film is set to - rented out, that individual film is put … Software Development pascal | |
# tpm.py Computes the cost per square inch of pizza given cost of the pizza, # and diameter. from math import * def main(): cost_per_square_inch(area_of_pizza()) def area_of_pizza(): diameter = input("Enter the diameter of the pizza: ") radius = 1.0/2.0 * diameter a = pi * radius * radius return a … Software Development python | |
Does anyone know how to remove a window's border and title bar in wxPython? I want the client area to fill the entire screen. I have a wxPanel defined as follows: class FlashPanel(wxPanel): *def __init__(self, parent, flashFile): **wxPanel.__init__(self, parent, -1) **sizer = wxBoxSizer(wxVERTICAL) **ActiveXWrapper = MakeActiveXClass(flashControl.ShockwaveFlash) **self.Flash = ActiveXWrapper( self, … | |
I am trying to create what should be a very simple script, though I'm having a very difficult time getting it to work. All I want to do is create a new copy of a master file once per week and do my work on the copy. I plan to … Software Development first-post python | |
Hi I'm new to C++ and to here. I have an assignment. Make a HOLLOW rectangle using Functions. Have the user imput the amount of rows and columns....and border width . It should look something like this (It's supposed to be a HOLLOW rectangle) : Enter number of rows and … Software Development c++ | |
Hi I'm new to C++ and to here. I have an assignment. > Make a rectangle using Functions. > > > Have the user imput the row size and column width. It should look something like this (It's supposed to be a rectangle...hollow) : ********** * * * * * … Software Development c++ | |
Hello everyone. I am in desperate need of help. I have this question: [I]You have been developing a Fraction class for Teacher's Pet Software. The class contains two public data fields: one numerator and one for denominator. In keeping with the object-oriented concept of encapsulation, you make the Fraction's data … Software Development c++ | |
Python uses the directories listed in PYTHONPATH to find a module. How can I assure that the module I am importing is on this list of paths? Software Development python | |
I keep hearing that the eval() function is unsafe. It is a nice function, because you can use it like print eval("2.5*49.7/(23+3.14)") and it will solve the math. Is there any way to protect against some nasty minded person to enter a "os.system(command)" where the command will erase a file … Software Development python | |
Hello people of Python community, I'm back with (so far) strong will to learn Python, just like you. I remember once, Narue told me that good way to learn different prog. languages is to concetrate on algorithms and data structures and their implementation in language of choice. That way, she … Software Development ide linked-list python | |
I have been looking over Vegaseat's Word Count program. I have two thoughts about what I want to configure it to do, but I'm not sure how to go about it. Idea 1; This is most important. I want users to be able to put a text file in the … Software Development python user-interface | |
:idea: :idea: hey, guys & experts :D i'm havin' a big pro now~~i can't past the test 3 now... i know i may hav a bug but seems too hard for me to find it out can anyone help me???seg fault... i hav asked many ppl but....plzzzz ====the file==== dict.cc … | |
Hi! Thanks for your help in advance..... Heres my case I have a dictionary "d" with keys as string and a dictionary as integer "1" as keys to a list [1,2,3] [code] d{"test.tif": {1: [1,2,3]}} [/code] Now when I try looping through it........it gives me an error [code] for i … Software Development python | |
I'm trying to write a program that uses a DIMACS Graph input, and do several diffent things with it. I've got most of the methods working except one: An all-pairs shortest path that uses Floyd's Algorithm. I've written it a couple times, and it works sometimes, throws and exception sometimes, … | |
simple problem....but I have no clue why its not working..... [code] if (w[0] > m[1]): temp = ((w[0]-m[1])/w[0])*100 print temp [/code] For some reason temp is always 0.........I want a double percentage difference between the two values.... Please guys..help me out here......after 500 lines of code ...I am stuck here......my … Software Development python | |
C:\Documents and Settings\Andy M. Moore\My Documents\Visual Studio Projects\caller\trunk\OfflineRegistry\OfflineRegistry.cs(203,15): warning CS1591: Missing XML comment for publicly visible type or member 'SecondSec.SERC.Common.ContainerObjectModel.RegKeyContainer' What does this mean? Software Development c c# c++ visual-studio xml | |
Hi, I've encountered a problem iwhile writing a find and replace prg in python. this is my code: [CODE]import re f = file('testfile') while True: line = f.readline() if len(line) == 0: break print line p = re.compile(line) m = p.match('METASERV_HOME') print m f.close()[/CODE] as per the logic : if … Software Development python | |
Hi everyone, I am new to python and programming in general and I could use some help on converting an integer to a decimal (e.g. 80% to .8). Here is what I have so far but as I'm sure you can tell, it doesn't work: [CODE]elif menu_choice == 2: print … Software Development python | |
I receive the following 2 error messages when I attempt to Build my application, and I cannot resolve them. C:\Documents and Settings\Robert W. Lipscomb\My Documents\Visual Studio Projects\caller\trunk\Installer\Installer.vdproj Unable to find source file 'C:\Documents and Settings\Robert W. Lipscomb\My Documents\Visual Studio Projects\caller\trunk\bin\install\data.enc' for file 'data.enc', located in '[TARGETDIR]', the file may be … Software Development assembly visual-studio | |
Hi Python Experts [B]I need to convert a code written on JAVA/JSP (Java Tags are also there inside JSP) to PYTHON. [/B] I have OK kind of knowledge in PYTHON, but dont have a muck knowledge in JAVA/JSP. Any idea how to approach? I am having tough time to achieve … | |
I am using automation desk to run python scripts. This in tern executes scripts using v2.2 interpreter every time i m trying to use raw_input("Enter name ") it fires EOF Error. If i run it in interpreter separately it works fine.Its really basic functionality. FYI: Automation desk dont support script … Software Development python | |
I have the worst time deciding on VAR statements. I am trying to write a program to establish a "bounciness" index equal to the original height divided by the bounce height of a ball. I get the basics of the FOR looping, but my VAR statements just don't make sense, … Software Development pascal | |
i don't understand the use of the os.popen function, i've used it to read things, for example: [CODE] >>> a = os.popen("netstat") >>> for line in a.readlines(): print line Active Connections >>> [/CODE] i understand that, but there is also a buffersize and a write ability, but i've played about … Software Development python | |
This small program is neat: [CODE]import calendar calendar.prmonth(2006, 3) """ March 2006 Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 … | |
I am writing a program that takes user input, converts euros or yen to u.s. dollars and should output the total dollars collected when the user chooses to exit the program. My program is converting everything okay. However, when I choose to exit the program and get the total it … | |
Hello, I have this for loop here, and everything is great except I can't figure out how to display 3 numbers per line instead of all number on one line. Can anyone help? Thanx! #include <iostream> using namespace std; [INLINECODE]int main( ) { int x; cout << "Numbers between 5 … | |
Hi, I'm new to this C++ stuff. So if anyone can help that would be nice. I have this program to generate a random number and a the user inputs a number from the keyboard to correctly guess the number that the computer randomly chooses. but the numbers are always … | |
He friends, I would like to have some guidance over projects to take up in C++? I would like to take up a challenging project . Also I have changed my compiler from turbo C++ to Dev C++ but i cannot figure out how the output can be seen ie … Software Development c++ | |
Hi, As far as encryption goes, I am a newbie. Right now when I login, it will compare the user and password stored in my database. If both match, I will be able to login, otherwise I will be refused. The user and password are now stored in plaintext. How … Software Development encryption visual-basic | |
:lol: hello i want to show the time in a certain program in part of seconds but i don't know,can you help me in solve this problem? thanks Software Development c++ | |
Does anyone know about LISP Programming I am trying to make this program where I have 3 types of cars, which are ford bmw merc ford has focus and fiesta BMW has 1series and 2series and the merc has SK100 and SK200 well basically i am trying to put them … Software Development python | |
:confused: Hello i am a newbie in programming in c++ and in linux. I hav knoppix in cdrom and i want to start programming in c++ with the help of knoppix. But I does not know anything about how to start. I don't know create a new c++ file in … | |
Hi!I have a problem and i think you can help me!(Sorry my english.I learn just one year) Thats part of my program... [code] okno=Tk() text=Text() text.pack() def find(): print "I need help here" menubar = Menu(okno) editmenu = Menu(menubar, tearoff=0,bd=4) editmenu.add_command(label="Find", command=find) menubar.add_cascade(label="Edit", menu=editmenu) okno.config(menu=menubar) [/code] i need add to … | |
I have been fiddling with these damn loops for hours. I am new to c++ but not too programming. My teacher is absolutely worthless. she refuses to help me and explains things very poorly. I have a 100 % on the assignments in the class and do not wish to … | |
I'm working on a MS-SQL-Server-DB with MS-Access. There are some dozens of forms. I'd like to translate the forms by button-click into another language. I've made a procedure (sub) called by button-click which walks over the complete "Controls" and changes the captions. So far, so good. But this procedure (in … Software Development javascript pascal sql visual-basic | |
There follows a fragment of a program in Borland C++: void __fastcall TForm1::FormCreate(TObject *Sender) { Memo1->Clear(); ListBox1->Clear(); Memo1->Lines->LoadFromFile("c:\\blitz\\history.txt"); a=Memo1->Lines->Count; x=0; while (x<a) { str1=Memo1->Lines->Strings[x]; if (str1 != "") { DATA MANIPULATION HERE, THEN if (ListBox1->Items->Count==0) ListBox1->Items->Strings[0]=str3; else ListBox1->Items->Add(str3); } } ListBox1->Items->SaveToFile("C:\\blitz\\history.txt"); Close(); } The form does not close, but "history.txt" … Software Development c++ | |
I have the following code, for example: [CODE]price = 50.00 tax = price * 0.08 print "Tax = $",tax # Tax = $ 4.0[/CODE] As you can see there is a space between $ and 4.0. Is there a way to avoid this? I haven't done much Python coding. Software Development python | |
hi, i am very new in python. can anyone tell me that how to create dynamic dropdown box in python scripting.(triple dropdown box) Software Development python | |
Hello ladies and gents, I wanted to ask if any of you could help me out here, Ive got this program: [code] //Test programma voor Accelerated C++. #include <fstream> #include <iostream> #include <string> int main(int argc, char** argv) { int fail_count = 0; //for each file in the input list … |
The End.