132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for g_loughnan

[code=c] #include <stdio.h> #include <stdlib.h> #include <math.h> void estimate(float data[], int n, int m, float *xms, float d[]) int main(void) { double data[] = { //Loads(~1000) of data vavues between +1 and -1. Ex: -0.15709, -0.25413,... }; float xms[m]; float float d[m]; for (i=0;i<m;i++) { //Function call here to fill …

Software Development c
Member Avatar for g_loughnan
0
97
Member Avatar for Time Indicator

Hi, I have used oledb connection with sql to populate one of my listbox with data from the database. However, I have to remove. on click of a button. the information from a specific table called 'Salary'. The problem that I am having is that when I tried to remove …

Software Development vb.net
Member Avatar for Time Indicator
0
102
Member Avatar for jimJohnson

For some reason when I compile my code the hypotenuse returns to just 0 and it returns an integer and not a double and was wanting to know if anyone had any suggestions........ [code=c++] #include <iostream> #include <cmath> using namespace std; double Calculate_Hypotenuse(int length_one, int length_two); int main() { int …

Software Development c++ ios
Member Avatar for gkbush
0
277
Member Avatar for Traicey

I have been trying to figure something out ever since I started doing C++, My goal is to code my own game and coming to think of that.... I have read many articles about how U go about on doing that and as far as I have read C++ is …

Software Development c++
Member Avatar for Traicey
0
157
Member Avatar for random7

I have a question about reading array from file. I wrote some array at file like below. file name: xy0.dat [2, 4, 6] [4, 8, 12] ... ... Now, I want to read this array(not string) at my original file. I want to define x0[0] = [2,4,6] and x0[1] = …

Software Development file-system python
Member Avatar for vegaseat
0
2K
Member Avatar for Sroxx

hey im making a database on licnese issuing authority now i want get data retrived frm da database ma access to list boxes but i want data only of the data which i slelect fmr da dtpicker can u plz suggest a code for this thx

Software Development visual-basic
Member Avatar for Sroxx
0
94
Member Avatar for dmkp

Hi I have a quick question, I tried asking on the MSDN forums and they were no help. I am wondering how I may protect my DLL files from being used by other people. By "used" I mean, referenced/imported or whatever into projects and the functions and variables inside used. …

Software Development
Member Avatar for dmkp
0
89
Member Avatar for manidvr

hi.. i am getting an error as"The Program not responding" executing an Vb.net code.... plz send me an solution..

Software Development vb.net
Member Avatar for manidvr
0
26
Member Avatar for thedonshi

Hello everyone, I am making a program which acts like a library system. There are two classes: Book and List. The List class contains all the linked list information; [CODE] struct ListNode { ListItemType item; ListNode *Next; };[/CODE] Now, my problem is in the Book class file (Book.cc). I have …

Software Development c++ linked-list
Member Avatar for Narue
0
132
Member Avatar for sjgriffiths

hello I have the following [code=c] while(fgets(b2b_rates_address,1000,in_fp) != NULL ) { strcpy(rates_details[j].ig1, strtok(b2b_rates_address,",")); printf("rates_details[j].ig7 = %s\n",rates_details[j].ig1 ); strcpy(rates_details[j].ig2,strtok(NULL,",")); printf("rates_details[j].ig7 = %s\n",rates_details[j].ig2 ); strcpy(rates_details[j].ig3,strtok(NULL,",")); printf("rates_details[j].ig7 = %s\n",rates_details[j].ig3 ); j++; } [/code] The issue i have is this:- It works fine up to field ig3, this is due to the fact that …

Software Development c
Member Avatar for Narue
0
186
Member Avatar for Paul.Esson

After looking at compile errors because I was not overriding this function ( although being convinced that I was) I have a query for all you C++ buffs in the audiance. What does the ^ do in the following line. [CODE] virtual System::Object ^ Clone(void) override; [/CODE] I know this …

Software Development c++
Member Avatar for Traicey
0
164
Member Avatar for cjw3131

