43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for denvious

Hello All, I'm currently having an issue trying to retrieve elements that have been saved within my arraylist. I currently have two classes, Project and Staff. In the Project class, i have declared an ArrayList of type [i]staff[/i], as seen below: [CODE]public static ArrayList<Staff> staff = new ArrayList<Staff>();[/CODE] In the …

Software Development java
Member Avatar for denvious
0
9K
Member Avatar for chandnigandhi

how to use video files in c#???in which format we can use video files in c#???which control we can use for video files in c#???

Software Development c# video
Member Avatar for shrutipopat
0
2K
Member Avatar for Cap'nKirk

Hi, just started today with trying to implement a Thread in my application and have come across a problem that I can't seem to figure out. The application asks the user to enter their userid into a TextBox on the main form which is used to download a specific XML …

Software Development api hard-drive
Member Avatar for Cap'nKirk
0
236
Member Avatar for Cainer

Hi, I found a problem with operator overloading. Consider following class: [CODE]class Number { public: int value; int operator +(int v) { return value + v; } }; Number n; n.value = 5; [/CODE] Now, n+5 successfuly returns 10, but 5+n gives error [QUOTE]error C2677: binary '+' : no global …

Software Development c++
Member Avatar for gerard4143
0
235
Member Avatar for dakaboguy

Im trying to select data from a MS access database, i have done this for SQL server before with no problem, but now with a Access database i get a run time error for "No value given for one or more required parameters". Below is my code [CODE] Private Sub …

Member Avatar for dakaboguy
0
1K
Member Avatar for gedas

hi guy, i am trying to create a text wrapping method soemthing like this [CODE] public void textwrap( String text, int width){ } [/CODE] what i need it to do is to print the text in a column of specified width. for example a user set width to 20, what …

Software Development java
Member Avatar for Zaad
0
227
Member Avatar for Lipe Shtogu

Hello to everyone i have a problem with my project. in one form i have 2 textboxes in one i have displayed the serial number. in the second i want display the current user logged on software. how can i display the current user logged in ????? the code for …

Software Development display vb.net
Member Avatar for Lipe Shtogu
0
139
Member Avatar for mehmedean

Let's think about a small program that has a form and two panels. There is a menu strip at the top and under the "File" menu there are 2 options: "New Form" and "Admin" (and "Quit"). There are 60 fields in different groupboxes in panel1 (a detailed registration form). A …

Software Development c#
Member Avatar for mehmedean
0
1K
Member Avatar for coroll

Hi all, I have a windows apllication project. Last night i saved it. Today i opened it and started to work with it by adding new methods and etc. then i compiled and ran. But it does the previous things not the new ones. Always last night version runs. PLZZZ..help …

Software Development
Member Avatar for coroll
0
83
Member Avatar for Kyren5058

Hi there, right now my teacher wants me to make an outline of a half-diamond with numbers, using for loops, kind of like the following: [code] 1 2 3 4 5 4 3 2 1[/code] The number 5 is a user input, so the half-diamond's width would be controlled by …

Software Development c++
Member Avatar for cherrymae.calma
0
282
Member Avatar for walid86

hi there, i'm creating an app in C# which allows users to select an image by double clicking the "pictureBox1", from there it selects the image, creates a new Graphics object and passes the Bitmap to it. Once the picture has been loaded the user should be able to move …

Software Development c#
Member Avatar for walid86
0
1K
Member Avatar for existinglady

This is our new and revised program... for the registration: I thank all of those people who helped me. for the search function: so I've manage to, actually my teammate managed to get a search function working for edit function: we havent figured it out on what methods are gonna …

Software Development c++ ios visual-studio
Member Avatar for existinglady
0
2K
Member Avatar for monkeybut

IT currently is set up for base 3, but should be able to make a couple of minor changes and convert to any base, thanks and hope it helps someone out. [code]#include <iostream> #include <cmath> #include <fstream> using namespace std; void convert_base(int v, int b); ifstream inputdata; ofstream outputdata; int …

Software Development c++
Member Avatar for mike_2000_17
1
530
Member Avatar for Anil2447

