132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ca67

Language : C++ I have had a bit of confusion with overloading the script operator. Not really sure on how to incorporate the operator. I am almost finished coding a program assignment except for this problem with the srcipt operator. The script operator info taken directly from assignment instructions is …

Software Development c++
Member Avatar for Dave Sinkula
0
121
Member Avatar for nazgulsecret

hi...can anyony help me how to access a existing textbox using threading..i need it for auto complete functionality...... plz S.O.S.......

Software Development vb.net
Member Avatar for kvprajapati
0
74
Member Avatar for perly

Hi, I need help to make a perl program work. The program accepts an input (reaction) and then search for the input in a file and then displays the reaction on the same line. Input file - file.txt (A large file with no header and in the following format): A1_HTTT24 …

Software Development perl
Member Avatar for perly
0
127
Member Avatar for ttunstall07

i am trying to work on an assignment that asks me to prompt the user for a name of one of three employees, then prompt for the work hours of 6 days. each of these will be stored in a separate array. then i am to implement the following rules …

Software Development c++
Member Avatar for jonsca
0
80
Member Avatar for jtodd

Hey everyone! I am a newbie to java and I have what is probably a simple question. I have add a program I am working on to randomly display random numbers from 104, 105, 106, and 108. I have gone about this by creating an array and storing the numbers …

Software Development java
Member Avatar for jtodd
0
128
Member Avatar for keny2020j

