132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aa361

Hello, I am working on a project which aims to compare an image to from a database of images and find out similar looking images. I am working with a DLL file which returns unique hash for each image. The hash is an array of 768 bytes. (byte[]) My problem …

Software Development
Member Avatar for nargis.hemani
0
4K
Member Avatar for Andy90

Hello all, I am learning new stuff in c#! I want to know how to increase computer sound when user hits a button. The user will hit the key only once, the volume should increase from 1% to 100% (the increase in volume should not be sudden, it should be …

Software Development
Member Avatar for nmaillet
0
149
Member Avatar for khalidshakar

What is the way that need to be implemented in java to make a server broadcasts a voice to multiple clients, instead of broadcast voice only to one client? for example I am doing a server which can broadcast voice to multiple clients at the same time, now my server …

Software Development java multithreading
Member Avatar for khalidshakar
0
533
Member Avatar for klharding2

So in my program I have to use specific values obtained from an inputfile in different functions, and I couldn't figure out a good way to do this. I don't want to have to have the user input the file name for every function. I tried it this way, but …

Software Development c++
Member Avatar for ktsangop
0
186
Member Avatar for gcclinux

Gents as you can see I have done great progress in getting the last line and the line beforelast working and spliting but I am stuck now as I need to the beforethat (3rd) line from last also included and I can't figure it out, everything i do fails to …

Software Development java
Member Avatar for Taywin
0
265
Member Avatar for kayceedude

Write a C program that roll a single six-sided die 10 times. Produce a random number from 1 through 6 as shown in the following frequency distribution. (Hint: use an array of counter)

Software Development c++
Member Avatar for kayceedude
0
95
Member Avatar for Julie29

Hi, can anybody help me with this? I am doing an Introduction to Programming module using Java and am stuck at this question. Write a program which reads in a username and a password, and expects the username to be "brian" and the password to be "spam". The program should …

Software Development java
Member Avatar for JamesCherrill
0
7K
Member Avatar for slimergan

Hi, I am doing a project on creating a traffic simulator for a particular road junction in java. I am looking for ideas on how I would go about recreating the visual of the junction in which I can have moving cars on. Would I use Graph with nodes or …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for Tekito

I am new to Visual Basic 6 Class Modules and am having difficulty constructing a certain class. First off, I created a simple class, which is basically an array with some basic properties (Sum, etc). Next off, I want to create another class, which has these arrays as properties. As …

Software Development visual-basic
Member Avatar for MrZerocaL
0
3K
Member Avatar for OsaidAz

so I have a 2D arry with defaul value 0, and what I want to do is to accept a value from a user to change 0s to 1s depending on the accepted value. for example: we have an arry like this 0000 0000 0000 0000 and the user enters …

Software Development java
Member Avatar for OsaidAz
0
146
Member Avatar for randmateweb

Recently I learnt java as a crash course in a private institue they covered me core and advanced core concepts in java for the version 1.6. Since the lastest version is java 1.7, so which book I should follow for my further improvements to become an ideal Java programmer.

Software Development java
Member Avatar for JamesCherrill
0
141
Member Avatar for abinaya.lingam

hi i need to convert my comma seperated text file in to a two dimensional array and i should be able to access each element in that array....i tried so many programs based on read line and split functions but i didn't get the proper output....please help me to do …

Software Development java
Member Avatar for JamesCherrill
0
367
Member Avatar for jontennyeah

i have a combobox that contains the items 0001,0002,0003, etc. i have a listview with 3 columns namely ID, Name , Age. I want to do is when i select the ID "0001" in the combobox, it will display the name and the age in the textbox1 and textbox2 that …

Software Development display listview vb.net
Member Avatar for Reverend Jim
0
186
Member Avatar for rahul.ch