Here is the codes for Binary Search and Linear Search. [B]Binary Search[/B] [CODE] #include<stdio.h> int main(){ int a[10],i,n,m,c=0,l,u,mid,j,x; //variable assigning printf("Enter the size of an array->"); //Entering the size of the array scanf("%d",&n); printf("\nEnter the elements of the array->");//Entering the array elements for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++) { //loop to sort …

Software Development c programming-construct
0
116
Member Avatar for guccimane

I wrote a program that opens a file using the command line (cmd), calculates a bunch of numbers, then outputs the results to another file. The program works fine, but when I tried to alter my code using classes, all of a sudden the program is not fine. Here is …

Software Development c++
Member Avatar for guccimane
0
948
Member Avatar for NexG

import java.util.Scanner; public class fibonacci{ public static void main(String[] args){ int n=0; int fib = n+1; Scanner X=new Scanner(System.in); System.out.print("Enter # of the term: "); n = X.nextInt(); for (int i=3; i<=n; i++) { i = i-1 + i-2; } System.out.print("Term is: "+n); } } I know the algorithm is …

Software Development algorithm java
Member Avatar for NexG
0
157
Member Avatar for ceyezumma

Hello: TABLE NAMES : /////////////////////////////////////////: : TABLE NAMES : 10.6.2.1 - (999685): : TABLE NAMES : Apache Derby: : TABLE NAMES : Apache Derby Embedded JDBC Driver: : TABLE NAMES : 10.6.2.1 - (999685): : TABLE NAMES : /////////////////////////////////////////: : Hello I have a problem understanding why my Prepared Statement …

Software Development apache java
Member Avatar for masijade
0
368
Member Avatar for JoshuaBurleson

I hate to complain, but I'm not terribly impressed at the documentation for utilizing binding, it covers quite a bit but not common stuff, or maybe I'm just missing it. I was wondering how I could make the <RETURN> key equivalent to a <BUTTON1> click when a button is highlighted …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
370
Member Avatar for jonoman

Hi, I want to create a function to test the first character of a string to see if it is lower or upper case, and change it accordingly. However, the rest of the string has to stay the same. Dim S As String = "C:\Users\profile" should be returned as "c:\Users\profile" …

Software Development vb.net
Member Avatar for jonoman
0
93
Member Avatar for ntrncx

how i can pass inside a vector an array? i know how to do it without classes but i don't know how to do it with constructor. i try to create a 2nd constructor that takes array of integers and the size of array and initialize a vector. header [CODE]#ifndef …

Software Development c++
Member Avatar for ntrncx
0
147
Member Avatar for anand01

Hi all, To do OCJP certification what are the things should I learn . Pls suggest some good tutorials Thanks in advance

Software Development java
Member Avatar for anand01
0
97
Member Avatar for GeoBob

I want to create a function or a class method that will create a dictionary named by a variable that is passed in. By way of example, I'm creating a class method to read data from a table (in this case it's an ArcGIS table, but that's not critical) and …

Software Development python
Member Avatar for JoshuaBurleson
0
435
Member Avatar for monkeybut

I am having trouble figuring out how to convert base 10 to base 3, I have tried several different attempts and this is my latest effort, anyone have any ideas. I was giving this algorithm but am having trouble creating a function for it: [B] 1. Set k to the …

Software Development algorithm c++
Member Avatar for monkeybut
0
4K
Member Avatar for fredfletcher

Hello, I'd really like some help on this. How can I add the server's root folder of "english" to this: [B]~ s/_e\.shtml/_f\.shtml/ [/B] This searches all occurences of [B]_e.shtml[/B] and replaces them with [B]_f.shtml[/B] (it being in the same folder). Yet, in between that, I would like to add the …

Software Development perl
Member Avatar for fredfletcher
0
124
Member Avatar for anders10

Hello! I have a problem in trying to convert a string into an integer. I'm not supposed to use the routine atoi, ie I have to do it on my own. Here is the code; [CODE] .data String: .asciz "1234\n" Show_integer: .asciz "The integer = %d\n" Intg: .long 0 .text …

