43,549 Solved Topics
Remove Filter ![]() | |
I'm having the hardest time figuring out why my password check loop won't exit after excepting valid input. Can someone help? [CODE]#include <iostream> #include <vector> #include <string> using namespace std; int main( ) { vector<string> credentials; string login; string userName; string password; string CheckPassword (string password); cout << "Enter user … Software Development c++ | |
I was given a client and server and I have to create a gui for it. I have done the entering part using the JTextField and the problem is getting the output of the class to go to JTextArea. (Its a Client server simple chat program) Here is the set … Software Development client-server gui java | |
Hi ! i m working on asp.net project and using c# for it , i want to place my delete button on the right most of the gridview , by default button is placed at left side of the grid , can any one please help me . as i … | |
My project is to write a Temperature class. In addition to converting between Celsius and Fahrenheit also include Kelvin. The class has read(), add(Temperature), subtract(Temperature), multiply(Temperature), divide(double), equals(Temperature), toKelvin(), toFahrenheit(), toCelsius(), and toString() methods. Methods add, subtract, multiply, and divide all return a Temperature. [CODE] public class Temperature { public … Software Development java | |
![]() | Ok, I have absolutely no idea what is going on for my compiler errors. I am not worried about the last part where I have to put in the letter code. I am just trying to figure out how to make this compile correctly for line 43 to work. I … Software Development java ![]() |
Can any one please tell me that why turbo c is not supported by windows 7?:?: Software Development c | |
This is the problem I have Read in 10 numbers, 10<numbers<100. As each number is read, print it only if it is not a duplicate of a number already read. I did the first part but couldn't work out the second,where the duplicate is used. I have some idea in … Software Development c | |
I have a an inherited form that has a panel control on it. I want to paste other controls onto this panel but the paste option is grayed out and won't let me do it. I made sure that the template form did not lock the panel. I'm stymied from … Software Development vb.net | |
Hello everyone, I've been coding small demos to improve my programming skills, and I've run into a problem getting indices of list items which I have been unable to figure out. I'm using C# 4.0, and Visual Studio Express 2010. I've tried to use the IndexOf(T) method, but intellisense doesn't … Software Development user-interface visual-basic visual-studio | |
Hi everyone. I've been fighting with a piece of incomplete code for a while now, and it's really frustrating... particularly because it's due tomorrow. Anyways, when I try to compile my project it's spitting out linker errors at me: [Linker error] undefined reference to `clearBoard(int, char)' [Linker error] undefined reference … Software Development c++ | |
Hi there, So I'm given a programming problem for a class, and here's what's given: An n x n game board is populated with integers, one nonnegative integer per square. The goal is to travel along any legitimate path from the upper left corner to the lower right corner of … Software Development java ![]() | |
Hi All, I want to search specific range of rows in datagridview. I want to search the entire third row of my datagridview. How can I do that? Here's my current code: [CODE]Private Sub cmdSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click For Each row As DataGridViewRow In … Software Development vb.net | |
I instantiate a class called Company where I have a lot of the logic of my system, I'm unsure about what visibility the following objects should have.... [CODE] public class Company { private Scanner input = new Scanner(System.in); private Employee[] employee = new Employee[100]; private Job[] job = new Job[100]; … Software Development java | |
I have been asked to create a method to merge two LinkedList. I am allowed to use only the following methods: From LinkedList: > addLast(E); > size(); From ListIterator: > E next(); > boolean hasNext(); > E previous(); > void remove(); The first list (list1) points to 2,6,7 The second … Software Development java | |
how to link the form so that it should display as soon as the computer gets started and the user should not access any other thing first he has to attempt the form then after successfully he can acess rest of the other option the form will be containing user … Software Development vb.net | |
Hi, Im new to java im trying to study sorting methods specifically bubble sorting i found this code online but couldn't understand what it means. can someone kindly comment the codes so I can uderstand it well. TIA here's the code [CODE] public static void sort( int a[], int n … Software Development java | |
This is a class for a bigger project. I programmed it sepratly so that i know it will work when i include it in the project. This is a Palindrome project. SO i want to know if the a word is a palindrome or not. I get the program to … Software Development java | |
Hi Im currently a student trying to figure out how to search a 2D Array in C#. The program that Im trying to make is an Address Book. Basically I want to search the array for a keyword such as "First Name", I then want to be able to print … | |
hello guys how properly push,pop,display a char array into another char array, when come to int i can do but in char array its to hard to analyze.. pls guy need some help. thnx in advance Software Development c | |
Hey Guys.. I am going to make a program that can ask for age, an then verify if the persons age is old enough.. The age limit has to be 18 years old, so the program asks for age, and then it will let person pass the age verification pass.. … Software Development | |
hi I'm trying to make a help menu which open a new form when it's clicked but I don't how to link them together , so anyone can tell me what function call I should use?? I've tried Application.Run but i get errors. Software Development | |
Hello, this is my first post. I have this homework assignment, and it is completed and it works! my question is just if anyone has any suggestions to clean it up or make it more efficient? I have two seperate files GuessTheNumber.java which is: [CODE]// GuessTheNumber.java //Written by Sean Kelley … Software Development java | |
Hey guys :idea: This is my code [CODE]studNo = JOptionPane.showInputDialog(null, "Enter Student Number: "); studName = JOptionPane.showInputDialog(null, "Enter Student Name : "); prelim = Float.parseFloat(JOptionPane.showInputDialog("Enter Prelim grade : ")); midterm = Float.parseFloat(JOptionPane.showInputDialog("Enter Midterm grade : ")); finals = Float.parseFloat(JOptionPane.showInputDialog("Enter Final grade : ")); overallGrade = (prelim * .2) + (midterm … Software Development java | |
I'm having trouble figuring out how to implement where boundaries are (platforms/landings/ceilings). I have an image running across a background image. When the image gets 3/4 of the way to the canvas, it stops moving and the background image scrolls. Same things going backward at 1/4. So with two different … | |
Hi, i have a form with data and I am tryin to save and load data using a texfile, any suggestion how I could start this as Im not too sure, thanks Software Development | |
hi, i need a little help. i have a 2d array adn i want to write out each rows minimum number. but something isnt good cause if the minimum is in the last position it says that the first number is the lowest. heres the code: [CODE] void minki(int k,int … Software Development c++ | |
Having issues with my English to PigLatin Converter. I can get the code to execute correctly on one word but once i do 2 or more words it adds the first letter [0] + 'ay' to the last word in the line.... any suggestions? [CODE]def main(): # Create a list … Software Development python | |
Hy , I have to encrypt a message and then decrypt it. I have this code , but i need to save the encrypted string in a database and the code generates a random key every time. I could save the string and the key in the database but that … Software Development algorithm encryption java | |
here is my entire code. now, the only problem I have stumbled upon is in the last method, getRow, where i have to extract a row from an array of string. could anyone please help me with this, i've been stuck for hours, not knowing why it calls "missing return … Software Development java | |
[code]public Boolean CollisionCheck(float x1, float y1, float width1, float height1, float x2, float y2, float width2, float height2) { float left1 = x1; float left2 = x2; float right1 = x1 + width1; float right2 = x2 + width2; float top1 = y1; float top2 = y2; float bottom1 = … Software Development | |
I've been tearing my hair out over this for quite a while now. What I'm trying to do is populate the struct array from within a function but I cannot figure out how to do it. Everything I've tried throws up a syntax error. Ideally the data should be entered … Software Development c | |
Hello!, I know this my be slightly unrelated question but it's very simple questions and I know many of you will find it very easy. I want to pass several txt files to my c code using make file, but I can't make it right, so please help me in … Software Development c++ | |
I'm getting into some territory I have never treaded before.... What I have is an Abstract class "Person" with an abstract class "Employee" that extends "Person" and then three concrete classes within "Employee" named: Agent, Accountant, and WebDesigner. sudo: [CODE]abstract class Person{ abstract class Employee extends Person implements myInterface{ class … Software Development java | |
I have a project to make a Phone Book Program using Hash Table, but I have to use two different type Hash Table, Hash Table .Net Framework and our own Hash Table. Does anyone know how to add, edit, search and delete the Hash Table? thanks a lot for your … | |
Hi, I needed to create in-cell dropdownlist in excel using VB.NET, So i used the code, With xlWorksheet.Range("H2", "H101").Validation .Add(Type:=Microsoft.Office.Interop.Excel.XlDVType.xlValidateList, AlertStyle:=Microsoft.Office.Interop.Excel.XlDVAlertStyle.xlValidAlertStop, Operator:=Microsoft.Office.Interop.Excel.XlFormatConditionOperator.xlBetween, Formula1:="Maintenance Planning") End With It works fine with Excel 2003, but it does not works on Excel 2007. It shows below message, Excel was able to open the … Software Development microsoft-office vb.net | |
Hi, I cant able to save an excel file from VB.NET. I used the code below: SaveFileDialog1.Title = "Save Excel File" SaveFileDialog1.Filter = "Excel files (*.xls)|*.xls|Excel Files (*.xlsx)|*.xslx" SaveFileDialog1.ShowDialog() If (SaveFileDialog1.FileName <> "") Then [COLOR="Red"]xlWorksheet.SaveAs(SaveFileDialog1.FileName)[/COLOR] End If Error occurred in the highlighted line as "Exception from HRESULT: 0x800401A8". I cannot … Software Development vb.net | |
![]() | Hello people, I designed this class: [CODE] package aiproject; /* * This class has the task to read the data stored in a file called "fichier.txt" * line by line. * The read lines will be put inside a List called lignesDeMonfichier * Also, this class counts the number of … Software Development java microsoft-access |
Hello everyone, I'm working on an assignment that requires a game that drops multiple objects that need to be caught. I'm using multiple classes and the current one is raising a type error. " File "C:/Users/Joe/Documents/School/I-210/Final/game.py", line 118, in main gift = Present() TypeError: __init__() takes at least 2 arguments … | |
hello, i want to show the client's ip and machine name in ListView. Please help, Thank you. i also created code the collection for the listview collection [CODE] class ClientCollection { public string userIpadd { get; set; } public string userPcname { get; set; } public ClientCollection() { } } … Software Development client-server lan-wan listview | |
I have a problem calling up my compturn() function. Here is my code: [CODE]import random def compturn(): print 'Computer turn:' comp = str(random.randint(1, 9)) if comp == a: compturn() elif comp == b: compturn() elif comp == c: compturn() elif comp == d: compturn() elif comp == e: compturn() elif … Software Development python | |
hello i have problem creating a Sequence application that generates a series of random numbers from 0 to 9 until a 0 is generated and then displays the length of the sequence of numbers. the output should look similar to this 3 6 7 8 9 0 Length of the … Software Development java | |
Hi, I need help with arrays. Here's what I have so far.... [CODE]// The "Prefixes123" class. import java.awt.*; import hsa.Console; public class Prefixes123 { static Console c; public static void main (String[] args) { c = new Console (); String prefix; String word; String sentences; c.print ("Enter the prefix: "); … Software Development java | |
Hi, I am starting out with python coding and was looking for some feedback. Constructive Criticism please. Here is my code for game "Word Guess". [CODE] # Word Guess # # Word guess, is a game where the user has five chances to ask # the computer if a certain … Software Development python | |
Hi all, I try to find the average of colum with perl. I find in forum that have the question [url]http://www.daniweb.com/software-development/perl/threads/328723[/url]. [CODE]use 5.010; my (@arr, %arr, $row); while(<DATA>){ @arr=split(/\s+/, $_); for (my $i=1; $i<=$#arr; $i++){ $arr{$i}+=$arr[$i]; } $row++; } say ("total of column $_ is $arr{$_} and average is \t", … Software Development perl | |
Hi folks! I'm trying to wire simple code and so far I'm stuck on ActionListener. My program should contain (JMenu) Menu called SELECT and two options InnerFrame 1 and InnerFrame 2. To debug it I've started using System.EXIT , unfortunately I cant compile my program, I'm receiving an error: "java:48: … Software Development gui java java-swing | |
Here's what I have so far.. [CODE] // The "AddingPrefixes" class. import hsa.*; import javax.swing.JOptionPane; public class AddingPrefixes { static Console c; // The output console static char proc; static String prefix; static String word; static String sentences; private void title () { c.print (' ', 32); c.println ("Adding a … Software Development java java-swing | |
[CODE]class point { private double pi; public double PI { get{ return pi; } set{ pi = value;} } } class Program { static void Main(string[] args) { point p1=new point(); p1.PI = 3.14; Console.WriteLine("The value is {0}",p1.PI); Console.ReadLine(); } }[/CODE] Actually i couldn't understand the use of PROPERTIES concept.... … Software Development | |
I know its bad to wait last minute ,but I have been working on the code the last couple of days with no result ,and now I'm finally starting to panic.I am having trouble with my program. I have been working on it for the last couple of days. I … Software Development c++ | |
I have a Java Desktop Application I made and I am now on the process of deploying the application. I tried to use Java Web Start but came up with certain problems. My application is fully working when I start it locally or inside my IDE. But when I try … Software Development gui ide java java-netbeans java-swing | |
A co-worker and I are trying to compile a VB.Net / ASP.Net application on another machine. We are getting two different sets of errors. One set of errors lists 103 undefined statements with no library missing. The other error is, " It is an error to use a section registered … Software Development vb.net |
The End.