132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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++ | |
//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++ | |
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 | |
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 | |
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 | |
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 | |
//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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 :) | |
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 | |
#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++ | |
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 | |
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 = … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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; … | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
**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 | |
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 | |
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 | |
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 | |
how to pass a value and then split it and it should display in string format Software Development display | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ |
The End.