My code is : /* Database.java*/ [code] import java.sql.*; import java.awt.*; import javax.swing.*; public class Database{ private static Connection con = null; public static Statement statement = null; public static void makeConnection() { JOptionPane.showMessageDialog(null, "database"); String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url = "jdbc:odbc:lib"; String username = ""; String password = …

Software Development java java-swing sql
Member Avatar for keny2020j
0
217
Member Avatar for mebob

Hi, i am doing my mom's c++ for engineering class, and doing a project for her, i noticed something in the extra credit section of her project directions. it says to add graphics to represent what variables the users are entering. in this one, it is about beam deflection, and …

Software Development c++ engineering
Member Avatar for mebob
0
120
Member Avatar for gringofandingo

Please help me finish my project. I am a novice and completely new to python and hopelessly lost. I hope somebody will be able to help me. Here is my problem, I am working on a project for class and I am stuck. My program is supposed to be simple, …

Software Development python
Member Avatar for redyugi
0
134
Member Avatar for whoamineo89

so far the address book is compiling and takes in entries and runs all the other functions but the search and delete methods don't work even though I have the entry entered in a file and the code should use that very same file to display the names etc if …

Software Development c
Member Avatar for donelliewhyte
0
191
Member Avatar for Bigojac2000

Each of the two food stores, A and B, of the same company has a list of products that are available in its stock. We assume that the standard input contains NA records for food store A and NB records for food store B. Each record describes the code of …

Software Development c c# c++ storage
Member Avatar for NathanOliver
0
190
Member Avatar for Feenix45

Can someone guide me how to make menu in python please? [url]http://www.daniweb.com/forums/post693793.html#post693793[/url] This is a previous post of what sort of menu i need. Can someone just give me a start please. Cheers

Software Development python
Member Avatar for Bart_uam
0
2K
Member Avatar for IwanRyoma

[CODE]#include <mega8535.h> #include <delay.h> #define clk DDRA.0 #define dio DDRA.1 #define cs DDRA.2 #define diopin PINA.1 #define clkx PORTA.0 #define diox PORTA.1 #define csx PORTA.2 #define OUTPUT 1 #define INPUT 0 #define LOW 0 #define HIGH 1 // Standard Input/Output functions #include <stdio.h> // Alphanumeric LCD Module functions #asm .equ …

Software Development c
Member Avatar for Nick Evan
0
147
Member Avatar for marcux

Hi all! I have an app using pygtk and in a separate thread I have a server responding to specific calls on port 1120. Everything works fine except one thing: When I exit my app, everything shuts own properly but if I start up my app again right after (and …

Software Development client-server python
Member Avatar for marcux
0
2K
Member Avatar for silvert122

i am trying to write this program and i have no clue how to do it. Could someone help me please. thank you! a) The program implements insertion sort, merge sort, quick sort, and counting sort as subprograms or classes; b) The program reads input from a data file specified …

Software Development algorithm c++
Member Avatar for Nick Evan
0
103
Member Avatar for sidhu51

Hi all, am working in vb6. I have a situation wherein i have to open many files together and keep it in a folder and then start runnin one by one continously without any break. i have the codes for opening a single file and runnin it... how can i …

Software Development visual-basic
Member Avatar for WaltP
0
97
Member Avatar for steven1285

i need to write a C++ program that reads a sequence of integers and saves it into an array. Your program has to check whether each integer n in the sequence is perfect using a brute force approach. That is, your program should use all possible divisors of n from …

Software Development c++
Member Avatar for Fbody
0
85
Member Avatar for Bigojac2000

A positive integer number n is said to be perfect if it is equal to the sum of its proper divisors. In other words, n is equal to the sum of its positive divisors excluding itself. For example, 6 and 28 are perfect numbers. Indeed, we have: 6 = 1 …

Software Development c c# c++
Member Avatar for strmstn
0
282
Member Avatar for Alex_

I'm trying to do the following: [code=java] private void butonActionPerformed(java.awt.event.ActionEvent evt) { buton.setLocation(500, 500); } [/code] but it doesn't do anything. Please help.

Software Development java
Member Avatar for Alex_
0
172
Member Avatar for iamvish

Hi all, How to find free physical memory... I am using new operator to allocate memory.. I tried GlobalMemoryStatus (windows api) to analyse the current free memory. new is giving exception still GlobalMemoryStatus shows sufficient free memory.. I am using visual studio 2005 for development. and I want to avoid …

Software Development api c++ visual-studio windows-api
Member Avatar for WaltP
0
86
Member Avatar for chinmayi

Hi Friends, I have a small doubt about pointers, One of the Advantage of the Pointers is "FAST ACCESS" comparitively to variables My doubt is How can it be? a Pointer stores a variables address, whenever it accessed it goes to that particular address and retrives the value... Similarly,a variable …

Software Development c
Member Avatar for strmstn
0
131
Member Avatar for clutchkiller

[code] #include <iostream> using namespace std; template <typename T> T total(T numValues) { } int main() { cin.ignore(); cin.get(); return 0; } [/code] Write a template for a function called total. The function should keep a running total of values entered by the user, then return the total. The argument …

Software Development c++
Member Avatar for clutchkiller
0
945
Member Avatar for sikeufoo

I am a newbie to c++... Today I was handed a assignment on "array"...While working on this...I've met plenty of errors... I wonder where did my steps gone wrong... May anyone out there borrow me a helping hand?? [CODE]#include <iostream> #include <iomanip> using namespace std; float calpricetopay(int[5],float[5]); // function declaration …

Software Development c++ ios
Member Avatar for sikeufoo
0
109
Member Avatar for tajendra

In c++ pre and post operator are used with variables where one need to just increment or decrement value by 1.For incrementing value ++ operator can be used and for decrementing -- operator can be used. Its use is very simple one can easily say ++i or i++, to increment …

Software Development assembly c++ first-post seo storage
0
233
Member Avatar for silvert122

Hello guys, i am trying to write an insertion sort program with any values entered by any users but im getting some weird numbers. could someone help me see what s wrong with my code. this is my code: [code]#include <iostream> using namespace std; int main() { int a,b,c,d,e,f; int …

Software Development c++
Member Avatar for peter_budo
0
123
Member Avatar for youdester

Here's my submission to sort a string of characters in numeric, then lowercase, then uppercase. It may be useful, it may be not. [code] Function SortStringUpperLower(ByVal strString As String) As String Try Dim arrString() As Char = Nothing Dim strReturn As String = String.Empty Dim chrPrevious As Char = CChar(String.Empty) …

Software Development vb.net
Member Avatar for apegram
0
150
Member Avatar for mattloto

I am preparing for a programming competition soon and for one of the sample problems one line of input is the length of the list of numbers and the second line is the actual numbers. this is what i have: void main() { int num; cin >> num; int items[num]; …

Software Development c++
Member Avatar for Narue
0
126
Member Avatar for achiman

Hey I am trying to create a java chat server but I am get an exception: exception in thread main java.lang.arrayindexoutofboundsexception 0 I know it means the index is out of bound but can any please tell me what I am doing wrong, I want to assign the port = …

Software Development java
Member Avatar for jwenting
0
171
Member Avatar for jch02140

Hi, I am still new to C++ and I am having a little trouble compiling the following code, and couldn't figure out what went wrong: [CODE]#include <iostream.h> #include <string.h> using namespace std; float x = 5.0f; int _65Num = 65; int mian() { string str = "Hello World!"; cout << …

Software Development c++ first-post
Member Avatar for Fbody
0
180
Member Avatar for bhp2005

Having a problem setting user input to a dynamic array. It worked with a static array, but now I'm having some kind of pointer issue. The user sets the dimensions and enters in a number of characters, which should be set to the array 'gameboard'. it's just setting jibberish though. …

Software Development c++
Member Avatar for bhp2005
0
171
Member Avatar for john_prince

Hi, I've this script that takes care of picking phone number in standard format - xxx-xxxx, further i would like it to pick phonenumber even without hypen - xxxxxxx. How can i do that? [CODE] foreach $number (@numbers) { if ($number =~ m/(^\d{3}-\d{4}$)/) { push @results, $number; } } [/CODE] …

Software Development perl
Member Avatar for jcubic
0
88
Member Avatar for fox64

So are there any good piping & threading tutorials out there?

Software Development c++
Member Avatar for fox64
0
32
Member Avatar for squarey

Hi Guys I was doing some reading up on data structures to refresh my memory when I came across the following: pmovie->title *pmovie.title source: [url]http://www.cplusplus.com/doc/tutorial/structures/[/url] pmovie is pointing to an instant of a struct. I know the arrow operator is a dereference operator for objects and I thought *pmovie.title was …

Software Development c++
Member Avatar for Fbody
0
152
Member Avatar for iamvish

Hi all, How to find the free physical memory... actually i want to avoid the exception from new operator.. i have used the [B]GlobalMemoryStatus[/B] a windows api for this but new is giving exception still more memory available than i am allocating. I am using visual studio 2005 Please help …

Software Development api c++ visual-studio windows-api
Member Avatar for Ancient Dragon
0
169
Member Avatar for richman0829

This seems simple, but it's not working. There IS a text file in the same directory, but it's not being opened (and with the ios::in | ios::out, it should open even if it doesn't exist). I also ran into trouble trying to use infile.fail, which is why I used !infile. …

Software Development c++ file-stream file-system ios
Member Avatar for richman0829
0
159
Member Avatar for Lala2010

I have written a Python program that takes information from the user at the command line, and then saves this data in a PostgreSQL database. Now I want to wrap a GUI around my program. I am just starting with wxPython and have completed a few tutorials, but still can't …

Software Development gui postgresql python
Member Avatar for vegaseat
0
129
Member Avatar for raul01us

Hello all, I'm trying for several days to learn how to implement a multicolumn DataGridViewComboColumn into my DataGridView. So I have a DataGridView in witch i have a ComboColumn, i need when i dropdown that ComboColum to have multipe column like a gridview or table. I hope that you understand …

Software Development
Member Avatar for raul01us
0
117
Member Avatar for DCvonB

Hello, I am trying to write a function such as: [CODE] printValues(int nInts, int nFloats) ; [/CODE] nInts describes the variable number of int values passed, and nFloats describes the variable number of float values passed. Normally I would think of doing something like: [CODE] printValues(int num1, int num2, float …

Software Development c
Member Avatar for Narue
0
89
Member Avatar for Rageagainst20

I am trying to delete a file when my program draws itself (Using Visual Studio 2008). Currently using this method [CODE] public frmMainMenu() { InitializeComponent(); File.Delete("\\Program Files\\smartdeviceproject1\\SendXML\\1.txt"); }[/CODE] The path for the file is "\Program Files\smartdeviceproject1\SendXML\1.txt" Yet when the program is executed, breakpointing shows that the line is executed (and …

Software Development file-system visual-studio
Member Avatar for Geekitygeek
0
187
Member Avatar for aravinda reddy

I need to match the content on web. For example consider I have one sample code,if i submit that code it should search on web and display the website url where that code exists. I need the code in asp.net and c#. anyone if knows how to do this Plz …

Software Development asp.net
Member Avatar for Geekitygeek
0
100
Member Avatar for ilupilu

can anyone tell how to write in core java using command line arguments : a) to print prime numbers from 1 to n b) to calculate the length of input string c) to find whether the number is odd or even d) to convert dollar in rupees e) to accept …

