43,549 Solved Topics
Remove Filter ![]() | |
I have a program, and I'm trying to remove duplicate characters. I have tried using toLower(), but it doesn't work...I'm not sure where to go from here. Any help in the right direction would be great! using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SortingLetters { static class RandomLetter … Software Development | |
Hey guys I need help with in my code... I need to add a method that checks wheather the weather attributes are consistant or not. thanks for the help heres my code... import javax.swing.JOptionPane; public class Week_eight_number_31 { private int DefaultFarenheit = 70; private String DefaultSky = "Sunny"; public Week_eight_number_31 … Software Development java java-swing | |
Hey all, I have been wanting to make a cool game in jave such as a fighting game starting off simple with drwing stick figures :). But i was wondering why there are so many java games created in Japplet why not use swing- i know there are games out … Software Development gaming java java-swing | |
I am teaching myself C++ and amd now trying to simple programs related to data structures. I wrote this code for a simple stack. It is not working. I am frustrated and tired so I cannot think through the issue. There are two main problems with which I need help. … Software Development c++ data-structure | |
Hello, I have a listbox in my program and I want the user to be able to remove all Listbox Items with the click of a button. I Figured this would work, [CODE]Listbox1.Text = ""[/CODE] But I Guess that doesn't work. Any Help would be awesome:) Software Development vb.net | |
Hi there, 1) So i have a Menu Strip, and a couple of user controls, and in these user controls, i have group boxes. So when I click on the item that I want in my menu strip, it displays as normal. That's working fine. What I am trying to … Software Development | |
Hi, I try to use a specific word in my file to put it as a folder name. This word vary in my file so, I think about use regular expressions to define it. my $file=$ARGV[0]; my $word=~/DOT\d+/; my $line=""; open(file, $file); while( $line = <file>){ if ( $line =~ … Software Development perl | |
i need help finding the low value in an array after reading file with numbers. With my program I am to assume that the size an array is 100 even if only 10, 31, 50 spaces are taken up. The problem im running in to is when i iniztialize the … Software Development c | |
Hello. What are some ways that one can work with (x,y) coordinate pairs in Python? I'm doing a homework assignment that requires me to create a program that can check for certain binary relations (reflexive, transitive, symmetric), and I'm having an issue coming up with the best approach for it. … Software Development python | |
I decided to learn C++ STL and I was exprimenting with STL containers. I saw this example [here](http://www.cplusplus.com/reference/stl/vector/insert/): // inserting into a vector #include <iostream> #include <vector> using namespace std; int main () { vector<int> myvector (3,100); vector<int>::iterator it; it = myvector.begin(); it = myvector.insert ( it , 200 ); … Software Development c++ | |
Hai, I'm a C++ beginner with self learning.I have a function that return a vector string eg: vector <string> result :"PA1070","PA1088","PA1091","Pa1070","PA1044"..... How do I compare the vector string element in a proper way? I tried to compare (if result[0] < result[3] ) cout << "True"; else cout << "False"; it … Software Development c++ | |
I need this for 2 different changes. ON one form i got a week calendar, the other a month calendar. Was hoping to add 2 buttons previous & next. To scroll back in time x days, or x days forward. And similar for the months, but instead of days months. … Software Development vb.net | |
Hello my fellow Danniwebbers, I have yet another question for you to ponder. I have two custom action listers. One that handles Mouse.Click and one that handles Mouse.MouseDown. My question to you is, can I delay the mouse down event so that it does not intefere with the code of … Software Development vb.net | |
I am starting to learn python as my first programming language, but i ran into a problem while trying to make a function that calculated the missing variable in the simple equation v= u+at. The problem is that i am incapable to change a variable's value from False to True … Software Development python | |
#include<iostream.h> #include<conio.h> void main() { int z[33]; clrscr(); cout<<"Enter any Password (32 character max): "; for(int i=0;i<33;i++) { z[i]=getch(); if(z[i]==13) { break; } cout<<"*"; } cout<<"\nYou entered : "; for(int j=0;j<=32;j++) { if(z[j]==13) { break; } cout<<(char)z[j]; } getch(); } | |
Can someone show me algorithm so i can sort array like this? [Picture](http://i.imgur.com/HhQ4I.jpg) Software Development | |
I am working on a java application that will display an image and play a sound. It finds the current month and displays the appropriate information. Below is the code that I have been testing (that's why santa is in april) it will not work when trying to play wav … Software Development image java java-swing open-source | |
So I have been told by various people on numerous occasions that you cannot parse XML by using regular expressions or any means other than a parser. So, here at work, I have LXML and that is what I have to use. At the moment I am trying to remove … | |
Hi, I'm having trouble writing a prolog program which does the following: Say I'm given a map of 3 different points; Point A, point B and point C. Point A is connected to point B and point B is connected to point C, if you want to travel from point … Software Development | |
Hey all, I'm working on a login screen and have an MSAccess database that stores the userName and password. I am currently using JtextField and String to access the username and password located in the MSAccess database, but now I want to hide the password when it is being typed … Software Development java java-swing | |
Hi There, I hope somebody can help me, I work with Visual C++ 2008 with QT libraries I am trying to include a Interop.Encore.dll file into my program to access our ERP system business objects and post new data to the ERP We have a Visual Basic program geared to … Software Development c++ qt visual-basic | |
I know this seems to be a very basic questions but still want to clear my basic knowledge so i am asking this question What is String Pool in java? what is difference between String var="DANIWEB; and String var =new String("DANIWEB"); Software Development java | |
I'm trying to write a program that concatenates two null-terminated strings. (I declared the strings and buffer in the dad section) .data string1: .asciiz "In a hole in the ground” string2: .asciiz " there lived a hobbit." buffer : .space 512 The program copies the first string into the buffer … Software Development assembly | |
Was writing a new method to open a custom dialog box I created, and realized that the other method I wrote to open another custom dialog had the same name as the object representing it, but there was no error? This is what I mean: Originally the code read: Dialogs.Accounts.NewLocation … Software Development | |
There is something wrong with this program. The code is ok, the program runs, but it stops after asking the user how much their income is. Where am I going wrong? (Sorry, it's really long, but I can't figure out where the problem is) #include <iostream> #include <string> #include <cctype> … Software Development c++ | |
hi all , I develpoed java application i java swingss, I need tocreate two versions linced version and trail version, Trail version should experied in 20 days,once user gives the serieal key the application shold work , where shold I store registration key, How could I protect my application could … Software Development java | |
Hi, I found the examples of explicit specialization, but I have a vagueness about code: using namespace std; template<class T = float, int i = 5> class A { public: A(); int value; }; template<> class A<> { public: A(); }; template<> class A<double, 10> { public: A(); }; template<class … Software Development c++ | |
I have a vector that contains Points on a board and I would like to do the following: 1) if a Point appears an even number of times i would like to delete all of the same Points. 2) if a Point appears an odd number of times i would … Software Development c++ | |
I am pulling three coloums of data from a SQL view into my data drid Day,TimeIn,Timeout I want to colour my datagrid rows red if timeout is null and green if both the timein, timeout have data in them. here is my code so far, but it aint working Public … | |
hello everyone, I am developing an application for my project... My application works correctly when I run it on applet viewer...But when i try to run it with the help of html page ..the code does not run and gives an erron java.security.accessdenied exception.... Actually i have loaded an image … Software Development java | |
hey all, i wan't ask.. how make shortcut in form.., did i've to use keyup or keydown event ..??? i need some reference pliss... Software Development visual-basic | |
hi guys!! The purpose of the program I am trying to do is to have an input number of 6 digits typed in and this should then be printed as an hour minute second format. for example 123456 would be 12:34:56 This is what I have but it isn't working … Software Development c | |
Hello, Wondering if you can help me.. I have a variable, that each time needs to multiply by 2 (I know, it sounds simple.. I'm probably being an idiot) but it works like this: LOOP 1 offsetX = 0; offsetY = 0; LOOP 2 offsetX = 2; offsetY = 0 … Software Development c++ | |
Could anyone tell where is the error in the program? There is a compile-time error... When I hit compile it shows error in the 40th line saying that 'r' might not have been initialised.. I can't get that.. Pease could anybody help?? import java.util.Scanner; public class Customer_Account { public static … Software Development java | |
Hello im new to daniweb and c++ and am getting a overloaded function error on my readFile function, specifically the string data type. I cant seem to pinpoint whats causing the error. Im supposed to use the function to read data from a text file in this format: Johnson 5000 … Software Development c++ | |
![]() | I need to take arguments and change the extensio of the file for writting but I get java.lang.ArrayIndexOutOfBoundsException: 1 Why? Is there any better way? // change file name for saving the output file int dot = inputFile.lastIndexOf('.'); // check for the dot String baseName = (dot == -1) ? … Software Development file-system java ![]() |
I am trying to create a 2 dimation array for a game... The table will look like that!!! **0 1 2 3 4 5 6 7 ** **0|0 0 0 0 9 0 0 0 ** **1|0 0 0 0 0 0 0 0 ** **2|9 0 9 0 0 … Software Development c++ | |
Hello, I've been having a little dificulty with passing this array to my text file. What i'm doing is writing a questionaire type quiz which involves outputting questions, receiving input, and taking each input value and listing it in a text file. What I have works, except for writing the … Software Development c++ file-system | |
Hello Friends, I need one help I have a datetimepicker control, a combobox with day i.e. Sunday, Monday and so on.... The datetimepicker min date will be todays date and max date will be more 7 days...i.e. a week... so the days dont get repeated..means sunday will come only one … Software Development vb.net | |
So first of all let me say I am pretty new to C++ and find it very difficult to learn (especially when compared to say C#) Anyway I am working on a program that requires the use of a 2D array or a similar container. After talking with a professor … | |
Hi. I'm working with my project right now. In my project, there will be 2 form; I will call form1 and form2. Form 1 call first and then it has button to call form 2. I don't want user open many form2 so I use a private boolean variable. When … Software Development | |
Hello, I am building a website using a standard form and perl script that we commonly use, but this one has a special request and I don't know how to handle it because I have very little knowledge of Perl, other than what is in the standard script I have … Software Development perl | |
I'm developing an Intrusion Detection System program....right now, I have written some of the code, but I'm having a lot of difficulty testing it, because I don't have any virus infected systems to test the code on....is there any way I can develop a worm just for testing purposes?...or is … Software Development java | |
Hi i am trying to do a transaction. It's basically were a customer makes a booking of a particular ablum(dvd or cd). In my database i have a table called Transaction with the following colomun names: Trasaction ID , MemberID, AlbumID , issueDate and ReturnDate. Here is were the problem … Software Development vb.net | |
Hi every one . Can you please tell me how i can change the text type field of datagridview to datetime pikcer or calender. if i click on edit columns in datagridview i can only see textbox column, combox, and button i want to change the date field in datagridview … Software Development vb.net | |
I am new to bash scripting. Is it possible to get a value returned on a nested variable? At the command line, the following code will generate desired ouput: while read line; do echo -e "${line:21}"; done < Albums-linux.txt It takes a list of directories for albums and returns a … Software Development shell-scripting | |
I want to create a java application where you can build simple logic circuits (just started learning java recently and it was just a random project idea I got off the net) Ultimately I want the gates as icons on a pane that users can drag and drop onto a … | |
Hello friends, I am working an a section of application which needs to Parse CSV Logs generated by PostgreSql server. - The Logs are stored C:\Program Files\PostgreSQL\9.0\data\pg_log - The Server version in 9.0.4 - The application is developed in C Sharp * The basic utility after Parse the Log is … Software Development c# postgresql regex | |
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged If ListBox1.SelectedItem IsNot Nothing Then Timer1.Enabled = False Else Timer1.Enabled = True End If End Sub Software Development vb.net | |
It just occured to me that when I go to create a new SQL query using VS's query builder, it pre-fills in a query based on the datatable I am building the query with. Normally I just delete the standard query (unless it's sufficient) and write my own, but this … Software Development sql |
The End.