132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dani

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
0
210
Member Avatar for Phaelax

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
0
182
Member Avatar for johnroach1985
Member Avatar for Banderson

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
Member Avatar for alpe gulay
0
170
Member Avatar for Eddi

Hi Dani, fine Examples (the others too) to learn programming Java, but where is the MyInput.java class? Thanks Eddi

Software Development java
Member Avatar for cms271828
0
370
Member Avatar for Dani

This program consists of two functions in one class. It demonstrates a recursive function to calculate the factorial of a number.

Software Development java
Member Avatar for dharween0629
0
214
Member Avatar for Mahen

Hi everyone, I've been working on this calculator for days, and now i am making it opensource so that everyone can bring his own contribution, please comment all your codes very well.

Software Development c
0
258
Member Avatar for hivework

This tiny code will demonstrate how to log-off from windows. Enjoy!

Software Development c
Member Avatar for BountyX
0
132
Member Avatar for mister-fett

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
0
171
Member Avatar for shouvik

Have a look at this programme. it is my semister project

Software Development c++
Member Avatar for thakur ravi
0
117
Member Avatar for shouvik

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 …

Software Development c++ gaming
Member Avatar for Ghost
0
254
Member Avatar for Mostafaib

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

Software Development algorithm c
Member Avatar for vegaseat
0
139
Member Avatar for Asif_NSU

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
Member Avatar for neelam_209
0
3K
Member Avatar for meabed

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++
Member Avatar for crestaldin
0
217
Member Avatar for BlackDice

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++
0
201
Member Avatar for leegeorg07

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?

Software Development flash python
Member Avatar for leegeorg07
0
94
Member Avatar for magicor

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
Member Avatar for Ancient Dragon
0
75
Member Avatar for Silvershaft

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 …

Software Development c c# c++
Member Avatar for tux4life
0
99
Member Avatar for serkan sendur

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
Member Avatar for serkan sendur
0
673
Member Avatar for serkan sendur

how do i change fileattributes in compact framework? it does not have getattributes and setattributes methods. Any ideas?

Software Development file-system
Member Avatar for serkan sendur
0
82
Member Avatar for urbancalli

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
Member Avatar for urbancalli
0
122
Member Avatar for fazeleh

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
Member Avatar for sknake
0
126
Member Avatar for D_switch

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
Member Avatar for D_switch
0
164
Member Avatar for sanjeet_singh88

I learn C++ Basic. I want to some detail about in OOPS (Dynamic Binding).

Software Development c++
Member Avatar for NicAx64
0
91
Member Avatar for rrspen316

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
Member Avatar for VernonDozier
0
227
Member Avatar for s_48

[COLOR="Green"][/COLOR] hi can any one send me the date validating program plz..........

Software Development c++
Member Avatar for jencas
0
116
Member Avatar for kaustubh00

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
Member Avatar for myle
0
189
Member Avatar for shuda009

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
Member Avatar for VernonDozier
0
378
Member Avatar for micka10

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
Member Avatar for sknake
0
254
Member Avatar for Alpdog14

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 …

Software Development apple java
Member Avatar for javaAddict
0
165
Member Avatar for atch

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
Member Avatar for atch
0
80
Member Avatar for Gaiety

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
Member Avatar for kvprajapati
0
292
Member Avatar for DGULLIVER

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
Member Avatar for GeekByChoiCe
0
102
Member Avatar for benjaminhan

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
Member Avatar for benjaminhan
0
117
Member Avatar for hery

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
Member Avatar for kvprajapati
0
3K
Member Avatar for Nada_ward

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

Software Development queue vb.net
Member Avatar for kvprajapati
0
98
Member Avatar for dasatti

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
Member Avatar for dasatti
0
3K
Member Avatar for akulkarni

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
Member Avatar for akulkarni
0
1K
Member Avatar for catcit

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
Member Avatar for catcit
0
147
Member Avatar for ashishlohani

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++
Member Avatar for ashishlohani
0
189
Member Avatar for and12

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
Member Avatar for sneaker
0
275
Member Avatar for kentigens

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++
Member Avatar for thelamb
0
174
Member Avatar for and12

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
Member Avatar for javaAddict
0
186
Member Avatar for LiBOC

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
Member Avatar for TonyTHC
0
393
Member Avatar for hery

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
Member Avatar for GeekByChoiCe
0
460
Member Avatar for mhockey14221

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
Member Avatar for Gribouillis
0
8K
Member Avatar for gkaykck

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
Member Avatar for gkaykck
0
151
Member Avatar for Ally89

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
Member Avatar for Ally89
0
133
Member Avatar for amandatm

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
Member Avatar for woooee
0
111
Member Avatar for power_computer

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++
Member Avatar for emirpp
0
789

The End.