132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gunnerone

Hi, I am trying to create a simple program thats reads banking information from a text file. The text file is layout out line by line. I know that there is definitley 14 lines for each customer but the amount of accounts the customer has is dependant on the 14th …

Software Development file-system
Member Avatar for ddanbe
0
302
Member Avatar for Joshua Kidd

Hello All, I am trying to figure out how to create a custom Button. I know how to paint an Image in paint shop and add that Image to the Button and Remove the Text, But how do I change the Image Shape and Border? Or is there any possible …

Software Development vb.net
Member Avatar for Joshua Kidd
0
161
Member Avatar for toritza

hello. I am quite new in python so i have a question. I have a csv file in which i have names of 30 cities and their coordinates(lat and long). i want to generate a distance matrix for these cities. How can i do this ?

Software Development matrix-multiplication python
Member Avatar for Gribouillis
0
2K
Member Avatar for MaddTechwf

I'm trying to turn the Maximize & Minimize buttons off on my Child forms but it doesn't seem to be working. I have set the Max and Min on the form to false but that doesn't seem to work. Also, how can I make the child form fill the available …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
174
Member Avatar for jayzee1989

So yeh, I'm kind of new to c :). So, as far as I know, and array initialized to 0 will stay at 0 unless something is stored by some other function or command. so I have and array here(imgSet) that when I tell my program to print out elements …

Software Development c
Member Avatar for jayzee1989
0
146
Member Avatar for sbcro

Hi, I am trying to draw some rectangles by pressing the mouse button and dragging. Each time a new rectangle is being drawn, the previous one disappears. The question is how can I avoid this? I am programming in C. Thanks!

Software Development c
Member Avatar for orwell84
0
187
Member Avatar for tj0101

