132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for punchinello

As I was told, recursion is a good way to make things simple in terms of writing programming code, but the outcome usually involves extra overheads. I was also told that for some recursion algorithms it is possible to adapt them to make corresponding nonrecursion ones. I wonder if there's …

Software Development c++
Member Avatar for punchinello
0
84
Member Avatar for restrictment
Member Avatar for mrnutty
0
112
Member Avatar for sivak

can anyone explain tranaction in .net ..when we go for it ? explain locking in .net along with example plz?

Software Development asp.net
Member Avatar for avirag
0
104
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> using namespace std; int main() { //delcare varialbe char selection; //declare function void counting_loop(); void impossible(); void missing_item(); void odd_even(); void poem(); void pause_m(void); do { cout << " Welcome to the Fun Program" << endl; cout << " Select from the menu " << endl ; cout …

Software Development c++
Member Avatar for VernonDozier
0
114
Member Avatar for samsons17

i'm trying to determine the age of the people by entering their id card number..i'm trying to do this without having the database.. is this code possible??because i got error when try to run it.. if this possible,could you tell me the correct way to do this? Thanks... [CODE] #include …

Software Development c++
Member Avatar for jonsca
0
108
Member Avatar for torbecire

I have put an array list in a hash map, but the problem is the old values of the hash map are over written everytime. So the old values of the hashmap aren't stored. Could someone tell me what mistake I am making? [CODE] import java.util.*; public class Cain { …

Software Development java
Member Avatar for torbecire
0
148
Member Avatar for vnproduktionz

[code]# Reading the .csv file energyFile = open("EnergySources.csv","r") stateDict = {} for line in energyFile: line = line.strip() fields = line.split(",") if fields[0] == "State" or fields[0] == "": continue state = fields[0] total = fields[-1] float(''.join(total)) coal = fields[1] float(''.join(coal)) naturalgas = fields[2] float(''.join(naturalgas)) petroleum = fields[3] float(''.join(petroleum)) nuclear …

Software Development open-source python
Member Avatar for vnproduktionz
0
127
Member Avatar for EntangledDesi

I have created form resembling a standard dialog box where some enters there name into a text box and then hits 'ok' taking them to the main form..On this form I need to get the name that is typed into the text box to be displayed on the main form. …

Software Development visual-basic
Member Avatar for EntangledDesi
0
390
Member Avatar for Kezoor

Hello, I begin in Python, and I have the following problem: I retrieve an excerpt of a HTML webpage from the web, and then want the result to be hold in a variable (before being processed by a reg-exp). The function do get the HTML source, but when I assign …

Software Development open-source python
Member Avatar for Kezoor
0
333
Member Avatar for fadia

Hello guys.. I have this tutorial that i keep getting errors on no matter what i've tried.. Would someone kindly check it out for me?! Here is the question: [B]Q1:- Write a program that reads students’ names followed by their test score. The program should output each student’s name followed …

Software Development c++
Member Avatar for jonsca
0
110
Member Avatar for ah124131

After completing my code I got an error message at the second to last closing bracket that said I was missing a return statement, I looked in to it online and found that some said to put return 0; but that didn't work it just gave me a new error …

Software Development java
Member Avatar for ah124131
0
339
Member Avatar for rookanga

I am amost done with the code but I need a little bit more help I need to add the bubble sort code & write exchange increment line and add the selection sort code & write exchange increment line, but I don't know how to do it can anyone help …

Software Development c++
Member Avatar for Fbody
0
249
Member Avatar for ryno365

Hello again DW. Tomorrow I have an interview and I'm trying to make a jar of my latest project. Using netbeans, I've created a jar and everything looks fine. I can see all the card IconImages in the Jlabels and it looks fine. But when I repaint the frame, the …

Software Development java
Member Avatar for ryno365
0
126
Member Avatar for Samyx

I have this code, but instead of implementing class enumeration I want to create an anonymous class in the method getEnumeration that does the job right in the return, hwo do I do that? [code] // File: TestList.java (Module 10) // // Author: Rahul Simha // Created: Nov 2, 1998 …

Software Development java
Member Avatar for Samyx
0
92
Member Avatar for fulcrum9

Hello, I'm a beginner in Visual Basic and I was wondering if it is possible to shorten twenty subs into only 1 sub. example: [code]Private Sub box1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click Dim box1Click As Boolean = True End Sub Private Sub box2_Click(ByVal sender As System.Object, …

Software Development vb.net visual-basic
Member Avatar for kplcjl
0
153
Member Avatar for crazyboy

I want to establish a VPN network between two PC of different lan network.Can i obtain this through my C# code. I am having no idea regarding this. Can any one tell me how can establish VPN through. TO obtain this in which direction i should progress. IF any one …

Software Development
Member Avatar for crazyboy
0
98
Member Avatar for xirosen

Here my code to display the menu: Private Sub Text5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 2 Then PopupMenu t5menu End If End Sub But my problem is the default popup menus such as undo, copy, cut etc. keeps in taking place …

Software Development visual-basic
Member Avatar for xirosen
0
112
Member Avatar for A Tripolation

Hey all. I'm really new to programming and would like some help, if you all don't mind ;) I'm not actually having trouble with the programming, but rather, what I'm being asked to do. Here is what I'm supposed to do (and yes, it is an assignment, but I'm only …