class Account { Long accNum, pwd} public class Banker { public static void main(String r[]) { new Banker().go(); // do more stuff } void go() { Account a1 = new Account(); a1.accNum = new Long("1024"); Account a2 = a1; Account a3 = a2; a3.pwd = a1.accNum.longValue(); a2.pwd = 4455L; } …

Software Development java
Member Avatar for rahul.ch
0
235
Member Avatar for akiller47

Hi, Im trying to figure out how to display a number from an array where it has been chosen by a random number. I have got an array with 10 different numbers (always different when program is ran). Each index is added with the previous index number So lets say …

Software Development c++
Member Avatar for kayceedude
0
294
Member Avatar for rahul.ch

<? super Animal> means animal or it's superclass only. Then why inside the method it's allowing to add Dog object even though it's a subclass of Animal? This program compiles and runs! import java.util.*; class Cat {} class Animal{Animal() {System.out.println("Animal constructor");}} class Dog extends Animal{Dog() {System.out.println("Dog constructor");}} public class GenericDemo5 …

Software Development java oop
Member Avatar for rahul.ch
0
338
Member Avatar for Cameronsmith63

Damn, this is so much easier in a form...Anyone know how to export from a DataSet to Csv file in a console application? string sp = "SLA2Day"; var outCsvFile = @"C:\Download Report Sheets\file.txt"; SqlCommand spcmd = new SqlCommand(sp, thisConnection); spcmd.CommandType = CommandType.StoredProcedure; DataSet dsData = new DataSet(); DataTable dt = …

Software Development dataset
Member Avatar for NanaYee
0
155
Member Avatar for NewGuy2Prog

So i am seriously in need of help from someone or everyone on improving my program and any corrections if needed. I have listed my codes below and i am hoping to receive input, suggestions, corrections, and advice. Please remember, i am new to programming so please for those of …

Software Development java queue
Member Avatar for JamesCherrill
0
175
Member Avatar for Darshan5

Can anyone tell me how to use Java Keylistener to add validations in my java gui form?? eg. I have a textfield. I want to enter only alphabets in it. I dont want any numerics. So when a user tries to type a numeric value in it, I want to …

Software Development gui java
Member Avatar for JamesCherrill
0
189
Member Avatar for Albino
Member Avatar for ownedbynothing

this is Sudoku.java this is the main class. Reminder does the time keeping, the SudokuBoardDisplay displays the board and draws images. The one who handles the logic is the SudokuModel How do I make the images clickable and do something. how to display the remaining time as JLabel ....? i …

Software Development gui image java java-swing
Member Avatar for mKorbel
0
600
Member Avatar for ShEeRMiLiTaNt

Hello I am trying to allocate a dynamic array of length that the user inputs. I have a function to this for me but it doesn't allocate the number that I want it to allocate. For example, when I input one it gives me 7 digits... heres the code: int* …

Software Development c++
Member Avatar for ShEeRMiLiTaNt
0
117
Member Avatar for akosivivas

am i able to delete the text from output window? please answer me..

Software Development java
Member Avatar for dimasalang
0
97
Member Avatar for drj08

overload resolution failed because no accessible 'new' can be called with these arguments.. the error shows at the Dim *dataadapter* As New SqlDataAdapter(sqlCmd, connection) Imports System.Data.SqlClient Public Class Form1 Private Sub BtnGenResult_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnGenResult.Click Dim ConnectionString As String = "Data Source=(local)\SQLEXPRESS; AttachDbFilename=D:\PKBW Batching …

Software Development dataset open-source vb.net
Member Avatar for dimasalang
0
2K
Member Avatar for daino

Does anyone have any experience with PODOFO [Click Here](http://podofo.sourceforge.net/index.html). I've read everything they have to offer and I admit, some of their points are a little advance for me. I'm trying to determine whether PoDoFo can be compiled as part of my c++ application so that my application is standalone. …

Software Development c++ pdf
Member Avatar for daino
0
893
Member Avatar for ranga.seeman

Hi Guys, in vb we can get the week number counting from January. ex Jan 1st is Week 1 and Feb 1st is Week 5 etc by DatePart(DateInterval.WeekOfYear, Now) I need to count the week number from a given date. ex: if set the base to July 1st then July …

Software Development vb.net
Member Avatar for ranga.seeman
0
1K
Member Avatar for rithish

hello iam trying a circular queue in linked list and array there are two questions for me 1.how can circular queue can be implemented in a normal linked list??i think it can be implemented in circular singly linked list right?? 2.if i implement it in array how i will connect …

Software Development c linked-list queue
Member Avatar for WaltP
0
141
Member Avatar for NYCRAVEN

I am new to vb and I have been working on getting my brain around this if condition problem I am having in a windows forms in VB. This part of the project is a form writing back to SQL. I am looking to valdate input in textboxAm before I …

Software Development vb.net
Member Avatar for NYCRAVEN
0
4K
Member Avatar for Kanown

Hello so i have been making a program and decided to start on error checking. I'm asking the user to input a 1 to continue and a 2 to exit simple. I worked the code out for the error checking though when i compiled and ran the program all it …

Software Development c++
Member Avatar for WaltP
0
234
Member Avatar for Albino

Errors: 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'string' : undeclared identifier 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2146: syntax error : missing ';' before identifier 'str' 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'str' : undeclared identifier Code: `string str;` For some reason strings are giving me errors.

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
169
Member Avatar for gulbano

Hey all, can any one tell me the c# code to detect country from an IP address. Thanks in advance

Software Development
Member Avatar for mwatson81
0
138
Member Avatar for chanda gul

Hi!! If any one has the code in c++ to recover deleted files from FAT and NTFS then please post it here. It is to note that i need actual code, not the already made tools. Thanks

Software Development c++
Member Avatar for Ancient Dragon
0
423
Member Avatar for BoulderMen

I am trying to write a funtion to print the contents of a queue using ADT funtions. I composed the following code. It gives me a error of invalid type argument. Need help. int print_queue(QUEUE *queue) { int tempCount; int inputVal; while ((queue_count(queue)) != 0) { tempCount = queue_count(queue); queue_front(queue, …

Software Development c queue
Member Avatar for BoulderMen
0
160
Member Avatar for bdl365

Need help to print grids of letters ..for example ABABA BABAB ABABA BABAB ABABA BABAB so when row and column numbers are the same (r == c) the program prints an A. Any clue as to how I should approach this problem will be appreciated? this is what i got …

Software Development c++
Member Avatar for bdl365
0
199
Member Avatar for bdl365

If i want to print a grid of letters..for example AAAAA BBBBB AAAAA BBBBB AAAAA this is what I got so far. need some clues as to how I should approach the problem? #include <iostream> using namespace std; int main () { int n; cout << endl << "Enter a …

Software Development c++
Member Avatar for bdl365
0
260
Member Avatar for TrustyTony

Here improved example based on MITx course of using the bisection method for root finding.

Software Development python seo
0
519
Member Avatar for RobLockett

I have a class library that is responsible for generating reports. Each report consists of the following: - Header - Body - Footer Some of the reports have the same header / footer. None of the reports have the same body. The body component is generated by taking a parameter …

Software Development
Member Avatar for Momerath
0
158
Member Avatar for hughesadam_87

Hi guys, I've downloaded 2 cached_property implementations from the internet and both did not work correctly for my programs. Does anyone here used a cached_property function that works really well and could share with me?

Software Development python
Member Avatar for hughesadam_87
0
244
Member Avatar for anisha.silva

I have a component TM and it ‘s responsibility is divided to A and B. there is another component query client. Between these component there Is an async communication. I represented the query client and the TM as classes how do I represent the Async communication?

Software Development
Member Avatar for anisha.silva
0
263
Member Avatar for luisvaldes88

A simple project that provides an interface to encrypt and decrypt strings using the next algorithms: - AES - Blowfish - Cast - DES - Idea - Rc2 - Rc4 - Seed The project uses PoCo C++ libraries, they have a nice and easy to use interface for OpenSSL I …

Software Development c++
Member Avatar for WaltP
0
263
Member Avatar for code_r

I'm trying to read from a text file and have any multiple whitespaces between characters become one whitespace. If this how I do it using an array, #include <stdio.h> //Function prototype void modifyspace(char *dest, char *src); int main() { /* Initialize an array of 2000 characters */ char src[2000] = …

Software Development c file-system
Member Avatar for code_r
0
251
Member Avatar for Murphyv10

Howdy guys need help changing , from string to a big decimal for my addition method in my calculator , i understand the problem but not the solution . Any help would be great, thanks. public void add() { BigDecimal oneNumber = model.getDisplay(); BigDecimal twoNumber = model.getDisplay(); BigDecimal result = …

Software Development java
Member Avatar for NormR1
0
196
Member Avatar for utchia

Hi i am trying to write a search function and the question i have is this, when i do something like this comix[0] = new Comic("book title", "Author", "isbn", 454.24F); for (int i = 0; i < comix.length; i++) { Scanner console = new Scanner(System.in Scanner console = new Scanner(System.in); …

Software Development java seo
Member Avatar for Taywin
0
236
Member Avatar for Rami Sohail

hello everyone need help with my program this is a airplane seating program for reservations it's a 2d array of 000 .. and when i take a seat it changs to 1 we have first class supposed to be first 2 rows and rows 3 to 7 are business class, …

Software Development java
Member Avatar for Taywin
0
4K
Member Avatar for parth27987

I was wondering if there is a way to import file names from one specific folder to a text file. for example... my whole music foler. I want to create a text file for all the songs that I have in that folder. Is it possible and if yes how …

Software Development c++ file-system
Member Avatar for parth27987
0
136
Member Avatar for vegaseat

This Python code shows you how to get a current list of currency values (Canadian Dollar = 1.00) via the internet.

Software Development python
Member Avatar for TrustyTony
0
495
Member Avatar for TIM_M_91

Ok So I have two classes that share the same instance variables, the variables have been declared in 'Dog', however I cannot seem to get the instances to work within my other class 'DogChorus'. Therefore what must I do to get the instances to work within 'DogChorus' constructors? The variables …

Software Development oop
Member Avatar for skatamatic
0
247
Member Avatar for Alkajak

I'm fairly new in python. This code is supposed to create an Operand class where the function is take a string like 563b9, split it so that the integer is 563 and the base is 9 and then convert it to decimal. All I have done is split the string …

Software Development ide python
Member Avatar for woooee
0
1K
Member Avatar for pangit

Hi! I am new in vb.net and use it in our game programming. I don't know if this is the same in what they do. Here's the code. Thanks! :) Dim jeepEnemyGallery As New jeepGallery Me.y = CInt(Int((8 * Rnd(1)) + 1)) Select Case y Case 1 To 2 jeepEnemy …

Software Development vb.net
Member Avatar for pangit
0
202
Member Avatar for Maria Jose

Hi. This is my code for creating a calculator gui in assembly language. What I want to do is to click any number from 1-9 and it will show inside the textfield. Unfortunately, I'm still confused on what to do. I hope you can help me with this. Thank you. …

Software Development assembly gui
Member Avatar for untio
0
133

The End.