[CODE]/* Problem 3 Writing User-defined Methods Programmer: Date: March 10,2011 ProgramName:Tuition.java */ import java.io.*; import java.text.DecimalFormat; public class Tuition { public static void main(String[] arg) throws IOException { //declare and construct variable int hours; double fees, rate, tuition; //call methods displayWelcome(); hours = getHours(); rate = getRate(hours); tuition = calcTuition(hours, …

Software Development java
Member Avatar for jon.kiparsky
0
349
Member Avatar for .It.

Hi all, what is the best way to obtain all the possible 3-items groups out of 8 elements (0-7) with repetitions? This would be D'8,3 = 8^3 = 512 groups. I want to save them in an array, like [CODE]unsigned int array[512][3];[/CODE] What is the best approach?

Software Development c
Member Avatar for biswajit_cs07
0
123
Member Avatar for sarge66

I need help with a program for a class. I got all the issues taken care of but this one: error C3861: 'menu': identifier not found My program code is (I know it stupid but I can't see it) [CODE]#include <iostream> using namespace std; int main ( ) { int …

Software Development c++
Member Avatar for Ancient Dragon
0
256
Member Avatar for newgeekintown

Hello guys, I am doing my final year project on data mining using the privacy preserving techniques of genetic algorithm. I am struck on how to implement the crossover of the chromosomes(transactions). Anybody having the idea of the code in C# ,please please send it.

Software Development algorithm
Member Avatar for cale.macdonald
0
100
Member Avatar for vn412

Hi, I have a login form with username and password authentication . It works fine. But I want to give option to remember login info option in the form. Please help me with the code. Thanks

Software Development vb.net
Member Avatar for darkelflemurian
0
712
Member Avatar for ywong89

Hi. This program is pretty much working. I just can't figure out how to compare the higher hand when each player get a pair/three a kind. CardDeck.h [CODE]enum Suit {clubs, diamonds, hearts, spades}; //---------------- C L A S S C A R D ----------------------------------------- class Card // this class describes …

Software Development c++
Member Avatar for ywong89
0
5K
Member Avatar for yncee_11

ERRORS: 8 C:\Documents and Settings\csc182\Desktop\devc++\ellipse.cpp `main' must return `int' C:\Documents and Settings\csc182\Desktop\devc++\Makefile.win [Build Error] [ellipse.o] Error 1 what does this errors mean?? here is the code.. #include<stdlib.h> #include<conio.h> #include<graphics.h> #include<dos.h> void main() { int x,y,i; int g=DETECT,d; initgraph(&g,&d,"\tc\bgi"); cleardevice(); x=getmaxx()/2; y=getmaxy()/2; settextstyle(TRIPLEX_FONT, HORIZ_DIR, 3); setbkcolor(rand()); setcolor(4); outtextxy(30,100,"Press"); outtextxy(30,130,"any"); outtextxy(30,160,"key"); outtextxy(30,190, …

Software Development c c# c++
Member Avatar for Caligulaminus
0
188
Member Avatar for geoffy0404

if the answer is 90 through 100 it displays an A if the number is between 80 and 89 it will Display a B, but if its any number less then that it wont work. what am i missing? [CODE]if((int) total >= 90 && total <= 100) { printf("%c \n …

Software Development c
Member Avatar for jephthah
0
141
Member Avatar for mangopearapples

Hey people, How could I make it so when I right click and file and click 'Open With..' and choose my program so it loads the file? I already know how to load the file from when the program is already running and you click 'load' ect... [B]But,[/B] I tried …

Software Development api file-system java
Member Avatar for mangopearapples
0
178
Member Avatar for chaithanyap

#include<iostream.h> class A { public: read() {cout<<"read"; }}; class B:public A {public: readb() { cout<<"readb"; } }; class C:public A { public: readc() {cout<<"readc"; } }; class D:public B,public C { public: readd() { cout<<"readd"; } }; main() { D d; //d.read(); d.readb(); } am getting error for this...

Software Development c++
Member Avatar for Ezzaral
0
875
Member Avatar for 99samsta

Im using Microsoft Visual C# 2010 Express Basically I am making a simple slot machine game. The application currently works perfectly using the debugger however the sounds do not work properly after publishing. Heres an example of the interface: [url]http://img811.imageshack.us/img811/9304/examplepn.png[/url] Reading the .wav files from the resource file: [CODE]namespace YolkRoll3._0 …

Software Development publishing
Member Avatar for Momerath
0
306
Member Avatar for drogba123

Hi, Currently i have an array list listing some bigram. and i would like to have the array list to be formatted like this [am] - [amazing, amber] and so on [bi] - [big, bigas] and so on how should i go about it?thanks for the suggestions. Thanks much

Software Development java
Member Avatar for drogba123
0
121
Member Avatar for xxxtian

my problem is how can i format the columns to fit the page because i have many columns and when i preview the page for printing. the page become 2 because there is one column that is excess .. tnx in advance ..

Software Development
Member Avatar for ddanbe
0
90
Member Avatar for shauzi158

Hello all. I am new to c++ and and our teachers have started Object oriented programming.. I am facing real trouble in understanding the concepts of constructor and destructor. Why are they used and how are they used.. Please post...

Software Development c++
Member Avatar for floatingDivs
0
222
Member Avatar for vass1

Hello, I have just started to learn C++, and so I got my self a copy of "TEACH YOURSELF C++ IN 21 DAYS". 1/ Could someone pls say if this book is suitable for a new a newbie. 2/ And what about it's counterpart, " TEACH YOURSELF C++ IN 24 …

Software Development c++
Member Avatar for txwooley
0
128
Member Avatar for carlitosway17

Hi guys am trying to create a calender that can output the date in three multiple formats In the first case the constructor should receive three integer values. In the second case it should receive a String and two integer values. In the third case it should receive two integer …

Software Development java
Member Avatar for carlitosway17
0
244
Member Avatar for JBeg

Hello, I am a complete beginner with writing java beans. I am supposed to be making a connect four java beans class.The game logic has already been implemented in the form of a Java class called connect4.GameBoard. My professor has provided me with the jar file and javadoc for this …

Software Development java
Member Avatar for end3r
0
202
Member Avatar for TheDocterd

Hi All I really had some awesome feedback on my problem and finally I came to the last bit. I want to add/modify my code to make sure that multiple emails aren't added due to my selection method of my list box. AndreRet helped me with this and also monarchmk …

Software Development visual-basic
Member Avatar for AndreRet
0
147
Member Avatar for Pgmer

Hi all, can anyone tell me how to write the .net code for vb6.setitemdata for combobox or listbox item?

Software Development vb.net visual-basic
Member Avatar for Jx_Man
0
156
Member Avatar for zachattack05

Quick question: Is this valid, or am I missing a potential deadlock in the future: [CODE=C#] static readonly object _LockThis = new object(); private static bool _Status; private bool Status { get { lock (_LockThis) { return _Status; } } set { lock (_LockThis) { _Status = value; } } …

Software Development
Member Avatar for zachattack05
0
134
Member Avatar for khattak24

how to write a bash shell script called which outputs the calendar for the current month and the following month?

Software Development shell-scripting
Member Avatar for masijade
0
46
Member Avatar for appsrox

Hello, I want to write to a file in a particular format. There should be 2 columns, the first column should allocate 5 spaces to store digits and the next column should allocate 30 spaces to store characters. Ex:- [code] 1 Dave 234 Einstein 100000 Bob . . . [/code] …

Software Development python
Member Avatar for richieking
0
951
Member Avatar for jhong12

i am making a program that will get the area of a rectangle and tell whether the answer is a prime no. or not. which i failed plz. help me

Software Development c
Member Avatar for bobbyg23
0
71
Member Avatar for arjen

hello guys.. can you help me on how to make 45 angle shoot or 45 angle movement of bullet in vb.net

Software Development gaming vb.net visual-basic
Member Avatar for codeorder
0
200
Member Avatar for tomtetlaw

I'm creating a library that easily adds a bunch of debugging features to c++ programms. At the moment I have these features: - A more useful assert dialouge. - Pointer validation using IsBadReadPtr/IsBadWritePtr. - Memory leak tracking. I'm trying to think of other features I could add to this. What …

Software Development c++
Member Avatar for tomtetlaw
0
140
Member Avatar for valdeth

Hello guys, Firstly I want to apologize If I ask something silly, but I have just started learning C++, and I really don't know much. As a practice I have a challenge of writing a matrix in a file, and then reading the information (numbers) from it, and in the …

Software Development c++ ios
Member Avatar for valdeth
0
177
Member Avatar for mktr

i have a simple question: I want to define a hex character array in C, but I don't want to have to define the elements one at a time. my programme needs an hexadecimal array as input of 128 bits. for example, [code=c]unsigned char temp2[32]= {0x00 ,0x11 ,0x22 ,0x33 ,0x44 …

Software Development algorithm c encryption
Member Avatar for Narue
0
7K
Member Avatar for Python_nooby

Recently I have been learning about the socket module and how you can create networking applications using it. I was curious if it would be possible using the socket module to either: Set the port as a USB port to trick the computer into thinking a USB is plugged in …

Software Development pc-peripheral python socket-programming
Member Avatar for richieking
0
494
Member Avatar for jamseyjames

How would you go about extracting part of a key from a dictionary. I have a text file that lists about 1000 birthdays Ex. 1/2/1980 I want to extract just the year portion from the dictionary and then run a count against each year. I have no problems with any …

Software Development python
Member Avatar for richieking
0
83
Member Avatar for Simplicity.

My code tries to solve an optimization problem constrained to hyperbolic PDE by matching a numerical solution to a desired one. The basic idea is that: I've initial condition "U" as input which is being updated by this line: U = Initialize(Update_Design_Parameter(U)). I expect that updated U will affect all …

Software Development os-x python
Member Avatar for Gribouillis
0
167
Member Avatar for flaviusilaghi

Could someone help me. I don't know why i get a stack corruption . Here is my program: [CODE]#include<iostream> #include <fstream> #include<conio.h> #include <string> #include "aes.h" using namespace std; int main(int argc, char **argv) { unsigned char key32[32]; unsigned char iv[16]; unsigned char* inbuf=new unsigned char[128]; unsigned char** intext=new unsigned …

Software Development c++
Member Avatar for roboknight
0
207
Member Avatar for vn412

Hi, I've build an application with Mdiparentform. I want to load login form on start up of the application and on succesful login load the mdiparent form and close the login form. Please help me with the code. Thanks

Software Development vb.net
Member Avatar for Netcode
0
673
Member Avatar for xxxtian

I have two textbox that corresponds to the my two combobox. [CODE]if (purposecb.Text == "-Select One-") { MessageBox.Show("Please select the purpose of the visitor's visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); purposecb.Focus(); } else if (placevisitcb.Text == "-Select One-") { MessageBox.Show("Please select the place where the visitor would visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); placevisitcb.Focus(); …

Software Development
Member Avatar for xxxtian
0
126
Member Avatar for vineeshvs

i want to write a function to which i need to pass two matrices and get the sum and product of them as output. but how can i return more than one matrix from a function? (i want to pass and return using pointers)

Software Development c
Member Avatar for Akash Saikia
0
154
Member Avatar for TheDocterd

Hi there I need to know how to select multiple list items from a list box. My code below only selects one email address when there's found that more than one ID's is behind schedule... [CODE]Private Sub Form_Load() folder = Dir("c:\LogBook\*.txt") 'variable folder conatins names of files in folder c:\LogBook\ …

Software Development visual-basic
Member Avatar for AndreRet
0
263
Member Avatar for Nony2007

Hi All, I can connect C# to SQL and read SQL table but i am having problem in writing the outcome to text file. I really appreciate if you could assist me. this is the code. [CODE]//====================================== using System; using System.Data; using System.Data.SqlClient; using System.IO; namespace Chapter07 { class OrdinalIndexer …

Software Development sql
Member Avatar for Nony2007
0
1K
Member Avatar for himit

Hi, I need the name of the XML tabs. I'll use an example to explain what i want. XML- <?xml version="1.0" encoding="ISO-8859-1"?> [CODE] <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> <cd> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <country>UK</country> <company>CBS Records</company> <price>9.90</price> <year>1988</year> </cd> <cd> <title>Greatest Hits</title> <artist>Dolly …

Software Development xml
Member Avatar for xml_looser
0
157
Member Avatar for Bildderfrau

Hi folks! My friend just asked me to code a program which detects ellipses of an image. The images he will use with this program have 2 different kinds of pixel values - black (0) & white (255). So I researched a bit and found an algorithm for ellipse detection …

Software Development algorithm c++
Member Avatar for Bildderfrau
0
366
Member Avatar for varshasan

Imports System.Data.OleDb Public Class updateharvesting Dim co As OleDbConnection Dim cm As OleDbCommand Dim dr As OleDbDataReader Private Sub updateharvesting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load GroupBox1.Visible = False End Sub Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged Label2.Text = "enter no" …

Software Development open-source vb.net
Member Avatar for Jx_Man
0
129
Member Avatar for onat12`

Hi, I am creating an login page connected to a database. I am using access ODB. the problem is, if the user makes an wrong input, and the invalid data message box appeared, when typing the data again, and press ok, the following exeption occured: Not allowed to change the …

Member Avatar for onat12`
0
3K
Member Avatar for jwenting

Validation whether a string can be parsed to a valid date according to a supplied formatting string (which should conform to the formatting rules as supplied in DateFormat). This version can also flag dates in the past as error (we need that because many of our applications should accept only …

Software Development java
Member Avatar for javaAddict
0
258
Member Avatar for caswimmer2011

Hello, I have this code that sorts strings but it does not sort them at all. I've been working on it for 2 hours already. Any help will be appreciated. Thanks in advance :)[code]public void SelectionSort() { for (int i = 0; i < myList.length - 1; i++) { int …

Software Development java
Member Avatar for mKorbel
0
183
Member Avatar for TheDocterd

Hi All I don't actually know how to explain my problem, but here goes.. I have a small form. It has a listbox with a submit button. In the list box there are ID's displayed, i.a 10027, 10028, etc. Those ID's are the names of text files that have logbook …

Software Development visual-basic
Member Avatar for monarchmk
0
181
Member Avatar for Jaseem Ahmed

i have a database in sql server2000... i have some of them tables, that i want to connect with visual basic.. the connection is tested, its connected.. now first tell me which data control should i use?? And then the code for updating, editing, adding a record in my database …

Software Development visual-basic
Member Avatar for AndreRet
0
597

The End.