132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sacarias40

ok i have a few textboxes and they have a "default" text. when you put your cursor into the textbox how can i delete the text automaticaly. see my picture to understand more

Software Development vb.net
Member Avatar for sacarias40
0
66
Member Avatar for DeadJustice

I tried to modify this merge sort method to sort an array of type T. Its an merge sort except iterative. I was just wondering why it wouldn't sort right? Can anyone help me out? [CODE=Java]public static <T extends Comparable<? super T>> void iterativeMergeSort(T[] input) { // Create a temporary …

Software Development java
Member Avatar for DeadJustice
0
156
Member Avatar for valchid

hi,can someone please tell me how i can read in data,save data to a file and print it out to the screen using the "gets" statement.My code starts something like: [code=c] #include <stdio.h>; #include <stdlib.h>; struct { char make[10]; char model[10]; double cost; int yearMade; }cars; int main () { …

Software Development c
Member Avatar for valchid
0
101
Member Avatar for GT2010

I have 3 classes, a student class, a studentList class, and a form. The ToString method is implemented in the student class, and a few students have been created and added in the studentList class. In the form, I'd like my current list of students to show up in a …

Software Development perl
Member Avatar for ddanbe
0
101
Member Avatar for Fouly

Hi all, The following code is generated automatically in Microsoft c++: [code] // InventoryAssignment(BETA).cpp : main project file. #include "StdAfx.h" #include "Form1.h" using namespace InventoryAssignmentBETA; [STAThreadAttribute] int main(array<System::String ^> ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); // Create the main window and …

Software Development c++ visual-studio
Member Avatar for Fouly
0
119
Member Avatar for koushal.vv
Member Avatar for shubhang

Hi, I am making a java program to make a countdown timer. User enters time,then when time is up a message is printed. How do I print the time on the same line? Please tell me how to go about it. Thanks.

Software Development java
Member Avatar for stultuske
0
259
Member Avatar for koushal.vv

