43,549 Solved Topics
Remove Filter ![]() | |
When the button is clicked the desired calculations are not been calculated. After the Tax paid variable eis entered in the text box, no further calculation taking place. In the result textbox getting the same data as eneterd in the Tax paid Text box.Can anyone tell wat is the error.. … Software Development | |
![]() | Do you have to clean up and sort your computer files? But do you rather want to play some game and not sort everything out. Well then here is something for you: Clean Up! The Application for sorting en cleaning up your Directory's Just give the directory you want to … Software Development vb.net |
Hi, my homework problem is to convert minutes into hours AND minutes ex. 124 minutes = 2 hour(s) and 4 minute(s) (there will be some if statements for plurals of hours and minutes if possible) This is my code so far but I'm getting an error [CODE]#include <iostream> using namespace … Software Development c++ | |
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 | |
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 ![]() | |
[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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 … Software Development asp.net microsoft-access open-source vb.net | |
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 | |
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 | |
sir/madam i need a help.......how to search a string from oracle to vb.......my codings are not working properly so please correct it........i attach my codings below... [COLOR="Red"] accse.Open "Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=facultydetails" rsfdcse.Open "select * from csefacultydetails where name= " & "'&name1.Text '", accse, adOpenDynamic, adLockOptimistic If Not rsfdcse.RecordCount … Software Development open-source oracle visual-basic | |
[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; // Functions int instructions(); int game(); //Types and Arrays string word[] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; char inst[50]; int main() { cout … | |
i dont know aany thing about adodb.. please help me.. please tell me the step by step way to connect the database with adodb in vb6, and to add and update.. Software Development visual-basic | |
What's wrong with this code.... //templates #include<iostream> using namespace std; template <class t> t max (t w,t x) [B][COLOR="Red"]--->here i get no error if I use &w and &x in place of w and x...[/COLOR][/B]{ if(w>x) return w; else if(w!=x) return x; } int main() { int a=10,b=343,c; c=max(a,b); cout<<"Max="<<c; … | |
Hello, I made the following code based on the following physics problem: "A sphere of metal has a radius of 6.7 cm and a density of 9.27 g/cm^3. What's the mass of the sphere?". The program runs error-free, except that it gives me a result (mass) of 8758.99 grams. The … Software Development c++ | |
I need yo draw a shape as attached in the image using Java graphics. I am struggling with the curve part. The curve part is a arc of an circle whose radius and center is known. But I have to paint the region out side of that arc. How will … | |
Hey, For some reason the numericUpDown is a decimal or a double or one of those ;) I find that annoying, but whatever. So how do I use it as an int? Int32.Parse(); only works for strings. Software Development | |
Hello all. I am new to programming, taking my first class in college. Im enjoying it a lot so far, and much of the info on daniweb has been a huge help. Due to some unforeseen circumstances, I had to miss class and am now having some troubles with a … Software Development python | |
Hi, I have a quick question. Why would I be getting this: Ljava.lang.String;@24c21495 instead of the information at that address? I have println as my system.out. I am not sure how to format a String[] to make sure I get the information rather than the address. Thank you, lynnajoe Software Development java | |
Hey guys! I'm making an app that allows user to select some files. But, I want it to be made inside the app, without the need of a 'OpenFileDialog' or so. My first thought was a ListView control, but I really don't know how to use it or even how … | |
Hey, I am starting to work with SDL and I had it all set up correctly etc. The thing that does not seem to be working correctly is the SDL_ttf. Now, As far as I am aware, linux builds don't use truetype, which is why I am at a loss … | |
[CODE] public static void main(String[] args) { Scanner scan = new Scanner(System.in); String word, end; int length = 1; //length of int is determined here so it can be incremented in loop System.out.println("Enter a word: "); word = scan.next(); while (1 == 1) { end = word.substring (word.length()-length); System.out.print (end … Software Development java | |
Hello, I have some code that passes arguments between functions, though I am failing to understand why my code isn't working. This is the relevant section of my Dijkstra's algorithm code: [CODE]def network(): f = open ('network.txt', 'r') network = [[int(node) for node in line.split(',')] for line in f.readlines()] print … | |
In my project I tried to use boost RNG in such manner [CODE] inline int rand(const int m){ uniform_smallint<> us(0,m-1); variate_generator<rnggen_t&,uniform_smallint<> > vg(rng,us); return vg(); }[/CODE] where rnggen_t is type of random number generator (rng). But using this (for every generator) instead of rand()%m, is slowing my program at least … Software Development c++ | |
Hello, I would like to filter Gridview1 with, control checkbox, and code as "If GridView1 rows of column FirstName have value 'John' then show only this rows." I have somehow with network help write this code. But code is not working as it should, and also I do not know … Software Development vb.net | |
I'm getting errors when I try to compile this code: [CODE]public class EmployeePayRoll { /*** Class Constants ***/ /*** Defaults ***/ public static final String DEFAULT_EMPLOYEE_NAME = "Employee"; public static final double DEFAULT_PAY_RATE = 10.00; public static final double DEFAULT_HOURS_WORKED = 40.0; /*** Minimums/Maximums ***/ public static final double MINIMUM_PAY_RATE … Software Development java | |
I am using Visual Studio .net 2008, which has a Crystal Reports builder. I have gotten to the point of building the report from a view I have setup on my SQL server. Instead of using a table on the server, can I use a table from my DataSet? I … Software Development dataset vb.net visual-studio | |
hey there. I have the following code. I am trying to build an applet that displays all possible (92) ways of arranging eight queens on a chess board with no two of them on the same column, row, or diagonal. I built this as an application and it ran fine. … Software Development java java-swing | |
In C++ I'm able to do something like this [CODE](some_condition)? function1():function2();[/CODE] When i tried the same thing in Java it's not possible. It wants some variable to hold the result even though the return type of function1 and function2 are void. Is there any other way to do it other … Software Development java | |
Ok, so I pretty much have my program up and running, but it's not the best looking program aesthetically, and I am trying to do a couple of things to make it look better, and none of them are working. Here is what I want to do. 1) change the … | |
Hey everyone. I would really appreciate some help. I'm currently building a program in Python 2.6 for an introductory Comp Sci class. The program is supposed to use functions to read a text file from a URL, parse the data into tokens, and use the data to calculate a sort … Software Development python | |
I'm working on a small game in my free time as a proof-of-concept to myself that I'm capable of learning Java, but I've been stumped on an issue for the last week or two involving the instance of KeyListener I created for my project. Basically, the game has a player … Software Development java | |
1. any problem if i dynamically allocate memory and use only a small part of it? 2. can i free the dynamic memory after each time the function is executed? Software Development c motherboards-cpu-ram | |
Hi, I am doing a C++ self-study and I got stuck with this problem. I want to have a code that asks the suer to enter two numbers and then it lists the numbers between these two numbers. It has also to print a message if these two numbers are … Software Development c++ | |
I have tried having a look around on the web at different forums and can't decipher how to do this. This is my Link class: [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinkedListGen { class LinkGen<T> { private T data; private LinkGen<T> next; public LinkGen(T item) { … Software Development | |
Dear Sir/Madam, I have used Pop Up menu to show the list_Item of a list box on Up and Down Arrow KeyPressed event. But here i can't see the list item continuously by pressing up or down keys, either i have to click/enter on that pop up menu or in … Software Development visual-basic |
The End.