im just trying to use the inputted terms in the main function. the error is: [B]hwk6.c:10: error: expected ';', ',' or ')' before '*' token[/B] [code] #include <stdio.h> #include <math.h> int getTerms(void); int term1; int term2; int term3; int term4; int term5; int main(int term1*, int term2*, int term3*, int …

Software Development c
Member Avatar for Ancient Dragon
0
93
Member Avatar for StephNicolaou

I'm trying to show a dialog message if the user clicks a button and a text field is empty. [code=java] Action listener - if(event.getSource() == cmdSaveSettings) if(txtPlayerOneName.getText().equals(emptyText)) { JOptionPane.showMessageDialog(null, "alert", "Please enter player one's name", JOptionPane.ERROR_MESSAGE); } [/code] Ive add an action to listener to the button and the textfield: …

Software Development java
Member Avatar for masijade
0
213
Member Avatar for sheree

Hello everyone, I am a new memeber, and I need help in c++ code. Actually I had a code that need kd tree data structure in order to find the nearest neighbour, so I found a kd tree that had been written in c++ as class and there is a …

Software Development c++ data-structure
Member Avatar for sheree
0
5K
Member Avatar for jkdil33

Hi, I am using skmmenu in my application I am caught up in a problem 1.The mouse pointer is like "select text" style when i move over the menus and sub menus 3.How to activate click event when i click on the submenus 2.the submenus are going behind the panel …

Software Development vb.net
Member Avatar for jkdil33
0
106
Member Avatar for Ryano24

Can anyone tell me what this code does. Private Sub MysteryCode_Click(ByVal sender As _ System.Object, ByVal e As System.EventArgs) _ Handles MysteryCode.Click ' Determines MYSTERVALUE base on number entered by user Dim Y As Integer, X As Integer, MYSTERYVALUE As Integer ' initialization phase X = 1 'prepare to loop …

Software Development visual-basic
Member Avatar for Jx_Man
0
91
Member Avatar for sammy_eyison

Hello Jx_man, I have been trying to download the zip file you sent to Neji on [B]Get all users[/B], but it appears to be corrupted. I will be grateful if you could resend it to me. Thanks in advance.

Software Development visual-basic
Member Avatar for Jx_Man
0
144
Member Avatar for niitian

hello everybody, i'm niitian:) have been familiar with this community for quite some time, it has help me solve quite some problems, though now i think it's time i join too:) i'm a beginner at c++, don't really think it's way hard, but i do have alot of unanswered questions. …

Software Development c++
Member Avatar for Ancient Dragon
0
64
Member Avatar for kahaj

I'm trying to get the addButton to work correctly in this code, but it keeps only outputing the first number entered, not the sum of the numbers. What am I missing here? [code] Public Class ArithmeticCalculatorForm Dim numCounter As Double = 0 Private Sub enterButton_Click(ByVal sender As System.Object, ByVal e …

Software Development vb.net
Member Avatar for Nick Evan
0
124
Member Avatar for Thew

Hi, I don't know if you know something about TALWinInteFTPClient, but maybe it doesn't depend on it. I am using this class to access to the ftp server. I connect, then I check the connection and everything is good. So I need to get the tree of files and directories …

Software Development pascal web-server
Member Avatar for Thew
0
161
Member Avatar for Thew

Hello, I want to put some files together, but I have problem, when I'm trying to write data into opened file from another file. Structure of compiled file: - Head: total count of files in file - Sizes: names and the sizes of the files - File Streams so I …

Software Development data-structure pascal
Member Avatar for Thew
0
2K
Member Avatar for Sugarskull