Software Development c++
Member Avatar for A Tripolation
0
168
Member Avatar for Ishaniwp

Hi! I'm a beginner to VB.NET. I'm working on an application which is created using VB.NET 2005 and the DB is created in SQL server 2005. I'm able to delete a record from a table when it is not used in another table as a Foreign Key. For eg. If …

Software Development vb.net
Member Avatar for kplcjl
0
699
Member Avatar for ITfav

Hey guys, i'm confused... wat's e diff btn [B][COLOR="Green"]LPD3DXMESH [/COLOR][/B]and [B][COLOR="green"]ID3DXMesh[/COLOR][/B]? Including their uses and so forth... help me understand e diff. Ok, i'm learning Direct X 9. Thx in advance! :icon_smile:

Software Development c++
Member Avatar for ITfav
0
145
Member Avatar for tomtetlaw

When I try to compile this: [code=c++] void *BaseEnt::GetVar(char const *varname) { char name = *varname; switch(name) { case "id": return (void*)id; case "name": return (void*)name; case "count": return (void*)count; default: return (void*)NULL; } } [/code] I get these errors: [code] ------ Build started: Project: Test Classes, Configuration: Debug Win32 …

Software Development c++ visual-studio
Member Avatar for slackingjuggalo
0
716
Member Avatar for nevets04

Why are there so many people doing c++. I've heard even from c++ coders, that python is better. Is this maybe because c++ has been around longer? What do you think the future of python is? Do you think It will eventually beat out c++?

Software Development c++ python
Member Avatar for jbennet
0
227
Member Avatar for Goalatio

So, I was trying to re-create the CMD command "set /p", where it prompts the user to type text, and is ended by a carriage return. Upon trying this, however, I found that a word (dw) will only hold the last thing passed to it. You can type "abcdefg", but …

Software Development assembly operating-system
Member Avatar for Goalatio
0
159
Member Avatar for Impact4ever

Hi everyone, In part of my script, I'm trying cut out couple of columns from the df -h command. The ones I want is the Filesystem column and the Mounted On column. This is what I have so far. [CODE]df -h | cut -d " " -f1 [/CODE] And that …

Software Development shell-scripting
Member Avatar for sknake
0
173
Member Avatar for RunTimeError

With apologies to ddanbe, I just have a question regarding using the IDE toolbox vs programmatically creating form objects at run time. I use to fall into the habit of only using the tool box to create from objects such as buttons or picture boxes but have now started to …

Software Development ide
Member Avatar for sknake
0
132
Member Avatar for mnewsome