Software Development assembly
Member Avatar for anders10
0
3K
Member Avatar for JoshuaBurleson

I was just wondering if anybody has any ideas on how I could allow a users input to be disguised on the screen when they're entering their passwords (such as the case about everywhere on the internet) i.e. gmail's black dots in place of the actual text of a password. …

Software Development python tkinter
Member Avatar for Gribouillis
0
352
Member Avatar for Jake.20

Guys, i have problem in my search button after i search the name it didn't highlight the name of the person. this is the code that i found on the internet. [CODE]Dim searchName As New TextBox Dim sname As String sname = InputBox("Search for gym user." & searchName.Text) Dim foundItem …

Software Development listview seo vb.net
Member Avatar for LuckyBhumkar
0
205
Member Avatar for HelpStudents

If I have a vector of structs [CODE] struct widgets { string widgetName; int age; int color; }; [/CODE] and widgetName had multiple words in lets say widget one type 45 blue widget two 34 yellow widget eight 46 green widget ten type 33 pink and I wanted to search …

Software Development c++
Member Avatar for arunp_eagle
0
152
Member Avatar for Oneryavuz

i have a reminder section in program and I want to see some icon when 2 days before to remind so i need to sort dates and i need to measure the time interval :) how can i do this thx for Answers :)

Software Development vb.net
Member Avatar for Oneryavuz
0
64
Member Avatar for Bob1000

okay so ive finished this code but now i have to modify it so that it uses the following lines of code to make the program "easier" to understand private static void writeText(BillboardInterface billboard, int x, int y, String text) private static void writeLetter(BillboardInterface billboard, int x, int y, char …

Software Development java java-swing
Member Avatar for stevanity
0
128
Member Avatar for HelpStudents

I am running into an issue trying to use an iterator to print. I am trying to print the widget name and widget type from a class and am getting an error on the iterator part. The rest of the code works fine but any comments on that are more …

Software Development c++
Member Avatar for tajendra
0
114
Member Avatar for Ehtesham Siddiq

Hi, My application is in VS2008 coded in Vb.net.I have a datagridview which is populated from Database.I have a save button on the same form that has DatagridView. My requirement is i want that all the records that are populated in DatagridView should be saved in a certain table of …

Software Development vb.net
Member Avatar for Ehtesham Siddiq
0
325
Member Avatar for berwick53

I'm currently trying to split a string into a 2d array. currently I've split it into a 1d array of each line using: [CODE]string[] LinesFile = streamReader.ReadToEnd().Split('\n');[/CODE] And now I'd like to Split it further into a new variable with a 2d array. how would I go about doing this. …

Software Development
Member Avatar for manugm_1987
0
143
Member Avatar for Jared1337

I'm having trouble getting this program to work for roman numeral conversion. I hope it says that i have one error, which is C2110: cannot add two pointers. here's what i have so far... ANY help would be great, thanks a bunch! :) [CODE]#include <iostream> using namespace std; int main() …

Software Development c c# c++
Member Avatar for raptr_dflo
0
4K
Member Avatar for jper

so im basically new at c++. i need to generate 20 entries randomly from 1-20, and each number must be unique. i was able to generate the number but i don't know how to make them unique. any suggestions?[CODE]#include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int …

Software Development c++
Member Avatar for jper
0
500
Member Avatar for behemothdave

Okay I am working on arrays in class this week and since it is an online course I don't have anyone to turn to. YAY me! Basically this is what I have been asked to do. [I]Create a class named TVShow.java. Data Fields can include a String containing the Name …

Software Development java java-swing
Member Avatar for behemothdave
0
249
Member Avatar for kalz

Hi I have a class which I have packed as a jar file.When I run the jar on its own the application executes as expected.I have got a JFrame(Main) which has a button which when clicked, fires off the jar. But the JasperViewer doesnt launch at the end unless the …

Software Development java
Member Avatar for NormR1
0
288
Member Avatar for mullerfourie

