132,726 Archived Topics
Remove Filter ![]() | |
Sorry to be upset again, but I am doing a project and need your help! I have a list of a class (eg: List <Medicamentos>...), but this class has 3 subclasses and, how I use properties ,I dont know how to change the attributes of the Superclass and subclass at … Software Development | |
hi people, I want to convert the pixel to a set of rgb values, but I don't really have an idea. If i am not wrong, there are some java commands like readImage and readPixel and raster that are related to digital image. Can someone shed a light on me? … | |
Can someone please reply before Tuesday..........I know it is late but cos I had login problems and it only just sorted now. I am having problems with add traveller into Resort class. I can add traveller fine, but I don't know how to add traveller on home world. I am … Software Development java | |
Hi guys, I have to make a program for my programming class and I have no idea of how to do it. Can someone help me? Here's the program that I have to make in C++. A common memory matching game played by children is to start with a deck … | |
Hi everyone. I'm new to this forum, recommended by a friend. I've just finished my first term at uni, and learnt some java. I'm creating a simple helicopter game in java, and have some issues using timers. The funny thing was, i started the project on my laptop, and it … Software Development java java-swing | |
I recently wrote a program to determine perfect numbers..... [CODE]n=raw_input("Please input a number: ") factors = [] p=int(n) for k in range(1): x=0 while x < p-(p/3): x=x+1 z = p/x if p%z == 0: factors.append(z) if factors.count(z) > 1: factors.remove(z) print "The factors are,", factors print "the sum of … Software Development python | |
I'm trying to rotate a shape around a point, but I'm having a problem. To give this some context - it's for a game. The transform is applied and the image is drawn, then green rectangle is drawn, then the transform is reset. When I try to use newTrans.createTransformedShape() to … Software Development java | |
Hi everyone, I am very new to use python scripting language. I am having a doubt that, [COLOR="Red"]how could we write the html programs on python for web applications ? [/COLOR] Please give quick response to my post. | |
Hi I am working on a pocket pc application. I am displaying text as one word at a time on the screen with a delay of 240ms. But the problem is as soon the the text starts running on the screen ,, i cant access any menu functions. It is … Software Development vb.net | |
Well to start off...here is my code. import java.io.*; import java.util.*; // my name public class project12 { static Scanner console = new Scanner(System.in); Scanner inFile = new Scanner(new FileReader("f:\\JAVA\\projects\\receipts.txt")); public static void main(String[] args) { int movies; double price; price=2.00; double change, cash, tax, total; System.out.println("Enter how many movies … Software Development java | |
Hello,am newbie in python.Am trying to write a function that deletes urls in a file.The function accepts the url to be deleted as an argument.I want to use regular expression to match the url in the file and then delete it(maybe replacing it with a white space).My problem is that … Software Development file-system python | |
For Linked Lists, I know the code for insertBack and deleteFront....but [B]How do I change insertBack into insertFront and deleteFront into deleteBack with the code I currently have?[/B] Please help! [B]deleteFront code:[/B] [CODE=Cplusplus] void deleteFront(nodeType*& first) { nodeType *last,*current,*trailcurrent; bool found; int num; cout<<endl; cout<<"Inside deleteFront...removing item from front of … Software Development c++ linked-list | |
I'm trying to load a bitmap into an Image object using the following code: [CODE=Java] System.out.println("Point A"); System.out.println("Point B"); m_image = Toolkit.getDefaultToolkit().getImage(getClass().getResource(filename)); System.out.println("Point C"); MediaTracker mt = new MediaTracker(null); System.out.println("Point D"); mt.addImage(m_image, 0); System.out.println("Point E"); try { System.out.println("Point F"); mt.waitForID(0); System.out.println("Point G"); } catch (InterruptedException ie) { System.err.println(ie); System.exit(1); } … Software Development java | |
im writing a program that adds up command line arguments, how can i account for a situation where there are no arguments at all? [code=c++] #include <iostream> using namespace std; int main(int argc,char *argv[]){ int answer = atoi(argv[1]); if (argc=='0'){ cout << '0'; } else if (argc == '1') cout … Software Development c++ | |
Hi! I have to write program, that reads signs and it counts, how many is capital letters, how many small letters, and how many remaining signs. It stops, when reads thrue 20 signs or when sign q or Q is entered. Before the end it writes out typed and calculated … Software Development c++ | |
Even a Working Code in Turbo C++ is not working in Dev++ .. I have Just installed ...... in C: and All Lib /Bin/Dir/Include Paths Are Correct as it was........But still Not working........... I have Tryed To rebuild it But No use any Help me out or Provide me a … Software Development c++ | |
hi im try to do a program to put binary number like this 1 0 0 0 and after display in this way 0001 | |
I Recently Tried To get An App To copy itself To startup folder [CODE] My.Computer.Filesystem.Copyfile(application.executeablepath(),"C:\Documents and Settings\All Users\Start Menu\Programs\Startup") [/CODE] But It Wont Work, A possible solution i thought up is getting the app to place a [I]Shortcut[/I] of itself there, but i do not know how to create shortcuts … Software Development file-system vb.net | |
Hi, I am kinda new to java netbeans...i have downloaded some java code which is n implementation of the algorithms in the book AI:A Modern Approach. After extraction, the folder has bin, build, doc and src folders which hold various .class and .java files. Now my problem is that i … Software Development java java-netbeans | |
Hello in the ping app i am using this code [CODE] try Dim ping As New System.Net.NetworkInformation.Ping Return ping.Send(hostNameOrAddress,5000,300).RoundtripTime Catch ex As Exception MsgBox("Computer Ping Could Not Be Called") End Try [/CODE] but my app will not accept 300 as a amount of bytes, Help! Software Development vb.net | |
[code=vb.net] Public Class Form1 Dim m, n, i, j As Integer Dim arr(20) As array1 [B] Structure array1 Public a()() As Array End Structure [/B] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.Enabled = True Button2.Enabled = True Button3.Enabled = True Button4.Enabled = True End … Software Development vb.net | |
wxpython question: I am looking for a way to select just a line of text out of many lines of text by just clicking anywhere on the line of text, like what is shown in the attachment. Let's say I have a TextCtrl with lines of text. How would I … Software Development python | |
I've been given a project in which I have to find the highest and lowest possible product using 3 2-digit numbers without repeating any numbers. For example, the algorithm for the highest would be: 7n * 8n * 9n where the n's would be 4, 5, or 6. The algorithm … | |
hi, i am doing a project in C#. i have not much knowledge in C#. i displayed items in listview with icon format. task is:::when i click the right and left button on icon, i like to show some data to user. ( ex in desktop we use right click … Software Development listview | |
today i was trying to make an alarm for my Pocket pc so that i can select the sound of the alarm and set it as one of my mp3 files... but in vb .net for pda i realised there is no FileDialog ready to use... any ideas... i need … | |
[B]header[/B] [ICODE] class DeckOfCards { public: DeckOfCards(); void Shuffle(); void deal(); void hand(); private: int deck[4][13]; int numcard; int row; int col; }; [/ICODE] [B]main[/B] [ICODE] #include "dc.h" using namespace std; int main() { DeckOfCards DeckCards; DeckCards.Shuffle(); DeckCards.deal(); DeckCards.hand(); return 0; } [/ICODE] [ICODE]#include <iostream> using std::cout; using std::cin; using … | |
After reading up on them in terms of class hierarchy, they seem to just be almost like comments, to remind you that all classes use this sort of function Software Development c++ | |
Is there a way to enter a pause state between commands running? Software Development visual-basic | |
some code ive been using whit out any problems suddenly wont work.. Whats the really weird parts is when its a random number it got no problems lodaing the image. But when its i := i +1 item := listview1.Items; form2.image1.Picture.LoadFromFile(item.Caption); {here it chrashes] it crashes whit an error called … | |
This is the problem, when I run it, there are no errors. However when I check the reportfile, I end up with the wrong numbers from the calculations. The calculator: [CODE]void AddDetailToAccumulators(float *totfedtax, float *totssitax, float *totstatetax,float *totrate, float *totreg, float *totovt, float *totgross,float *totpay,float *totdeferred, float gross, float federaltax, … | |
hi guyzz... i have a problem in my combobox listindex searching. when i open my comp, the combobox working very well that when i type the first letter it automatically autocomplete the data in the combobox, but after an hour or restarting my pc.. it doesnt work any more... i … Software Development visual-basic | |
Hello, first time poster here. So if I come off as asking something so hastily and quickly my bad, but currently I'm creating a clock class on DrJava. This is what I have so far. [code] clock.java import java.util.*; import java.text.*; public class Clock {private int hours; private int minutes; … Software Development java | |
I'm creating 50 picture boxes where all of them has a constant width and height of 50 and on run time, i randomly place them in random locations on the form but the problem is some picture boxes overlaps with each other... any idea on how to randomly place the … Software Development | |
Hi Everyone, can someone help me on this, i cant figure out how to 'correctly sort' an already 'sorted' listbox in VB6, with alphanumeric items [LIST]listbox when the Sort property set to TRUE have these values[/LIST] [INDENT] data0 data1 data10 data19 data2 data22 data3 data31 [/INDENT] [LIST] i need to … Software Development visual-basic | |
i understand what this stuped question, but how deactivate "windows just in time debugger"? Software Development c++ | |
let say i have authors.a and books.a, authors.a is dependent to books.a and books.a is dependent to authors.a, can i compile them together? as a c# programmer it doesnt seem possible to me, for example you are adding a project called B as a reference to one of your project … Software Development c++ | |
hi every body i am new user plz help me.plz send me the code of date converter or upload cpp file if user enter any date(date may be in past and may be in future) and ask us to tell the day at that date which user enter,by using date … Software Development c++ | |
I am working on an homework assignment and i have got the first half done now i am stuck on the last part. This is what i need to complete now. # Add further attributes to the Account class (account's name, belong to which department, responsible person's name, title, phone … Software Development python | |
I'm working on a quick sort algorithm using recursion but it's throwing a stackOverflowError. Here is the code: [CODE] public static void quicksort(int [] A){ quickSortRec(A, 0, A.length-1); } public static void quickSortRec(int [] A, int p, int r){ if (p < r){ int q = Partition(A, p, r); quickSortRec(A, … | |
sorry to bother all of you again but i was just wondering if i can use the same arraylist more than 1 time. this is for my project i have to create a gui for a pet store and a pet can be either a : mammal,reptile,fish or bird. so … | |
Hi, Am a beginner in python. Wrote this program based on the doomsday algorithm to calculate what day of the week corresponds to an inputted date.... at the moment idle rejects the program citing'march4 is not defined'.(line 23) Am i not clearly defining it there?? Please help!! Program text: #Doomsday … | |
Hi, I was wondering what was wrong with the following code. It creates a [i]vector <int>[/i] and assigns it the values 0 - 51. Then it shuffles these values and prints it to the screen. When I compile it, I get no errors, but when it runs, it throws an … Software Development c++ | |
Hii Everyone... I used to be an active member of this community... but because of studies i wasnt able to keep in touch with you guys.. Am an amateur programmer,and i need your help... I have written a programme to find nCr[n combination r] nCr=n!/(n-r)! I want the compiler to … Software Development c++ | |
Hi Folks, I am encountering what I think is a simple problem but I haven't been able to solve it. I am trying to parse a simple XML file and I keep getting the following exception... Exception in thread "main" javax.xml.transform.TransformerException: A location step was expected following the '/' or … Software Development apache file-system java xml | |
Can anyone tell me how to get what keys are pressed in VPython? Software Development python | |
I sometimes wish they would have kept some features from c++ in C#. Anyways, I was trying to try an old c/c++ trick: [CODE]#define SUM 1[/CODE] but it does not work in c#. Anybody know how to declare symbols in c#? Software Development c# | |
This's got probably an easy answer but it's been puzzling me a few hours already. The code below declares a string object and fills it character by character. I can print every single character (line 16) but I can't print the string as a whole (line 19). Could anybody tell … Software Development c++ | |
In c++, when we create an array using dynamic memory allocation, we are able to destroy it later on using: [CODE]delete [] array;[/CODE] is the same thing possible in c#? If i create an array in C#, then how do i delete it when i don't need it? Software Development c# | |
I need some help with my program. The program is supposed to read ID#'s for students as well as grades from a file called "grades.txt" After the program reads the the file it displays a menu as follows: 1. Publish(publish contents of file to output file called "report.txt"); 2. Search(program … Software Development c++ | |
can someone please give me a hand in adding arrays to my game here is what i have. [CODE]#include <iostream> #include <string> #include <time.h> #include <cstdlib> using namespace std; void initMessages() { const char* END_OF_ARRAY = "end_of_array"; const int YES_MSG = 0; const int NO_MSG = 1; } char* getMessage(const … Software Development c++ |
The End.