132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for somjit{}

im learning some algorithms , and trying to come up with a version for Quick find using union find. the algorithm works like : 1. get user input for size of the array (the array holds the data on which quickfind will work) 2. create and initialize the array based …

Software Development algorithm java
Member Avatar for somjit{}
0
190
Member Avatar for narabo

We were assigned the birthday paradox as a homework assignment. The program intakes a number of people to check and returns the number of people with a shared birthday. I seem to be having trouble figuring out the loops for the function check_birthdays. I input a number and a number …

Software Development c++
Member Avatar for Banfa
0
303
Member Avatar for eogunlolu

//This program is supposed to read 20 scores from an input file and initialize them to an array //then print the components into 2 separate output files #include <fstream> #include <string> using namespace std; const int ARRAY_SIZE = 20; void printArray1(int scoresArray[], int sizeX); void printArray2(int scoresArray[], int sizeY); ofstream …

Software Development c++
Member Avatar for eogunlolu
0
232
Member Avatar for anumash

I have a lot of problems understanding the concept of size_t and will really appreciate if anybody can help me understand the concept. I searched a lot on the net and went on a multiple forums and answers ranged from "it's an unsigned integer type" to the more bizarre "it …

Software Development c
Member Avatar for deceptikon
0
185
Member Avatar for anestistsoukalis

What is a new project programming ? Is it better writting code in separate files which they can combine together ... rather that making ine file that includes all the other .C files ? At last... if i have 3 files .. for example: **File one:** // * Filename: setadt.c …

Software Development c
Member Avatar for deceptikon
0
212
Member Avatar for andrisetia

hi there, i also have an emergency home work it about Fibonnaci recursive the Output is should be like this : -------------------------------------------------- First number of the fibonnaci : 3 The Fibonacci Lines are : 3 4 7 11 18 29 ... ---------------------------------------------------- i want the result is until 10 lines …

Software Development c
Member Avatar for deceptikon
0
262
Member Avatar for kiran2012

Hi, I newly installed VB6 and Visual Studio 2012 Premium. OS - Windows 7. I want to add Listview control to my form. For this when i add reference to MS Windows common controls, VB crashes and closes. This is the error msg i am getting "Unhandled exception at 0x00409719 …

Software Development listview visual-basic visual-studio
Member Avatar for AndreRet
0
2K
Member Avatar for -acir-

//compute percentage for Parent1 DecimalFormat df = new DecimalFormat("#.##%"); rs = s.executeQuery("SELECT " + "(SELECT COUNT(*) FROM genetic.blood_type where diseases = '" + disease1 + "')" + "/COUNT(*) AS rowcount FROM genetic.blood_type where btype = '" + btype1 + "'"); rs.next(); int result = rs.getInt("rowcount"); rs.close(); out.println(disease1 + " is …

Software Development display java
Member Avatar for -acir-
0
225
Member Avatar for sirmcfly.works

here's the problem: iam able to make my panel transprent on my main mdi container but when i move my panel to the place where my mdi child form is being shown in my mdi container the panel isnt transparent or i cannot see through the panel. any solution you …

Software Development vb.net
Member Avatar for Lethugs
0
385
Member Avatar for Ahsan_1

hi ... i want to send to MMS/SMS from PC(mobile phone connected via Usb cable ) to any mobile number at remote side using [B]GPRS[/B] connection. this is a one module of my Final year project. please any one know any library in JAVA or C++ who works this, kindly …

Software Development java
Member Avatar for poornima2013
0
298
Member Avatar for chonobob

Hey everyone, I have been assigned to create a recursive maze program and I am having trouble to figure out how to start it. I am pretty much lost and confused and don't know what to do. I do not want anyone to complete it for me but giving me …

Software Development algorithm java user-interface
Member Avatar for JamesCherrill
0
607
Member Avatar for ELMX27

i have to create a DigitsDisplay application that prompts the user for a non negative integer and then displays each digit on a separate line like such "Enter a positive integer: 789 7 8 9 so far i have int num; c.print ("Enter a postive number: "); num = c.readInt …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for ryan311