Software Development java
Member Avatar for javaAddict
0
83
Member Avatar for Mackeny

I have two tables 1) tblRequests and 2.) tblMainTags. The Fields in tblRequests are Tag_Request_No, Employee_ID , Accepted, Accepted_Date, and Accepted_Time. The Fields in tblMaintags are Tag_Request_No, Tag_ID, Completed, ... The fields 'Accepted' and 'Completed' are set to YES/NO. I want to display in a datagridview the two tables joined …

Software Development dataset vb.net
Member Avatar for Mackeny
0
2K
Member Avatar for ehsun7b

Hi I'm using [B]NetBeans + GCC[/B] in Linux and also [B]NetBeans + MinGW[/B] in Windows. I need to run an OS Command e.g.: [ICODE]java -jar myjar.jar[/ICODE] I prefer [B]not[/B] to have the terminal/cmd window. It works fine in Linux, but in windows, it ends up in opening a [B]cmd[/B] window …

Software Development c++ java operating-system
Member Avatar for Nick Evan
0
215
Member Avatar for alexRivera

i've been having trouble just figuring out the merging part of the code. here's the main. everything works except for the merge part that is at the end of the code. [CODE] main() { HeapSort heap1; HeapSort heap2; int one, two; int x = 0; int number1,number2; cout<< " Enter …

Software Development c++
Member Avatar for GrubSchumi
0
116
Member Avatar for marcelomg

Hello, I'm stuck with this code and I can't figure out how to make it work. I need to get the Sum of Odd numbers from an array. For some reason it returns 0. I'm new to programming, so any help would be appreciated, thanks. Here it is: [CODE]#include <iostream> …

Software Development c++
Member Avatar for syd919
0
208
Member Avatar for london-G

hi! I am quite puzzled here. I have a program inwhich when the user clicks on the command button, a random line should appear but only once. I am storing each line with different variables. Right now i have the random line coming up but it is repeating itself. For …

Software Development vb.net
Member Avatar for kvprajapati
0
313
Member Avatar for Alex_is

This is the code i have for my stack program: public class MyStack { private int top; private int[] store; Stack(int capacity) { if (capacity <= 0) throw new IllegalArgumentException("Stack's capacity must be positive"); store = new int[capacity]; top = -1; } void push(int value) { if (top == store.length) …

Software Development java storage
Member Avatar for jothibasu
0
172
Member Avatar for phoenix911

How would i be able to reference to a file in my resources.. lets say i got a default template.dotx (word 07 template) in my resource folder... how would i be able to point to it when i publish my app? thanx Phoenix911

Software Development
Member Avatar for phoenix911
0
96
Member Avatar for Acute

Hi everyone, i'm new in c#. Is it possible to express the UI form as a 2D matrix? how can i do it? i have some object which must make moves from commands that user gives. For ex.: commands "d5; r4; u1;" mean: 5 steps down, 4 steps right and …

Software Development
Member Avatar for Geekitygeek
0
61
Member Avatar for fayyaz

Dear friends I have some picture stored to SQL Table as Image Field. but I Don't know what is the format of this pictures they may be JPG or BMP format. for retrieving this images I mast know what is the format of each stored Picture. is any method to …

Software Development pascal
Member Avatar for pritaeas
0
95
Member Avatar for ctsarsh

i need to convert this java code to java applet code here in my java code: import java.io.*; import java.util.*; public class fyp { static int t_value=2; static int no_of_parameter = 0; String binary_setting; static int data[]; static ArrayList<String> constraint = new ArrayList<String>(); static ArrayList<String> seeding = new ArrayList<String>(); static …

Software Development java java-swing
Member Avatar for masijade
0
183

The End.