I write as a systems administrator and own VS Team 2008 Team Suite. I would want to learn about the features within the package that allow developers to collaborate with other developers either real-time or otherwise. Additionally, I would want to learn about the features that would allow me to …

Software Development vb.net visual-studio
Member Avatar for sknake
0
93
Member Avatar for nateysmith

[CODE]#include <iostream> using namespace std; int main() { int TESTS = 0; int testScore[TESTS]; int testNum = 0; int a; double total = 0; double average; testNum = 0; cout<<"How many scores are there? "; cin >> TESTS; cout<<"Enter a score: "; cin >> testScore[testNum]; while(testNum < TESTS && testScore[testNum]) …

Software Development c++
Member Avatar for nateysmith
0
2K
Member Avatar for help-me-please

Hi Guys I was wondering if anyone could assist me by telling me / correcting my code as to where I am going wrong. I'm trying to simply excute flvmeta.exe, and pass the parameters: "flvmeta input.flv output.flv" when I do this manually it works fine, however when I build and …

Software Development
Member Avatar for mikiurban
0
127
Member Avatar for RunTimeError

Hey guys, I just have a question regarding the separation of UI code from business/logic code. I always seem to get in trouble for putting to much code in form classes. I don't understand where the line is drawn between code that needs to be in form/UI code vs code …

Software Development
Member Avatar for mikiurban
0
316
Member Avatar for xxunknown321

Write a C++ program that ask the user for the name of a file. The program must have a function that prompt the user to enter a file name and open the file. The program should display the last ten lines of the file on the screen. Each line of …

Software Development c c# c++
Member Avatar for xxunknown321
0
187
Member Avatar for mr_steve

I am attempting to write a simple chess program (starting with just pawns), and am currently at the stage of initialising the board. The initial board is declared using an array of numbers, with '0' indicating a white piece, '1' indicating a black piece and '2' indicating an empty square. …

Software Development c
Member Avatar for mr_steve
0
170
Member Avatar for gcardonav

Hi guys: The following code is supposed to the following: 1 - Receive a random number and divide the number by 1000 2 - Then it needs to check if the number is greater than the series number and the cut point and convert the divided random number to either …

Software Development c++ programming-construct
Member Avatar for VernonDozier
0
138
Member Avatar for rakky

conectivity of sql & visual basic is needed as early as possible pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee!

Software Development sql visual-basic
Member Avatar for AndreRet
0
138
Member Avatar for samira1993

Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the …

Software Development visual-basic
Member Avatar for AndreRet
0
482
Member Avatar for python123

Hi, I am new at Python..i have been asked to create a code for the following item. A user needs to input the 'room number' and 'date' to equal a answer. Room Number: R1, R2, R3, R4, R5 R1 = Dates: 1/01/2000, 01/02/2000, 01/03/2000 R2 = Dates: 01/01/2000, 01/03/2000 R3 …

Software Development python
Member Avatar for python123
0
244
Member Avatar for ivankenny

Hello it's me again i'm having problem with the database subtraction for my POS Project im using ado database and i know that you just have to change the value from the selected and voila it would update the database but mine doesnt work: ' txtqan is connect to the …

Software Development visual-basic
Member Avatar for AndreRet
0
146
Member Avatar for sting23

Im trying to make a simple system using VB and Access. Does anyone have requirements list for such a system? I have the basic ones but if i can get a few more it wont be too bad. Thanks

Software Development visual-basic
Member Avatar for AndreRet
0
123
Member Avatar for Alicito

hello my friends I need a little help over here : im workin on a calculator that should provide the user with these services: • Read a big integer number up to 300 ( use arrays ) . • Sum two big integer numbers (with using the carry). • Product …

Software Development
Member Avatar for Antenka
0
186
Member Avatar for manoj.pg

If I have the class name in a string varibale, how can I instantiate an object of that class? I am just thinking of COM and CORBA implementations where C++ object is instantiated from the data in the stream. How can I implement it?