Hi, i am using CMsFlexGrid in my project. the problem i m facing is the alignment of data ie when i store integer, double its getting aligned to right when i store strings its getting left aligned pls help. Display look very horrible :( .how to change it i dont …

Software Development c++
0
106
Member Avatar for l_03

i dont know how to solve this problem,,it seems that i dont know how to fixed this error Exception in thread "main" java.lang.StackOverflowError please helped me,,im stack on it,, i just have a class public class ATM{ BankAccount bank = new BankAccount(); SavingsAccount savings = new SavingsAccount(); CheckingAccount checking = …

Software Development java
Member Avatar for stultuske
0
776
Member Avatar for Ahmed_I

Generic Double Linked List [CODE="C++"]/* These are generic Functions for a Generic List * Note:-Only Functions not including a Menu and an Interface * You could use these Functions for your own Benefit*/ #include <iostream> using namespace std; template <class X> struct node{ //Template Structure X data; node* next; node* …

Software Development c++ data-structure linked-list
Member Avatar for ArkM
0
197
Member Avatar for helloan

Hi I'm completely new to using VB in excel, but could someone help me fix my program. I'm supposed to find the roots of the equation denoted as func using the newton raphson method. Currently I am not getting the correct roots and the range of values which can be …

Software Development visual-basic
Member Avatar for arghasen
0
134
Member Avatar for BestJewSinceJC

Hey, one of you guys suggested that I go on Wikipedia's page for hash tables. It was actually pretty informative. I'm pressed for time so I am doing separate chaining for my hash table because it seems like it will be one of the easiest to implement (and according to …

Software Development java
Member Avatar for BestJewSinceJC
0
157
Member Avatar for onlyvidya

Hello friends, I want to update the record in my database in MS-Access.What code should I write to update it?? What is the syntax for update statement?? plzz suggest me if u hv any idea...

Software Development vb.net
Member Avatar for onlyvidya
0
105
Member Avatar for ohnomis

Hello, I'm writing a a program in C++ that adds/subtracts complex numbers. I'm having trouble writing the square root of -1 or "i" in a complex number. Complex number: realPart + imaginaryPart * i (where i is /-1) ["square root of -1"] so far I'm thinking the code is something …

Software Development c++
Member Avatar for ohnomis
0
863
Member Avatar for Fouly

Hi all, I added a class named RandomVariableGenerator with the following functions in the .h file [code] static double GetRandomNumber(void); static double GetExponential(double beta); static double GetUnifrom(double a, double b); [/code] but after building them i got the following errors: Error 1 error LNK2020: unresolved token (06000002) RandomVariableGenerator::GetRandomNumber Error 3 …

Software Development c++
Member Avatar for Fouly
0
167
Member Avatar for nor_d83

Hello everybody... I'have bound a database to my form, and it displays the record of some fields from my database. I want to make the displayed record so that it can be searched by clicking the "find" button by the related searching categories. Below are coding that i've used.. [Private …

Software Development microsoft-access visual-basic
Member Avatar for nor_d83
0
172
Member Avatar for deusieeee

I have a assignment that we are to write two clases (Ballot, Votes). We are to use an array of Ballot type to hold information for each particular Ballot. The Votes class is used to mark the ballots, count up all to votes, delete a ballot etc. I have the …

Software Development c++
Member Avatar for omeralper
0
625
Member Avatar for cincachoo

Hi there forum members: Looking for some help .. I am a physician, not a programmer but ..... I have created in immunizations database in MySQL I would like to create a form for filling out immunizations on a chart in my office for families To make it simple, lets …

Software Development pascal
Member Avatar for LizR
0
142
Member Avatar for smorton123

I'm making a project in Xcode Pascal, the program asks the user if they want to begin then selects seven random in a 'lottery' style game. I wanted to save the numbers into an array so I could select any one of the seven numbers at one time. At the …

Software Development pascal
Member Avatar for LizR
0
234
Member Avatar for Fouly

Hi all, I used a function called GetRandomVariable to return a double data type and here's its code: [code]double GetRandomNumber(void) { // Zi = (AZi-1 + C)(mod m) // Zi = (5Zi-1 + 3)(mod 16) RandomVariableGenerator::Znode = (double)((5.0*RandomVariableGenerator::Znode + 3) % 16); return RandomVariableGenerator::Znode/16; } static double Znode = 7.0; …

Software Development c++
Member Avatar for Fouly
0
158
Member Avatar for AutoC

hey..I need to convert a 8 value bool array to char.How can I do this?

Software Development c++
Member Avatar for AutoC
0
4K
Member Avatar for 666kennedy

i have an array weights[16][60] this being 16 rows of 60 elements in each one i have another error[16] which co incides with each with the 16 rows, this is the error from each row. is there a way i can put each of the 16 in order in the …

Software Development c++
Member Avatar for 666kennedy
0
188
Member Avatar for bids

[code] #include <conio.h> #include <graphics.h> #include <math.h> #include <stdlib.h> #include <dos.h> void serp(int level, int Ax, int Ay, int Bx, int By) { int poly[4]={Ax,Ay,Bx,By}; setfillstyle(SOLID_FILL,YELLOW); if (level>0) { serp(level-1, Ax,Ay ,(2*Ax+Bx)/3,(2*Ay+By)/3); serp(level-1,(2*Ax+Bx)/3,(2*Ay+By)/3,(Ax+Bx)/2+sqrt(3)*(Ay-By)/6,(Ay+By)/2+sqrt(3)*(Bx-Ax)/6); serp(level-1,(Ax+Bx)/2+sqrt(3)*(Ay-By)/6,(Ay+By)/2+sqrt(3)*(Bx-Ax)/6,(Ax+2*Bx)/3,(Ay+2*By)/3); serp(level-1,(Ax+2*Bx)/3,(Ay+2*By)/3,Bx,By); } else fillpoly(2,poly); } int main(void) { int graphdriver=DETECT, graphmode; initgraph(&graphdriver, &graphmode, ""); int i, …

Software Development c++
Member Avatar for bids
0
145
Member Avatar for psyman_86

Hello everyone, I am having problem with a multiple public definition: ERROR L104: MULTIPLE PUBLIC DEFINITIONS SYMBOL: currenpacketbeingsampled MODULE: DataSampling.obj (DATASAMPLING) DEFINED: Main.obj (MAIN) The variable in question is defined only once in the header file, and only used in the associated C file. From my understanding a macro guard …

Software Development c
Member Avatar for psyman_86
0
260
Member Avatar for NinjaLink

Hello, I need help with a few things. Most of these things, I tried to do, but I need to know if I did them correctly, if not, how do I fix my problem? Thanks. 1) How do I make my MessageBox.Show say [B]"The Sum of Array Numbers is ____ …

Software Development vb.net
Member Avatar for NinjaLink
0
168
Member Avatar for emotionalone

I need to create a Space Invaders kind of game and I have a demo I need to copy the main features from. The invaders have to be of at least 3 different types and they change color. So I figured the invaders are 3 child classes from a parent …

Software Development c++ linked-list
Member Avatar for cikara21
0
227
Member Avatar for Alex Edwards

In C++, where are the header files that define the standard primitives and bitfields? I would like to confirm something, if it is possible. -Alex

Software Development c++
Member Avatar for ArkM
0
190
Member Avatar for ccandillo

OK, this may be a dumb question but I'll ask anyway. I am starting to see the benefits of using classes. Most notably code reuse, inheritance and overloading. Shoud I still be writing fuctions in my scripts or do classes make them obsolete? Is there a rule of thumb that …

Software Development python
Member Avatar for Stefano Mtangoo
0
143
Member Avatar for MylesDBaker

Hello, I am trying to declare a 2D array (3x3) inside of a class. I have it set up like this: GameBoard.cpp[CODE] #include "GameBoard.h" #include <iostream> using namespace std; char board [3][3]; GameBoard::GameBoard() { board [0][0] = 'a'; board [0][1] = 'b'; board [0][2] = 'c'; board [1][0] = 'd'; …

Software Development c++
Member Avatar for ArkM
0
151
Member Avatar for CoolGamer48

Does anyone actually use the .hpp file extension for C++ header files? I've never seen it used, but I was just working with geany, and I noticed that it only syntax highlights C++ specific things if the file extension is .hpp (or .cpp, obviously, but not .h). So what's the …

Software Development c++
Member Avatar for ArkM
0
139
Member Avatar for vahny

[code] #include<iostream.h> int main() { int row1[10]; int col2[10]; int m,n,p,q; cout<<"Enter the number of rows in matrix A"<<endl; cin>>m; cout<<"Enter the number of columns in matrix A"<<endl; cin>>n; cout<<"Enter the number of rows in matrix B"<<endl; cin>>p; cout<<"Enter the number of columns in matrix B"<<endl; cin>>q; if(n!=p) { int …

Software Development c c# c++
Member Avatar for cikara21
0
178
Member Avatar for balakrishnan.kb

hi every one please give me a idea for delphi language, and which database is used for that language thanks

Software Development delphi pascal
Member Avatar for balakrishnan.kb
0
120
Member Avatar for deepukng

Dear Friend , I am Using Vb.NET for creating windows application. I have attched MS SQL database to my application and project is over. I dont know how to create setup file. please someone help me regarding this. Thank you,

Software Development vb.net
Member Avatar for jbennet
0
151
Member Avatar for Icebone1000

Hi, i was tring to figure how set display mode to fullscreen under win2000, i saw at msdn that theres a SetConsoleDisplayMode, but that is for winXP +.. I tried [CODE] //sets the console window //to fullscreen void FullScreen(){ HANDLE consolehandle; int sysmetrics_x=GetSystemMetrics(SM_CXFULLSCREEN);//get full width int sysmetrics_y=GetSystemMetrics(SM_CYFULLSCREEN);//get full height COORD …

Software Development c++
Member Avatar for marco93
0
172
Member Avatar for NinjaLink

Hello, I'm having a simple problem. For my program, each song has an id number which stores the songs information. For my deleteSong function, I am asking the user what id of the song does he/she wants to be deleted. After the user enters the id of the song he/she …

Software Development c++ linked-list
Member Avatar for NinjaLink
0
148
Member Avatar for deven1974

Hello, I'm trying complie this SortedList Program and List Java, but I'm alot errors. If someone can help with this, I really appricated. Thanks import java.util.Iterator; /* * * SortedList.java * */ public class SortedList<E extends Comparable<? super E>> extends List<E> { private int size; public SortedList(){ head = null; …

Software Development java
Member Avatar for Antenka
0
320
Member Avatar for astroboy_x4

Hi, has anyone tried to download files from FTP using VB? I have tried using an FTP control for my project, my problem is I can't recursively search for files within subfolders, I tried using FSO but it doesn't work since the path from the server are something like this …

Software Development visual-basic
Member Avatar for Dot Lexine
0
209
Member Avatar for tomtetlaw

I'm making a text game and im making a save() and load() function i'v got the save function to work but i dont know how to change varyables in the program depending on the varyables in the text files. heres the code for the functions: [code=python] def save(): openfile = …

Software Development python
Member Avatar for tomtetlaw
0
103
Member Avatar for Gamergirl22

Hi, I have a program problem with converting decimals to binary and back again. My teacher said that the program is to be like a menu and convert decimals or binary from the user's input. This is part of my code: [code=cplusplus] #include <iostream> #include <string> using namespace std; void …

Software Development c++
Member Avatar for Gamergirl22
0
181
Member Avatar for Tank50

Hi Guys Most of time iam interest do a programming using C# language,but I got a project for PDA,so I hope to developed it using C language,Iam new to C language and ,what steps i have to do learn C language.Starting from first i think its time wasting,so what is …

Software Development c
Member Avatar for William Hemsworth
0
146
Member Avatar for maxicube

how would I get the install directory of another program, the registry perhaps? (using HLDS as my directory to be found) [URL="http://storefront.steampowered.com/download/hldsupdatetool.exe"](GET HLDS HERE!)[/URL] i fond the key which might be useful. (how would i open it? [CODE][HKEY_CURRENT_USER\Software\Valve\HLServer] "InstallPath"="C:\\hlds" "Full Name"="Half-Life Dedicated Server" "Region"="5" [/CODE]

Software Development c++
Member Avatar for maxicube
0
127
Member Avatar for ddanbe

Busy writing an infix to postfix converter.(I'm a strange guy. I like to do those things from time to time...) I have a class Expression which is in essence : [CODE=csharp] [StructLayout(LayoutKind.Explicit)] //in c/c++ this is a union public struct Valoper { [FieldOffset(0)] public int Value; [FieldOffset(0)] public Oper Operand; …

Software Development queue
Member Avatar for ddanbe
0
249
Member Avatar for reyuma2002

Please guys i need help with this. I am conversant with VB but i don't understand how am going to interrellate the Mobile phone and the Server to enable them to communicate. Can someone explain to me what steps i should take i don't mind if i could see a …

Software Development visual-basic
Member Avatar for wire2air
0
317
Member Avatar for payne_99

Hello! I'm trying to execute a simple script in the command line, and for some reason, it's not working. Shouldn't it be as simple as this? [code]python myscript.py[/code] And yet when I try that, I get "Syntax Error: invalid syntax" I've googled around, read through the docs--I have a feeling …

Software Development python
Member Avatar for lllllIllIlllI
0
126
Member Avatar for Alexpap

Hello all, i have a problem and im in need of your help... I have a treeview with 2 parent Nodes and in the parent nodes there are some node: [ICODE]Members New Search Administration Groups Photo Location[/ICODE] In all nodes there is a checkbox for a spesific reason, like this: …

Software Development vb.net
Member Avatar for Ezzaral
0
195
Member Avatar for sfrider0

I'm trying to get this code from the microsoft msdn site working and having problems. [code] // Navigates to the URL in the address box when // the ENTER key is pressed while the ToolStripTextBox has focus. private void toolStripTextBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Navigate(toolStripTextBox1.Text); …

Software Development
Member Avatar for sfrider0
0
400
Member Avatar for kyosuke0

whenever the clearMemory function is called i get a segmentation fault and i can not figure out whats wrong. The function is supposed to delete all pointers. The function brings in the pointer to the linked list by reference. The nodes in the list are structs i named bus that …

Software Development c++ linked-list
Member Avatar for rajenpandit
0
137
Member Avatar for realone

pls help job at stake!! An image is stored into database using delphi with a back end Access.This images were imported into sql server.Now i want to display the image using vb6.Please help with the code

Software Development delphi sql visual-basic
Member Avatar for VIeditorlover
0
541
Member Avatar for ninjaimp

i have a web browser control which i have added a status strip. I can get the status strip to display the clicked link fine but i would like it to display the link target when the mouse is hover over the link but i cannot get it to work! …

Software Development vb.net web-browser
0
121
Member Avatar for dusse

Hello guys.. I´m trying to do something like the code below .. [code=c] struct node{ int a; char *s; }; void main() { node *x; int sMAX = 3; int nodeMAX = 10; x = (node*)malloc((sizeof(int)+sizeof(char)*sMAX)*nodeMAX); ... } [/code] in other words I want to alloc dynamically the number of …

Software Development c
Member Avatar for Narue
0
218

The End.