43,549 Solved Topics
Remove Filter ![]() | |
Could somebody please me get this to compile and run [code] #include <iostream> #include <iomanip> #include <fstream> #include <cmath> using namespace std; // global constant declaration const int MAX_SIZE = 50; const int NUM_RANGE = 25; void getNumbers( int numbers[ ], int& size, int MAX_SIZE ); void printResults( float mean, … Software Development c++ | |
[B]I am working on an exercise given in class. I have managed to do most of it but I a a bit stuck on the permutation part. Here is what is required of me:[/B] Subject: Transformers An ideal electrical transformer has an input voltage and current, Vin, Iin and an … Software Development algorithm c++ file-stream oop | |
So I need to do a program, that goes throgh an html file and prints all the tags, but not closing tags. I tried the following code but when I run it several arrows appear. Can someone help please? [code = c] [COLOR=#000000]Program one;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Uses crt;[/COLOR] [COLOR=#000000] [/COLOR] … Software Development pascal | |
Hi everyone, hope your all well....i was just wondering if someone could pleassseee tell me why this doesnt compile and if they could please correct ti for me??? thank you very much: public class BankAccount { private static int accountCounter = 0; private String ownerName; private String accountNumber; private double … Software Development java | |
So the Text Adventure is lost. ;-;. I am working on a GUI to take a starting point and a destination input by the user, and scan a file to find a match for both. If it finds a match for Variable A + B then it will assign variable … | |
I had moved my question on VB 4/5/6 category... sorry i made a mistake... | |
I am writing a small tkinter-app involving user keyboard-input, and want to control the range of acceptable input-characters. I'm currently using an Entry-widget, but haven't been able to access the individual characters AS THEY ARE ENTERED. What I (think I:confused:) need is somthing like the 'command=' option (as in the … | |
I am trying code a single button that will fire two commands, that is, it will open two image files with one button selection. I have researched this and have not found much directly related to this question; what I found was to use a def within a def, thus … ![]() | |
Hi, I have a small python program with e-mail capabilities that I have pieced together from code snippets found on the internet. The program uses the smtplib module to successfully send an e-mail with an attachment. I want to give users an indication of the percentage of the e-mail that … Software Development email file-stream python | |
Alright, people. I am writing a simple, command based program simulatin minesweeper, using a txt file for the map. I am getting characters and stuff in from the file, and converting them to integers to determine the size of the map. Now all this is going alright, but I am … | |
sharky_machine Offline Posting Whiz in Training Join Date: Oct 2006 Location: New York City Posts: 253 Rep Power: Re: Starting Python Today, 1:41 pm | Add to sharky_machine's Reputation | Add Infraction | Flag Bad Post | IP | #86 -------------------------------------------------------------------------------- Vegaseat: I have been reviewing this code you had … Software Development first-post gui python tkinter | |
Can someone explains what specific "0x30" does in the decimal to binary function below: void dec2bin(long decimal, char *binary) { int k = 0, n = 0; int neg_flag = 0; int remain; char temp[80]; // take care of negative input if (decimal < 0) { decimal = -decimal; neg_flag … Software Development c | |
is it possible, to use, or otherwise import and access the class in a .pm file by a suggested name (this would be after compilation)... here's the lowdown, I've been working on a project for a while now, it is an XML processor. One of the parts of a process … | |
hi, i think i have overwritten ActionListener from my compiler( dont know if it is possible). i accidentally saved a file as ActionListener.java and now anything i try to compile that need ActionListener doesnt work. is there a way i can get it back? i already uninstalled and reinstalled my … Software Development java | |
I am interested in learning if it is indeed possible to sort a Python dict. What I have researched tonight points to that it is [B]not[/B] possible, although snippets were posted inferring that you can sort a dict; I tried some of this code and it did not seem to … Software Development python | |
I would post this in my other thread, but I marked that as solved so I think less people would look at it. I want to say this: [code]if list1 is empty: do this elif list1 has any value in it: do this[/code] How do I word that in python? Software Development first-post python | |
hi guys, I have an assignment that is due on december first and i cant seem to get a wrap around it and was wondering if someone could help. I have been given a Robot module with 17 testboards and some predefined functions such as sensor, move, currentPosition, boardSize and … | |
Hi, I tried to run following script of drawing a sin/cos curve using python 2.4 , there is error: [B][COLOR=red]Traceback (most recent call last): File "", line 6, in ? File "C:\Python24\Lib\lib-tk\Tkinter.py", line 1564, in __init__ baseName = os.path.basename(sys.argv[0]) AttributeError: 'module' object has no attribute 'argv'[/COLOR][/B] [B][COLOR=blue]Can anybody tell me … | |
My task is this, and I'm having trouble finishing up the code: [LIST=1] [*][QUOTE] Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters … Software Development c | |
I am having problems trying to create arrays from text files. The text files created from the program I am working on is like this: Name Test1 Test2 Test3 Avg Grade =================================== Student 999 999 999 999 X The first two lines in this are headings that are added into … Software Development vb.net | |
Hey whoever was good enough to take a look at this thread I have to stress I am a complete noob! I picked up "Java programming for the complete beginner" five days ago and here I am with 50% less hair and stuck on a challenge at the end of … Software Development java | |
I have recently began programming in the windows api rather than the command prompt\ms-dos environment. I am still using windows 98 and bloodshed dev-cpp 4.9.9.2. I need to know how to disable the START MENU, TASK BAR, and the little boxes in the top right hand corner of the application … Software Development api c++ windows-api | |
I've did a program using vb6 to connect to oracle9i, i can establish the connection, the problem is when i execute the query in oracle sql*plus, it can execute successfully, but when run in vb application, the records affected return 0, it do nothing for this query, any setting need … Software Development email open-source oracle sql visual-basic | |
Can someone point me to one, because our high-school library is way too old. And it wont work with Dev-C++(we using in it in CS class). Thank you. [code=c]/* Lawrenceville Press Random Library */ /* October 1997 */ /* The following code works correctly under BOTH */ /* Borland and … | |
When coding in Tkinter, you can make a button, then when the button is pressed, it refers to something that you defined, or whatever its called when you use the def statement. What I'm wondering, is if there is a way to do this in non Tkinter programing. I am … | |
For a program I'm making the user needs to enter a string and then it will be checked to see if it is a palindrome. So far I've managed to reverse the ordering of the string entered so that I have the original string and the reverse version of it. … Software Development assembly | |
Hello: I am trying to use the Python Sleep Function via [I]import time;[/I] I get results but not the results I am looking for. What I am trying to do is rather simple and only for visual effect in a Python GUI: [B]Display GIF --> Sleep (pause) 5-seconds --> Display … | |
Hello , i have in a director c:\files_t several files t1 t2 t3...t300 i need to analize each on-the analize operation is not importent how can i [B][U]open each file in a loop[/U][/B] and analize them?-in [U][B]C[/B][/U]code thanks ahead Software Development c | |
Last night I took the advice of a DaniWeb member and looked at some posted Python code; this code was based around a card-type game and involved creating a GIF deck, shuffling, then displaying it. My original question had to do with using a Python dict for my GIF images. … Software Development file-system open-source python tkinter | |
Hi, I am new to shell scripting.So someone please do help me out.I have stored two dates in the given format below. cur_time=`date '+ %b%e%T'` time=`ls -lu f1 | cut -d "" -f6` I hope both these will show the dates in this format. for eg. Dec 23 10:10 Now … Software Development shell-scripting | |
I have a code, and this is another problem, that's not working; Given: an int variable k , an int array currentMembers that has been declared and initialized, an int variable nMembers that contains the number of elements in the array, an int variable memberID that has been initialized, and … Software Development c | |
I've read my book, and there's some topics where I feel weak about: - inline functions - static members - this pointer - copy constructor I've read some tutorials online, but they use some complicated code, and I'm a beginner programmer, so I can't understand their explanations. Just wondering, if … Software Development c++ | |
Hi all, I'm working in the C language. I've been stuck for 2 weeks trying to figure out how in the world to populate arrays after reading in an input FILE. the input file has numbers and words, I need to write a loop that grabs the integers and stores … Software Development c file-system | |
I am writing a program that has two lists set up, and then the user is prompted for input. I want to tell the program to do one thing if the users answer is found in one list, and do another thing entirely if the variable is in the second … Software Development python | |
![]() | I am having some trouble with the logic for my constructor. The constructor is supposed to open a object of class Rational. The constructor is also supposed to check to make sure the denominator is not zero, the denominator is not negative, and either reduce the fraction or make it … Software Development c++ ![]() |
I've lost my will and need some guidence, yes this is homework, i'm not going to lie about that. I know I could probably figure out how to get the answer she's wanting, but not with what she's provided as a code template below. I'm guessing that I need to … | |
Hello, I'd like to set a custom style for a textctrl that includes custom tab positions. The script below works on xp and displays custom tab positions for the textctrl, as coded. However, the script fails to set custom tab positions on linux (fedora 5), though it does set custom … Software Development python | |
I have a directory with many subdirectories. Each subdirectory contains a small number of image files (.jpg). I would like to accumulate all these image files in a Tkinter listbox, sort them and be able to select blocks of files and send them to another listbox. Ultimately I would like … | |
actually I went the wrong way I think, below is the the partial code area and the bold shows what needs tobe, but I know I didnt do it right, can anyone show me an example or where to find help? [code] if (myFields[c_shapeNameField].equals(ShapeName.circle)){ [B][COLOR=red]//ASSIGN a new Circle object to … Software Development java | |
I am a programmer but have just recently ventured into the realm of graphics programming using Python; what I have learned so far is fascinating. It is so thrilling to see a coded design appear on the screen in full color. But, I find, making an image appear is one … Software Development first-post gui python tkinter | |
Is it possible to use files such as GIF files as a value in a Python Dict; that is, is it possible to use GIF files in a Dict and access them directly, rendering them to the screen via Tkinter. I have a group of GIF files I plan to … | |
Ok, so I'm gonna work on a program, and I want to enable a gui for it. I have a few questions though... Question: Are there any out there that wont need a class structure? (I;ve never gotten them, and I'm working on them right now...) Question: How about easily … | |
Hi all, I would like to know some links that could help me get a hang of using a database instead of the plain old file handling with C. Can somebody help !! Thanks Software Development c++ | |
Hi, Got another question concerning an array of strings: I did it this way: [code] int main() { const std::string myArray[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; for (size_t i = 0; i < 12; i++) std::cout << myArray[i] << '\n'; std::cout … Software Development c++ | |
Hello, I am having a problem showing a popup menu in my wxpython script on fedora 5 (fc5); this problem does not occur on xp. I am using wxPython-2.6.3.2-1.fc5, unicode version. I need to add an item to a popup menu after the user selects a file using wx.FileDialog, and … Software Development python | |
Hi! anyone who could help me fix this code for it to work? i need your help very badly. :) i'm having a hard time debugging my program for it to work... i dont know how to use the function rand() properly.. :rolleyes: tried everything i can but it just … Software Development c | |
Hello ladies and gents, Was wondering if any of you could check this exercise out, I finished it, but, I'm not sure whether Ive got it exactly right, especially the last two definitions. The exercise is as follows: - Use typedef to define the types unsigned char, const unsigned char, … Software Development c++ | |
I have successfully got the data reader connected but i cannot figure out how to write the values to an array or variables on a windows form created in Visual C# Express edition all examples use the console. Can someone show me an example of how to write these values … Software Development sql | |
Hello everyone, I'm new to python, but I do have some c and c++ experience, although not extensive. I was looking through the challenges for new people that is stickied at the top of the forum, and was going to work on the * box challenge. I'm going to have … | |
Hi there, Im trying to create a simple program that creates an 2D array of numbers and prints them to the screen via a function. I think i have got most of the way however, I cant seem to get the print function to print correctly. It's been a while … Software Development c++ encryption |
The End.