Software Development c++
Member Avatar for mrnutty
0
683
Member Avatar for jessicamelillo

Hi! I'm currently taking a computer programming course at Wagner college and I have a project due this week that I am completely stumped on. these are the guidelines: [I]This will be a something like a “compatibility program”. 1) You will ask the user their name, and store it. 2) …

Software Development c++
Member Avatar for jonsca
0
104
Member Avatar for whiteyoh

Hi All, Im attempting to make a simple java menu system. the psueo code is as follows 1. user is presented with menu 2. selection is made 3. that action is ran, i.e make a new user (i have this code seperate, which works) 4. the user is returned to …

Software Development gui java
Member Avatar for whiteyoh
0
119
Member Avatar for jejannah

i need some sample code on retrieving data from the database and put it in the form particulary in the groupbox.. we are doing a project study, text to voice translator.. when the user enter the word in the textbox and clicks the speak button, the english equivalent word of …

Software Development
Member Avatar for DdoubleD
0
149
Member Avatar for ArvindRaja

Recently, I stumbled across WinBGIm and decided to resurrect a small game I had made in turbo C++ a long time ago. Anyways, I succesfully got WinBGIm, did the necessary steps. After removing all the errors and building the project in Visual Studio 2008 Professional, I get this error (with …

Software Development c++ visual-studio
Member Avatar for md37
0
216
Member Avatar for AdRock

I have got an example for cplusplus.com for converting a string into a char array so i can split in into tokens and adds to a vector and it works fine in the main method but if i try and create a separate function and pass a string as a …

Software Development c++
Member Avatar for iamthwee
0
754
Member Avatar for quaifp1

Hi, I want to create a line on a canvas ( similar to a visio connector but not as fancy) which will allow a mouseover event to be trapped ( this would trigger a property sheet to display the atributes of the line - a microwave link in my case …

Software Development pascal
Member Avatar for quaifp1
0
121
Member Avatar for skelly16

Hi All Im very new to perl scripting coming from a shell background, but im determine to stick to it and learn perl. I have env variables which i have defined in my perl script and work fine from command line as these env variables are in my profile. When …

Software Development perl shell-scripting
Member Avatar for skelly16
0
228
Member Avatar for vnproduktionz

here's what i currently got [code]# Reading the .csv file energyFile = open("EnergySources.csv","r") stateDict = {} for line in energyFile: line = line.strip() fields = line.split(",") if fields[0] == "State" or fields[0] == "": continue state = fields[0] total = fields[-1] float(''.join(total)) coal = fields[1] float(''.join(coal)) naturalgas = fields[2] float(''.join(naturalgas)) …

Software Development data-structure open-source python
Member Avatar for woooee
0
106
Member Avatar for mitsuevo

[code] float decimal = 2.345324 float dec_points = decimal%1; [/code] hey guys, I have a small but trivial problem... i have been trying to do the above but i keep getting a error... "error C2296: '%' : illegal, left operand has type 'float'" Anyone got a clue? Thanks guys!

Software Development c c# c++
Member Avatar for Dave Sinkula
0
78
Member Avatar for Malinka

Dear all, may be someone can help me to find a solution to the following problem: I have a list of patterns (len=5) that are presented as tuples in a list, e.g. patterns = [('w1','X1','w1','Y1','w1'), ('w2','w2','X2','w2','Y2'), ('w2','X2','w2','Y2','w2')] I want to go through all sentences in a text file (one sentence …

Software Development python
Member Avatar for Malinka
0
101
Member Avatar for JRabbit2307

Help! The only thing I seem to not get is the initials from the substring........... any ideas? public class Name { //Data Members private String firstName; private String middleName; private String lastName; private String initials; //Default constructor Name() { firstName = null; middleName = null; lastName = null; } //Constructors …

Software Development java
Member Avatar for JRabbit2307
0
132

The End.