can anyone help me my sql update is not working. cmd.Parameters.AddWithValue("MaterialSizeId", id); the id on this parameter is already had a value. Maybe the error is on sqltransaction. please help. public void Update(string materialSize, string KgPermetre, string PricePerCut, string MaterialType, string BarColour, string PreferredLength, string datetime) { using (SqlConnection objcon …

Software Development sql
Member Avatar for ryan311
0
210
Member Avatar for tashee2007

Hello Every One, When i run my project i get Error "There is no row at position 0", please help. Here is my code: Private Sub PopulateDepartmentHead() 'Fill data in comboBox Dim SqlDataAdapter As OleDbDataAdapter Dim DSet As New DataSet Dim strSelect As String SQLConn.Close() SQLConn.ConnectionString = oFunc.GetConnectionString(sINIFile) 'myConn = …

Software Development dataset open-source vb.net
Member Avatar for tashee2007
0
3K
Member Avatar for xixi.li.7

I just have a program to implement RSA encryption, and it runs but when I try to encrypt a message it crashes. When I bebug it won't show any error, What is the issue,How Can I fix the program? #include<iostream> #include<cmath> using namespace std; #define MAXLENGTH 500 int size = …

Software Development c++ encryption
Member Avatar for tinstaafl
0
154
Member Avatar for sirmcfly.works

here's my problem im trying to make an interface for my current project im trying to make the panels moveble and im trying to achive an icon like behavior to this panel when you move them around its like when you move an icon from your desktop it will automaticaly …

Software Development vb.net
Member Avatar for sirmcfly.works
0
204
Member Avatar for kazekagerandy

i am doing an application at school and i always have this error message: Cannot open database "users" requested by the login. The login failed. Login failed for user 'SERVER\Student'. what is the possible solution for this? thanks :)

Software Development sql vb.net
Member Avatar for Lethugs
0
247
Member Avatar for PinoyDev

Good day! I have this datasets format in sql server! AccountID AccountName 1/30/2013 2/30/2013 3/30/2013 4 Credit Cards 20,000 30,000 12,000 5 Loans Payable 5,000 6,000 5,000 How can I load all this data to listview? The colums are dynamic. It could be 6, 7, 8, or 12, or higher. …

Software Development dataset listview visual-basic
Member Avatar for PinoyDev
0
178
Member Avatar for Engineer001

#include <iostream> #include <cmath> using namespace std; int main () { double n = 1; double sum = 0 ; double previous = 0; double y; while(fabs(double (sum - previous)) > 0.001) { y = -1 (exp(double (n))) / n; **<<<Error is here<<<<** sum += y; previous = sum - …

Software Development c++
Member Avatar for Moschops
0
2K
Member Avatar for csss

private void decrypt_Click(object sender, EventArgs e) { v = Convert.ToDouble (txtencrypt.Text); t = Math.Pow(v, d); msg = Convert.ToInt16(Math.Pow(v,d) % Convert.ToDouble(n)); txtdecrypt.Text = Convert.ToString(msg); } This is the code im doing for decryption in rsa algorithm but i got a problem in power operation. For a small power value,the power operation …

Software Development algorithm
Member Avatar for TnTinMN
0
255
Member Avatar for rami sohaill

hello everyone i'm trying to create algoithm for binary search in multi dimensinal array i have done it on one dimensinal and changed some things but still there is something wrong here's the code i hope you can help public static void binarysearch(int [][] numbers,int searchedvalue) { int lowrow = …

Software Development java seo
Member Avatar for rami sohaill
0
224
Member Avatar for LevyDee

So I have always developed in a 32 bit environment, but now have the opportunity to step into 64 bit development. What I am working on requires a lot of pointer aritmatic, and I am a little confused how primitive data type sizes vary from 32 to a 64bit platform. …

Software Development c++ data-structure
Member Avatar for LevyDee
0
179
Member Avatar for michelleruth

Write java program to do the following: ï‚· Write a METHOD to input an array of type LONG that stores the value of all the powers of 2 from 0 to 63 (i.e. 2^0 to 2^63 ) ï‚· Output the contents of the array screen (what happens if you try …

Software Development java
Member Avatar for michelleruth
0
2K
Member Avatar for dan.gerald

I am trying to write a program that will test for the birthday paradox. I need to run a series of experiments on randomly generated birthdays, which test this paradox for n = 5, 10, 15, 20,...,100 (n = number of people in any given room). I need to run …

Software Development c++
Member Avatar for dan.gerald
0
508
Member Avatar for alek.mieczkowski

Hi all, Im writing a program, that takes the a, b, and c from an equation, and uses them to find x using the formula: [http://www.purplemath.com/modules/quads/qform01.gif](http://www.purplemath.com/modules/quads/qform01.gif). The problem im getting, is that when I plugin the equation 1x^2 +3x +4 I get x = -Infinity and x = infinity instead …

Software Development java
Member Avatar for M4trixSh4d0w
0
248
Member Avatar for kewlankit

A fest called "Technothon" is going to be held in my college. In this fest, CEO's of large MNC's are invited. I am to present a project in front of them. So, please suggest some project ideas.. "C" language is my strong point. But i have got no idea about …

Software Development c
Member Avatar for Miorfs
0
219
Member Avatar for Mr.M

Hi DW peps. I've used the following codes to crypt and save files now I want to decrypt it when I'm reading it so that let say I want to check if the saved password matchs the entered password which the saved password is saved on pc drive e.g. Drive …

Software Development encryption vb.net
Member Avatar for azareth
0
267
Member Avatar for achinthaadd

hi, i want a get msgbox(" Time Out") , when click some button then after 10 days ago, it may be close my application and it can not affect to time ( 10 days), i dont know how it code, please help me. tks,

Software Development vb.net
Member Avatar for achinthaadd
0
116
Member Avatar for Alexkid

Hi there, I was wondering if anyone could help me, I’m trying to send various packets of data over network via UDP. I’m using the sendto() function in winsock2. I’m trying to send different data types over UDP, for example; I have positional data such as: int time; float LAT; …

Software Development c++ tcp-udp
Member Avatar for mike_2000_17
0
6K
Member Avatar for on93

can anyone solve this problem for me ??? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include<iostream> #include<string> #define size 10 using namespace std; struct student { string name; int id; string prog; double cgpa; }; class stinfo { private: student data[size]; int last; public: stinfo(); void add(string name, int id, string prog, double cgpa); }; stinfo …

Software Development c++
Member Avatar for Lucaci Andrew
0
215
Member Avatar for LeunamP

Hello guys, can someone help me how to view data from database into listview.. example in my database i have a user table, it has firstname, lastname, emailaddress and contactnumber, i want to view all user records into my listview. what is the query code for that.. can u please …

Software Development listview vb.net
Member Avatar for LeunamP
0
102
Member Avatar for riahc3

Hey I want to remove all strange whitespaces (such as Alt+0160) except the actual space, as in spacebar. How can I do this?

Software Development
Member Avatar for Ketsuekiame
0
151
Member Avatar for chdboy

I have two tables Employer Employee Employer Table: I have one field EmployerID (pk Key assigned to it) Employee Table: EmployerID(pk Key assigned to it) IDEmployer(fk key assigned to it,and Allow Nulls:Checked) Now my question is how to relate two tables ,that I will now that who works for who? …

Software Development dataset open-source vb.net visual-studio
Member Avatar for Reverend Jim
0
199
Member Avatar for murali89

Hi, I am facing difficulty in removing a node from linked list. For example I am having four nodes having integers (10) (20) (30) (40). I need to remove second Node that is 20 from linked list. What i was trying to do is I am maintaining two pointers to …

Software Development c data-structure linked-list
Member Avatar for Ancient Dragon
0
176
Member Avatar for siaswar

I want to develop a simple application which runs on single computer (just runs in one mechine) and did not need network. Program has to store some data in database and show them for printing. I have no experience with real-word program so I confused here: If the program is …

Software Development mssql sqlite
Member Avatar for Ancient Dragon
0
271
Member Avatar for awesome_cool

I want to assign a value to the variable x which belongs to the class X using friend function. Is there any way to assign a value, say 30 to the variable x using the friend function. I tried the following code but the output is different. [CODE]#include <iostream> #include …

Software Development c++
Member Avatar for NathanOliver
0
226
Member Avatar for LeunamP

guys can i ask something, what kind of server or database is good for Microsoft Visual Studio 2008, or VB.net thanks..

Software Development microsoft vb.net visual-studio
Member Avatar for riahc3
0
313
Member Avatar for csss

Im trying to do the encryption and decryption in sha1 with the help of SHA1CyptoServiceProvider. The encryption of SHA1 is performed well but i need the code for decryption of SHA1. Encryption code: string p="hai"; //input text SHA1CyptoServiceProvider encrypt=new SHA1CyptoServiceProvider(). byte[] enctxt=encrypt.ComputeHash(Encoding.Default.GetBytes(p)); foreach(byte temp in enctxt) { out=temp.ToString("x"); }

Software Development encryption
Member Avatar for csss
0
139
Member Avatar for ThatJamaican

**I have about 54 errors and I have no idea why. I've been looking through it and I see nothing whenever I change anything, more errors that are related to previous** 1>------ Build started: Project: TESTERPROJ, Configuration: Debug Win32 ------ 1> blank.c 1>c:\users\pauline medwinter\documents\visual studio 2012\projects\testerproj\testerproj\blank.c(33): error C2122: 'long' : …

Software Development c visual-studio
Member Avatar for Moschops
0
354
Member Avatar for mgunia

Hello, I want to re-arrange my existing macros in the excel file. I have a macro which goes to the specified sheet and checks column R if there are commas. If it finds the commas it replaces it to dots. Column R is called Email. But in some of documents …

Software Development microsoft-office visual-basic
Member Avatar for mgunia
0
338
Member Avatar for joshfizzle

This is my first program apart from the infamous "HelloWorld" one. The purpose of this program is to simulate a lottery number generator. The program is printing numbers which is great, but it isn't behaving like how it should. It's supposed to print 100 number combinations and it only prints …

Software Development java
Member Avatar for joshfizzle
0
230
Member Avatar for kimangel

hi experts, i have problem saving my logout entry could not be saved on database. Password & username textbox is in the login form on form 1 and lbldate & lbltime is on form 2. Log-out click is a Menu editor on form 2. Pls help me check my code. …

Software Development visual-basic
Member Avatar for AndreRet
0
180
Member Avatar for chrisaddicted
Member Avatar for tinstaafl
0
77
Member Avatar for meetjatin88

which one should be preferable from the following two nested for loops: 1. for(i=0;i<100;++i) { for(k=0;k<10000;++k) { <lines of code> } } 2. for(k=0;k<10000;++k) { for(i=0;i<100;++i) { <lines of code> } } why?

Software Development c++
Member Avatar for mike_2000_17
0
192
Member Avatar for IT_Techno

hi every one, iam try to build aconnection to sql database using sql string inside my c# class, but i cannot use ConfigurationManager i donot know why ? iam beginner in c#. i have read in enternet, i need Configuration Manager dll file but it doesnot work with me. what …

Software Development
Member Avatar for IT_Techno
0
103
Member Avatar for smurfy

Hi to Dear Daniweb Members, The application populates data from database into JTable in Netbeans. It has 2 classes. First class retrieves all data from Employee table using Derby. Second class creates the GUI with a JTable component inside it. However i got the following messages. I am so confused. …

Software Development apache gui java java-netbeans sql
Member Avatar for stultuske
0
2K
Member Avatar for smurfy

Dear Daniweb Members, First of all sorry my english writing. I installed JavaJDK 7u13 with NetBeans 7.2.1 and db-derby-10.5.3.0-bin.zip on a fresh OS. Then i set the environment variables according to their relative paths as seen below. By using ij the test database and the test table created, records inserted …

Software Development apache ide java java-netbeans
Member Avatar for stultuske
0
2K
Member Avatar for andrew.ferrebee

im having a little troubele with this problem. i am working on an intrest calculator and have hit a snag.its saying there is error with my Math.pow punction can someone help please. ill add what i have so far below import java.util.Scanner; public class Calculator { public static void main …

Software Development java
Member Avatar for radhakrishna.p
0
240
Member Avatar for smurfy

Dear Daniweb Members, First of all sorry my english writing. I installed JavaJDK 7u13 with NetBeans 7.2.1 and db-derby-10.5.3.0-bin.zip on a fresh OS. Then i set the environment variables according to their relative paths as seen below. By using ij the test database and the test table created, records inserted …

Software Development apache ide java java-netbeans
Member Avatar for radhakrishna.p
0
429
Member Avatar for buckeyemike

when you write code in the main function if you put functions in the file all you do is nameoffunction(); to call it. now my question is this lets say you have a menu in a class. call it bank. in the main to call that function . ive tried …

Software Development c++
Member Avatar for mike_2000_17
0
217

The End.