/* DriverBuggy.java Source Name: DriverBuggy.java Date Written: 12/27/06 Written By: Annette Lege Revised By: Purpose: To identify and fix common syntax errors and one logic error in a Java program. */ import java.io.*; public class DriverBuggy { public static void main(String args[]) throws IOException { Buggy app; app = new …

Software Development java
Member Avatar for masijade
0
392
Member Avatar for Majestics

I have a string , i want to give it a blink effect ... is there any specific function for it .

Software Development c
Member Avatar for arpit_yadav
0
143
Member Avatar for Spring_1000

Hey, I've been stuck on something all day, when I first looked at it I thought it was going to be relatively easy. I want to be able to let the user return to a menu whenever they press enter without typing anything else. I've looked on google, but I …

Software Development c
Member Avatar for Spring_1000
0
250
Member Avatar for curt1203

Just when i thought this class could not get any harder i get this assignment. The last few lectures i have watched in my class on pointers have gotten me totally confused. Now i have this assignment due in 6 days that i seriously do not even know how to …

Software Development c++
Member Avatar for sinkingships7
0
139
Member Avatar for Reiko

Hi im currently having a problem with taking data from a field in a database and then using it within the form, when supplied with a telephone number by inputting in to a text box, the number needs to be checked against the database and then if a record matches …

Member Avatar for AUGXIS
0
118
Member Avatar for strus_jan

#!/opt/bin/perl $[ = 1; # set array base to 1 $, = ' '; # set output field separator $\ = "\n"; # set output record separator $FS = ';'; line: while (<>) { chomp; # strip record separator @Fld = split(/[;\n]/, $_, 9999); $id = $Fld[1]; if ($. == …

Software Development perl
Member Avatar for strus_jan
0
98
Member Avatar for Waseemn

Hello All, Its me again with my quirky questions. I am writing a program for homework and the idea is to sort the top 3 runners by their finishing time. Also a requirement of the homework is to gather the names of the runners along side their times. The user …

Software Development c++
Member Avatar for Ancient Dragon
0
95
Member Avatar for ccrdude03

I have all the way to this part of displaying the board and now I need help on how to play it. I don't want someone to just give me the code, I want to learn what to do. Thanks very much. p.s.= using array [CODE]#include <iostream> using namespace std; …

Software Development c++
Member Avatar for WaltP
0
84
Member Avatar for Zanziff

Hello everyone, I am VERY new to programming. I have downloaded and installed the Dev-C++ compiler and I am using it with the C++ for dummies book and when I try to compile my simple "This is my computer talking" program, I come up with 70 library based errors. Is …

Software Development c++
Member Avatar for VernonDozier
0
127
Member Avatar for Nemes

Hi, I have somewhat of a mysterious crash on my program. As far as myself and my primitive knowledge are concerned, this litterally does not make any sense at all, but maybe you guys can make some sense out of it. Basically, inside a loop, I modify a float variable …

Software Development c
Member Avatar for Diode
0
2K
Member Avatar for Diode

I'm trying to figure out how to parse options such as -h out of the arguments passed on the command line when the program is called. Here is my code so far. I compiled it with gcc -Wall -o options options.c and got no warnings or errors. Although, when I …

Software Development c ubuntu
Member Avatar for Diode
0
102
Member Avatar for V.Rajagopalan

hi, I developed one application in visual basic 6.0 with the backend of Sql server 2000. I want this application can be run in all client level. what i did is i installed windows 2003 server and sql server 2000 in one system and i copied the exe file of …

Member Avatar for fkmercado
0
76
Member Avatar for AUGXIS

help me.i woul like to make my access 2003 database be network database.im using vb6 as front end.thanks

Software Development visual-basic
Member Avatar for AUGXIS
0
84
Member Avatar for Expotential

I am trying to remove a list item in a listbox... the problem is I have to remove it by the what is visible to the user the program doesnt keep record of the index number in the listbox so we have the following in a list box Bob Fred …

Software Development visual-basic
Member Avatar for Expotential
0
187
Member Avatar for Barbarrosa

Can someone please explain to me how to use CopyFromScreen. I'm trying to cut out a piece of the screenshot and then convert to tiff using the encoder tiffbitmapencoder. This will later be passed on to the OCR MODI function to get the text from the image. However, as always, …

Software Development
0
101
Member Avatar for Jennifer84

I have a richTextBox where I am trying to replace all strings that look like this: "stringvec[11][12]". I have this for loop so far that would work if the string always had the same lentgh but the thing is that I will not know if the string also can look …

Software Development c++
Member Avatar for Jennifer84
0
96
Member Avatar for aot

I'd like to be able to make a slider widget without the knob that users can click and drag -- that is, I want the user to simply click somewhere on an empty slider and *then* have the knob appear where clicked. Is this possible with either Tkinter or wxPython? …

Software Development python tkinter
Member Avatar for Ene Uran
0
266
Member Avatar for knight fyre

Why doesn't it work when I enter "NO"? [CODE=c] do{ printf("\n\nDo you wish to continue (yes or no): "); uppercase(fgets(progress, sizeof progress, stdin)); fflush(stdin); ((strcmp(progress,"YES")!= 0 && strcmp(progress,"NO")!= 0)?printf("\nOnly 'yes' or 'no' will be accepted!\n"):printf("\n")); }while(strcmp(progress,"YES")!= 0 && strcmp(progress,"NO")!= 0);[/CODE]

Software Development c
Member Avatar for jephthah
0
128
Member Avatar for Lensva

[code=c++] #include <iostream> using namespace std; class client { private: int choice; int age; int height; int weight; char *name; public: void menu(); void setStats(); void task(); }; //======================================================== void client::menu() { cout<< "MENU \n"; cout<< "1. enter data \n"; cout<< "2. view data \n"; cout<< "3. quit \n"; int …

Software Development c++
Member Avatar for VernonDozier
0
116
Member Avatar for anbuninja

im just starting with If, else, true statements and im stuck. # include <iostream> # include <cmath> # include <iomanip> using namespace std; int main() { int score, days; bool Y = true; cout <<"Enter an assignment score and type 'Y' if it was late: "; cin >> score >> …

Software Development c++
Member Avatar for Sky Diploma
0
113
Member Avatar for 1337455 10534

I need to convert .docx files to .doc (on Linux and Windows). I'm planning to use the zip mod to access all of the internal XML documents. Then I'll the /word/document.xml and I need to parse it so that it will read all of the text in the tags, place …

Software Development python xml
Member Avatar for 1337455 10534
0
140
Member Avatar for mehmedovic

hello i need to create this thing its for my home work and i have no time to do it because i am taking 6 college classes and when i tried to do it i had no idea so i reread the chapter which it was suppose to be on …

Software Development java user-interface
Member Avatar for jasimp
0
156
Member Avatar for StephNicolaou

I have had to repaint a couple of times because of a moving shape I have added to my program whenever the mouse is clicked. I also have a moving shape that follows the mouse over a grid as well which doesn't help a lot, could you please tell me …

Software Development java
Member Avatar for StephNicolaou
0
238
Member Avatar for Dell XPS

I need your help. I havee the destination path for some pictures stored in a txt file and also have their descriptions stored. What i am trying to do is put the pictures in a word file and add their description below the picture. Then i need to print the …

Software Development vb.net
Member Avatar for bwkeller
0
260
Member Avatar for look@me

i have a small problem in my ass and i dont know how to solve it the problem is: [B]This problem is a game where n objects are arranged in a circle and every mth object is deleted until 1 object is left. The original problem is said to derive …

Software Development c++
Member Avatar for VernonDozier
0
108
Member Avatar for Run.[it]

Weve been given this example to work with and Im not sure about the line 9 [B][I]char cont = 'n';[/I][/B] - is there even a need for it? The rest of the program I understand. [code=c++] #include <iostream> #include <stdio.h> using namespace std; int main() { int no = 1; …

Software Development c++
Member Avatar for Run.[it]
0
151
Member Avatar for Parsu7

Is it necessary to write a corresponding servlet for each JSP page in case of MVC Architecture?

Software Development java
Member Avatar for Parsu7
0
105
Member Avatar for sfurlow2

We're supposed to write a function that calculates both the x and y coordinates of the upper left corner of the square that just contains a circle, given the x and y coordinates of the center of the circle, and the radius of the circle. Return the x and y …

Software Development c++
Member Avatar for VernonDozier
0
124
Member Avatar for lucym

Hello, I want to add the 'did you mean' feature (like on Google) on my shareware site, where a lot of users have mistypes, and they get 0 results... so they exit the site very fast. Do you have any idea how I could implement such a thing? Does it …

Software Development python
Member Avatar for BearofNH
0
111

The End.