Hi, I need to finish a assignment on operator overloading but this one piece of code doesnt seem to make sense.. in my int main() i have int main() { Element a, b(5), c(7), d; cout << (5+b) << endl; this is just part of it, I have already implemented …

Software Development c++ oop
Member Avatar for mullerfourie
0
215
Member Avatar for shivya jain

hello, I want to link a text file in my userform. [B]Can i use linklabel for hyperlink?[/B] please help me........... thanks in advance.:confused:

Software Development perl vb.net
Member Avatar for Unhnd_Exception
0
280
Member Avatar for milil

Hello friends i am new on DaniWeb and new in Python... I have a few problems so i need help... I have a text document with a code from some web page, how can i extract some string between a two different strings in line and then that stings write …

Software Development python
Member Avatar for milil
0
194
Member Avatar for NathanOliver

Hey all, I was taking a look at my stringstream conversion function and I couldn't decide how I want to handle a bad conversions. I used an exception and then in main I would a use a try, catch block to get any exception. [code=c++] #include <sstream> #include <exception> class …

Software Development c++
Member Avatar for mike_2000_17
0
163
Member Avatar for SoulReaper1680

Hey, when I run the following code: [CODE]for(double i = 3; i >= 0; i -= 0.2) { cout << i << " "; }[/CODE] I get the output "3 2.8 2.6 2.4 2.2 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2". For some reason, it doesn't output …

Software Development c++
0
88
Member Avatar for Epicurus

I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src). header file [CODE=c++]#ifndef BULLETLIST2_H #define BULLETLIST2_H class BulletList2 { [...] } #endif // BULLETLIST2_H [/CODE] In …

Software Development c++ file-system linked-list ubuntu
Member Avatar for Epicurus
0
3K
Member Avatar for lolsn0r

Hi everyone I have a question to everyone. dim a as string ="preview=" dim b as string = "&amp" textbox1.text = a + "Random Code" + b result must be: preview=93a92&amp Random Code: I Need something that does not skip the text/number. Random Code can be everything. Example: 93a92,b3at2, 1256abcde …

Software Development vb.net
Member Avatar for marsky
1
144
Member Avatar for de Source

Hi Guys, i am making an application which can take longitude and latitude as input from user and will locate the respective point on google map using default web browser i am able to open a browser through this [ICODE] private void button1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("http://www.gorissen.info/Pierre/maps/googleMapLocation.php"); }[/ICODE] this …

Software Development web-browser
Member Avatar for Teme64
0
171
Member Avatar for arjen

help pls i need someone that can help me when i enter the date of birth using the [COLOR="Red"]datetimepicker[/COLOR] box it automatically compute the age and output in a textbox.text

Software Development vb.net
Member Avatar for anaszaheerp
0
7K
Member Avatar for harsimran05

i want to add isEnabled() method to JTextField, i write a code [CODE]tRate=new JTextField(); if (tRate.isEnabled()){ JOptionPane.showMessageDialog(c,"press any key to get rate"); }[/CODE] but it is giving message just after compilation of program instead when tRate is enabled

Software Development java
Member Avatar for harsimran05
0
155
Member Avatar for hackit

I am given a assignment in college to make a project in java. i want to make program in java but my teachers advice to make a system program not application program. But i don't know anything about system programming in java so please guys suggest me topics and also …

Software Development java
Member Avatar for hackit
0
115
Member Avatar for bornwith

I am trying to catch the System.InvalidCastException error. If I put a number into the calculator the program runs ok. If the calculate button is pressed with nothing in the text boxes I get the casting error Conversion from string "" to type 'Decimal' is not valid. I understand why …

Software Development pay-per-click vb.net visual-basic
Member Avatar for bornwith
0
169
Member Avatar for hackit

i want to make a program that contains two main classes and they call each other. [CODE]class Main1 { public static void main(String arg[]) { for(int i=0;i<5;i++) System.out.println(i); Main2 m1=new Main2(); } } class Main2 { public static void main(String arg[]) { static int j=0; for(int i=0;i<5;i++) System.out.println(i); if(j==3) break; …

Software Development java
Member Avatar for hackit
0
183

The End.