132,726 Archived Topics
Remove Filter ![]() | |
A program combining a switch statement with static variables in a class. Based on the switch statement, a class object is dynamically created. Software Development java | |
Nothing fancy, but I know many new programmers are often confused about recursion. Recursion simply is when a method calls itself. What MyTree does is it adds nodes to the root node, then that root node can be used to create a JTree. The populate() method reads in a list … Software Development java | |
| |
Here is a code to sort numbers instead of strings using the BubbleSort method. The difference here is you don't use compareTo() for numbers as you do with strings. Software Development java | |
Hi Dani, fine Examples (the others too) to learn programming Java, but where is the MyInput.java class? Thanks Eddi Software Development java | |
This program consists of two functions in one class. It demonstrates a recursive function to calculate the factorial of a number. Software Development java | |
This tiny code will demonstrate how to log-off from windows. Enjoy! Software Development c | |
I just spent about an hour making this story builder to create book and short story outlines. It is written in C. If anyone has suggestions, please reply to this, PM or email me. Anyway, here is the code and .cpp, as well as the exe in a zip file. … Software Development c | |
| |
Well I thought u might be bored with the hangman stuff i posted a few days ago so here is a new gaming programme. well in this one all u have to do is try to guess the number correctly while running the programme. suggestions are welcome. this is not … | |
hi this is a program for simulation the scheduling in processes between RAM and CPU the program in c language and i hope that you will engoy it and i will be ready for more help | |
It's a game where u shoot from a cannon and the cannon-ball moves like a projectile and hits a target. So u will see three major things in this program: 1. Rotating a cannon; 2. How to move an object like a projectile 3. A very simple collision detection Before … Software Development c | |
hi all .. this is intorduction to an anonymous classes, An anonymous class is one that doesn't have a name. In the following example, both structures inside the TRectangle union are anonymous classes: Here is an example of running the program: You want to identify your rectangle by its location … Software Development c++ | |
I don't know if this function may be helpful to anyone, but I just converted from a VB function recently to C++. I'm converting a text file string that is nine characters to a decimal value that has funny characters in it because it is exported from an old VAX. … Software Development c++ | |
![]() | hi, i want to use a usb port, to power a led that i have hacked around with, it is connected to the usb cable, what i want to do is use it to make the led flash, how can i do it? ![]() |
Hi all, I'm new to C and I have an assignment to write our own linux ls command. When we type ls -R , it recursively list the target directory. Really have no clue how to do that . Appreciate your help in advance !! Software Development c | |
Hey all! I've been learning C++ like about over one month actively now and I am keen on the language. I am considering to buy a book, suitable for beginner, as criteria I want writer to know what about he/she writes and explain all clearly and understandably by beginners. I … | |
by investigating the project i try to understand the references as to how they were added, as project or as dll. Only difference i found is in the properties of the references in the solution explorer. if a reference added as a dll, it has one more property named specific … Software Development | |
how do i change fileattributes in compact framework? it does not have getattributes and setattributes methods. Any ideas? Software Development file-system | |
am I doing the right thing here? I am making a simple lexical analyzer and in the code below, I am trying to check if there is a valid "relational operator" in the input. The code's parameters: input stream, the position of the current pointer, the success (initialized to zero). … Software Development c | |
hello.... im sorry for my bad spelling ... i have a problem in saving the result of a metod in a file ... the result is an arraylist ... i dont know how to save it ! in way I save it ,file shows it "system.collection.arraylist" but it must show … Software Development file-system storage | |
ei guys i really need help on how to give an output like this: -1 -1 -1 -1 -1 0 -1 -1 -1 -1 0 1 -1 -1 -1 0 1 1 -1 -1 0 1 1 1 -1 0 1 1 1 1 0 1 1 1 1 1 … Software Development c | |
I learn C++ Basic. I want to some detail about in OOPS (Dynamic Binding). Software Development c++ | |
I am having an issue with my program. If I select one of the three calc buttons it works fine and shows the amort table correctly. If I put information in the text fields for amount, interest, and years and hit calculate button I get little boxes in the amort … Software Development gui java java-swing | |
[COLOR="Green"][/COLOR] hi can any one send me the date validating program plz.......... Software Development c++ ![]() | |
I am new to python. I have a set of commands which I want to convert to a python script. commands are foreach f (`cat ../etc/l.list`) echo $f mkdir "$f" cd "$f" cp ../r/"$f".txt . cd .. end I succeded in creating folders with respective names as listed in l.list, … Software Development python | |
Hi, I'm trying to find a solution to my code and I have general idea what the problem is but I don't know how to solve it please help me. What the code does: What my code does is it should read a dictionary file called dict.txt and store each … Software Development c++ file-system | |
Hi All, I'm trying to figure out what is wrong with my code for days now.... I just started to learn about the databases, so please excuse me if I make stupid mistakes. So here is the problem: I use MS Access database to store data in several tables. Occasionally, … Software Development | |
I am writing a small Java program and need help using a simple search code. It is not compiling. [CODE]public int indexOf(EltType e) { int i=0; for (i = currsize; i < currsize; i++){ things[i] = e; e.equalts(get(i)); } return -1; }[/CODE] Basically I want to get the position number … | |
Hi, I would like to ask a question and I'm quite certain that I'll get positive answer to that. When I've change some code in one file and press f5 (visual studio) it seems to me that all other files are being compiled as well as this one in which … Software Development c++ visual-studio | |
int a; printf("%d",sizeof a);// fine printf("%d",sizeof int);// giving parse error here can any one help me in this regard. Software Development c | |
Hello, If a user has a few of my applications open and he/she minimises them I would like to group these in the task bar like MS Word for example. Product Name - Application 1 Product Name - Application 2 Product Name - Application 3 Product Name - Application 4 … Software Development vb.net | |
Hi All, I had puted out my records from database and place them in Datagrid. Than I try to filter out unwanted records based on user inputed date (by using 2 DTPicker, a START DATE and END DATE). And I encounter this problem "Run-time error '3001'". Anyone has any idea … Software Development visual-basic | |
This is m y code:: [code] Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String,[B] ByVal lpKeyName As Any[/B], [B]ByVal lpString As Any[/B], ByVal lpFileName As String) As Long Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, [B]ByVal lpKeyName As Any[/B], ByVal lpDefault … Software Development vb.net | |
Hi all How R U I need help , how i can create array inside loop, very time I enter loop I want to create new array .. and enqeue it inside queue ,, the new array every time hide old array ,, please help | |
Hi, I need already written code for a simple file and folder explorer in Java similar to Project Explorer in Net Beans IDE. Instead of writing it from scratch I hope I can find which is already written. It will be very good if it allows file/directory add, remove and … Software Development file-system ide java | |
I am trying to design the game Bulls and Cows we have a word to guess eg:"fame"(four lettered) if i type abcd bulls=0 cows=0 efgh bulls=0 cows=1 (if the letter is at the same positon as the word we give bulls. If the letter is in the word but not … Software Development java | |
Hello! I need some help regarding a file conversion. I have some .csv files and I need to convert them to .xls (to look exactly as a manually made table, not only to change the extension). The code should not be complex because the files have the same pattern so … Software Development python | |
Hi Folks, Myself is Ashish Lohani and am a software developer. What I want to do is to call a rdlc report in VC++2008 with MFC Framework and dont know how to do............ If sum1 know dat so dp plz help me out........ Thanks In Advance and Have a nice … Software Development c++ | |
I Don't want to use keyListeners anymore since it's there's too many unfixable bugs with it. [B][U]Problem#1[/U]: I am now trying to have a Label say "Enter a consonant" and beside it a textField that should be the size of one character. I tried setColumns(1) but it won't work and … Software Development api daniweb-api java java-swing | |
Hi, I am trying to get something that will actually delete some contents in a vector? For example, i have a vector<double> vector1; and i have a for loop that does whatever which will access the contents in the vector1 when some criteria is met. therefore not accessing the vector … Software Development c++ | |
To say that I am not offended at being called "incompetent" in what i thought was supposed to be a friendly forum would be lying. [B]I stated long ago that i was NEWBIE to java. [/B] All i meant by my original post was why not MAJORITY of people can … Software Development java | |
Dear people, Thanks for your time and patience. I wrote a program to calculate Cosine, Sin, Tangent. However, by using the built in math() which are Math.Cos, Math.Sin and Math.Tan It gives inaccurate readings. By default, the math() accepts and calculates in radian form. I had properly converted user inputs … Software Development vb.net | |
This is my code in vb6. How to in vb.net??? Please tell me. I'm stuck in here.. [code] Public Function LookUpST(ByRef adcCON As ADODB.Connection, strSTT As String, Optional vntHasil As Variant, Optional vntRETURN As Variant, Optional vntNEXT As Variant, Optional vntNEXT_TO As Variant) As Boolean On Error GoTo ErrHndl Dim … Software Development vb.net | |
Is it possible to make a list with variables in it? I'm making a quick simple harmonic oscillator program from an old Fortran prog to learn Python and I'd like to use a list to control output to a text file. So far I have a list: [ICODE]writeLoop = [t, … Software Development python | |
Of course i am a newbie in c# and not much experienced about programming, so this must be an easy thing but i just cannot find the solution. I've been working on a project in Visual.NET C# Express. I've built the main view first, then added database connections, then started … Software Development | |
Hi all I'm needing help with a question in my tutorial due tomorrow... I'm given this file which contains the following: toy201, Racing Car, AB239:2,DC202:2,FR277:2,JK201:1,YU201:1,EE201:1,FW201:1 toy101, Barbie Doll, AB139:2,DC102:2,FR177:2,JK101:1,YU101:1,EE101:1,FW101:1 toy301, Flying Kite, AB339:2,DC302:2,FR377:2,JK301:1,YU301:1,EE301:1,FW301:1 I am now to define a function that gives the following from the above file: >>>load_prods(filename) {'toy301': … Software Development python | |
hi based on this code: [code=python]def load_products(filename): def get_components(parts): """parts is a list of parts and their associated amounts, each separated into groups, split by (',')""" """need to take out each id, take out each integer, an associate them, by putting them in a pair -> return in big list""" … Software Development python | |
Ok, so I am working on a function that remove a element from the array if the name entered by a user is = to a element in the array It clears of the memory of said element but i need to re order the array I searched on here … Software Development c++ |
The End.