132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bobbyg118

I need some help. I want this program to ask the user how many grades they would like to enter. Than when the user inputs it should ask for the prompt enter your grades as many times as the user wanted. Than assign each letter to the number of grades. …

Software Development c++
Member Avatar for mlesniak
0
104
Member Avatar for smart99

Hi all i am new in j2ee but have good experince in asp.net what is the best book or web to start java [U][/U]

Software Development asp.net java
Member Avatar for NP-complete
0
73
Member Avatar for xzero_x

[CODE]import java.util.Date; class House implements Cloneable,Comparable { private int id; private double area; private Date Whenbuilt; public House(int id,double area) { this.id=id; this.area=area; Whenbuilt=new Date(); } public String toString() { return id+" "+area+" "+Whenbuilt; } public int compareTo(Object o) { if(area>((House)o).area) return 1; else if(area<((House)o).area) return -1; return 0; } …

Software Development java
Member Avatar for NP-complete
0
90
Member Avatar for maharjun

Hello people, im basically looking for a method to create a class called "real_no" which has the capacity to store numbers as they are. i.e if the input is given as 2 + Root(2) then i should be able to store it as 2 + Root(2) and not 3.414. also, …

Software Development c++ data-structure storage
Member Avatar for maharjun
0
105
Member Avatar for scream2ice

I'm trying to convert a String that I've read from the first line of a text file to integer this is how: String="8 12 10" and this is what I'd like to have: int x=8 int y=12 int z=10 parseInt doesn't work because it gives me some other number (perhaps …

Software Development java
Member Avatar for Abdel_eid
0
248
Member Avatar for God Coder123

Hey Guys i seem to be having an issue with the follwoing code when i complie in VC++ 2010. It compiles fine in both minGW and VC++ 2008. The code is as follows... The Program accepts three inputs whereby it outputs them in alphabetical order, very simple. [CODE]#include <iostream> #include …

Software Development algorithm c++
Member Avatar for God Coder123
0
141
Member Avatar for gameon

hello i have a problem...i want to insert a pic to my c program. is it possible to import a pic in c? if it is, how can we do it?

Software Development c image
Member Avatar for Tellalca
0
146
Member Avatar for bill_kearns

OK my programming/accountant friends, this is very long but I need your help again with an ad-hoc report! I am having a hard time getting my brain around solving this part of an application I am programming and was hoping to get your point of view. Maybe I'm going about …

Software Development c c# c++
Member Avatar for bill_kearns
0
1K
Member Avatar for krap_nek

Hey guys, What I'm trying to do is a function that gets a certain array of structures and print some of the information on the screen, like the name and id_number. The thing is that some fields in the structure are repeated and my goal is to show only one …

Software Development c
Member Avatar for Tellalca
0
118
Member Avatar for ennoil

I have a csv file with 4 columns that I want to use to create menus. For example, the second column has values such as "TEST", "QA", "PROD" and a couple of others. I want to take all the values from the second column, weed out the duplicates, then create …

Software Development python
Member Avatar for sergb
0
2K
Member Avatar for tenoran

Thanks for reading my post. I just started perl programming. I need to print the prime factors on the screen. but when I executed my code, it shows nothing. I dont know what else to do. This is the code I got... [CODE] # number to factor is passed as …

Software Development first-post perl
Member Avatar for barabala
0
277
Member Avatar for bbman

Hey, I was trying to use the code from: [url]http://www.java2s.com/Tutorial/CSharp/0520__Windows/GetcurrentActiveWindow.htm[/url] to get the topmost window handle; however, I need to click a notify icon, which will bring up a form. I tried to use [CODE] private void notifyIcon1_MouseMove(object sender, MouseEventArgs e) { if (this.Visible == false && e.Button == System.Windows.Forms.MouseButtons.None) …

Software Development
Member Avatar for bbman
0
105
Member Avatar for Ajantis

Hello :) Suppose I input an int value with Scanner sc = new Scanner(System.in)... and I want to count how many divisors that value has, how would I proceed in "recognizing" a divisor? if ((input/2)%10 == 0)? I'd prefer doing this recursively somehow. Can someone help? :) Best Wishes!

Software Development java
Member Avatar for Ajantis
0
83
Member Avatar for SBA-CDeCinko

I have an ASP.NET gridview where I allow the user to edit a record. I need to validate multiple fields as one. I need to require that the user either enter a first and last name OR a company name. All three cannot be blank. Most of the sample code …

Software Development asp asp.net
Member Avatar for SBA-CDeCinko
0
148
Member Avatar for Freespider

i got an assigment, for tomorow, i have a text file, and i need to convert it to binary file. text file for example: 2 - how many products ipod 1000 2 - product name, price stock playStation 23 9 i need to preper this binary file: first the size, …

Software Development c file-system
Member Avatar for abhimanipal
0
109
Member Avatar for judithSampathwa

hi there, i have a desktop application that in visual studio 2008 standard edition in C#.currently i have a userlogin in the mdf file and when login in to the system. what i want is to make the windows credinals in to use. how can i upgrade my application so …

Software Development visual-studio
Member Avatar for nick.crane
0
172
Member Avatar for pietromarchy

Hi guys, a not so complex question: [CODE] form xml.etree.ElementTree import * >>> tostring("<home><room>bedroom</room></home>") '<home><room>bedroom</room></home>' [/CODE] I would like to have the indentation in for the string. Something like: <home> [INDENT]<room>bedroom</room> [/INDENT] </home> Of course my document is a little complex. Is it possible to have it in an automatic …

Software Development python xml
Member Avatar for pietromarchy
0
674
Member Avatar for jellybeannn

The DataTable's Rows show likw this, how do I fix it. [B]Month1[/B] [B]Month2[/B] [B]Month3[/B] 1 2 3 1 2 3 1 2 3 [code] double C146_Calc = 0.0; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // create the table DataSet ds = GetTable(); outputView.DataSource = ds; outputView.DataBind(); …

Software Development dataset
Member Avatar for jellybeannn
0
131
Member Avatar for aaronmk2

I am tring to remove three string from a que using nodes. When I try to remove the third one it does so, but then I get a debugging error. I think the problem is that I am not deleting the last node but I cannot figure out what I …

Software Development c++ queue
Member Avatar for arshad115
0
133
Member Avatar for nirandhn

Hi, I am new in xslt ,i want to remove any tag from xml file with using xslt . Can anybody assit me. Thanks in Advance. Niranjan Kumar My XMl file:- [CODE=XML]<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="emp.xsl"?> <company> <employee id="1"> <name>Niranjan<p>tkadakdk sadfafk ff</p></name> <roll>1</roll> <contact>Delhi</contact> </employee> <employee id="2"> <name>brijesh</name> <roll>1</roll> <contact>Noida</contact> …

Software Development xml
Member Avatar for nirandhn
0
2K
Member Avatar for El_Tazar

I need to change my project to a program that can be installed,please send me instructions on how to accomplish this,and I am having a problem copying my system to other pc's. It works fine on my pc,but when I copy to another pc,it only allows me to login and …

Software Development vb.net
Member Avatar for El_Tazar
0
72
Member Avatar for vandalised

Hi basically i have this: [code]<?xml version="1.0" encoding="ISO-8859-1"?> <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 Parton</artist> <country>USA</country> <company>RCA</company> <price>9.90</price> <year>1982</year> </cd> <cd> <title>Still got the blues</title> <artist>Gary Moore</artist> <country>UK</country> <company>Virgin …

Software Development xml
Member Avatar for iceandrews
0
754
Member Avatar for electricrain

i have been asked to make phone book console application in java using collections/data structure i have done some of it. i am having problem that i have to store firstname,lastname,cellnumber,emailaddress etc in such a way into collection so that if some one wants to search phone number from phonebook …

Software Development data-structure java regex
Member Avatar for JamesCherrill
0
632
Member Avatar for Suarli

Hi; in Ubuntu and C++, i need the code to obtain and show for screen myself MAC. Can you help me?. This is part of a big program and it's the only thing which i have problems I can use: #include <algorithm> #include <cassert> #include <iostream> #include <sstream> #include <vector> …

Software Development algorithm c++ ubuntu
Member Avatar for daviddoria
0
163
Member Avatar for tom3.14

Hello long time reader first time poster. (Long time VB6 user newb at C#) I wish to hold the mouse down and slide over cells in a data view control. As the mouse if moved from cell to cell a tool tip is displayed. (The info will be pulled off …

Software Development
Member Avatar for RobCr
0
692
Member Avatar for Clawsy

Hi, I have a few simple questions regarding sending SMS from my PC to my moble phone. I have two libraries which should be able to send SMS messages: [CODE] import com.simplewire.sms.*; public class send_text { public static void main(String[] args) throws Exception { SMS sms = new SMS(); // …

Software Development java
Member Avatar for jwenting
0
987
Member Avatar for BaluM

Hello All, Could you please help me on below issue!!!! I am write and read binary file as below, when i write array to file it was writing good but when i read same array i am always loosing last values and below is the code for both operations. Writing …

Software Development c++ file-system ios
Member Avatar for BaluM
0
331
Member Avatar for ceyesuma

Is it possible to write a class and hava a another class add that to a panel?

Software Development java
Member Avatar for ceyesuma
0
89
Member Avatar for bjoernh

Hi there. Day 2 of programming python. In this thread I posted my first attempt [url]http://www.daniweb.com/forums/post1231604.html#post1231604[/url] and growing from there it goes to slightly deeper water here. I have three .txt files: nvutf8.txt here new vocab items are stored esutf8.txt here example sentences are stored exoututf8.txt example sentences from esutf8.txt …

Software Development python
Member Avatar for bjoernh
0
173
Member Avatar for jag4

[code]Dim MonPrice As Decimal If RadioBtnMon20.Checked Then TxBxPRICE.Text = TxBxPRICE.Text MonPrice = MonPrice + 120 ListBox1.Items.Add(RadioBtnMon20.Text) End If If RadioBtnMonHD.Checked Then TxBxPRICE.Text = TxBxPRICE.Text MonPrice = MonPrice + 140 ListBox1.Items.Add(RadioBtnMonHD.Text) End If If RadioBtnMonFullHD.Checked Then MonPrice = MonPrice - 140 + 170 ListBox1.Items.Add(RadioBtnMonFullHD.Text) ElseIf RadioBtnMoniterStand.Checked Then ListBox1.Items.Add(RadioBtnMoniterStand.Text) End If TxBxPRICE.Text …

Software Development vb.net visual-basic
Member Avatar for Luc001
0
171
Member Avatar for Abdul Rouf

I have tried my best but failed so i have decided to discuss with u all about this matter. when i run Given below code on my current system it's OK but when i install this on my client machine then it gives my a window during call Print button …

Software Development vb.net
Member Avatar for pritesh2010
0
131
Member Avatar for madhurita

Java program to find the longest substring which are common in 3 strings. Please help me out. Madhurita

Software Development java
Member Avatar for finito
0
99
Member Avatar for prasadsatam

I am able to display one table record on crysatal report,but i get balnk feild when i am retriving that feilds from multiple table on A3 paper. can you please help me? Prasad.

Software Development display vb.net
Member Avatar for SHINICHI_N
0
272
Member Avatar for kigams

The project should be able to perform the task of a payroll system for the University workers and the enrollment system for the Students. I have already designed the interface for the whole project. could you please send me the codes for the program. Basically two programs of payroll system …

Software Development visual-basic
Member Avatar for jhai_salvador
0
172
Member Avatar for idlackage

Probably a stupid question, but I need the 'colour' variable for an external class, and it can only return something when it's declared in the constructor. However, the colour returned would then never change. Is there a way to return values from the change listener, or anything else that I …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
527
Member Avatar for vs.vaidyanathan

when i do a stderr redirect to stdout, does the shell open the stdout file? if so is there any way i can capture the opening of this file? basically what i want to do is at the firstinstance of an error i want my perl script to die and …

Software Development perl shell-scripting
0
86
Member Avatar for mattloto

I am learning assembly and I have a question about interrupts. Are they bound to a specific OS? I, like a lot of people, want to make a simple OS of my own, not that I ever will. I was wondering if I can use interrupts like 10h without having …

Software Development assembly
Member Avatar for maf5693
0
98
Member Avatar for anuragcoder

Hi guys! I want the user to enter the day, month and year in a dd/mm/yyyy format. But what i've written doesn't seem to work. Code: [CODE]char d[2]; char m[2]; char y[4]; cout << "Day:"; gets(d); cout << "Month:"; gets(m); cout << "Year:"; gets(y); [/CODE] In the output, it doesn't …

Software Development c++
Member Avatar for anuragcoder
0
219
Member Avatar for jiraiya

Hi all, I'm working on a project in Java that involves developing a GUI that can, among other things, receive user input from the keyboard, receive and store handwritten input (characters/words) done with a mouse, and display png images. Eventually the program will be used on a linux environment, but …

Software Development gui java
Member Avatar for jwenting
0
91
Member Avatar for sam1

hi does any1 knw how to put the path for servlets in netbeans. it is located in src/java/controll/servlet i have this in my code action = "servlet/controll.servlet" but it says directory not found thanx ps I posted it here because nobody is answering it in jsp section!! :rolleyes:

Software Development java java-jsp java-netbeans
Member Avatar for mxd4n13l0n
0
205
Member Avatar for spartanace

My file structure is Project data sort main.cpp code as follows [CODE]#include <cstdlib> #include <iostream> #include <fstream> #include <string> #include "genlist.cpp" #include "genstring.cpp" using namespace std; int main(int argc, char *argv[]) { ifstream in; ofstream out; int unique=0; GenList<string> gList; gList.checkFileOpen(in,out); gList.populateNUnique(in); gList.sort(1); gList.output(); in.close(); system("PAUSE"); return EXIT_SUCCESS; } [/CODE] …

Software Development c++ data-structure file-stream
Member Avatar for mrnutty
0
160
Member Avatar for zalogarcia

i need to make a program that adds numbers, but asking first the user how many numbers he wants to add, and then adding them. any one knows how to do that

Software Development python
Member Avatar for snippsat
0
103
Member Avatar for new2programming

How do i incoporate this countdown timer into my main? ive given it a go but it comes up a black screen.. timer: [CODE]/* clock example: countdown */ #include <stdio.h> #include <time.h> void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; …

Software Development c++
Member Avatar for new2programming
0
217
Member Avatar for ultimatebuster

I just used MonoDevelop 2.2 for Python under Ubuntu. IT'S AMAZING! Code hinting seems to not be working though... Anyone has any idea on when the python is gonna jump to windows?

Software Development python ubuntu
Member Avatar for jcao219
0
198
Member Avatar for fellixombc

Alright, so everything works, except there are a couple minor bugs. Also, is there a more efficient way in doing my listen method? Thanks. Bugs: -First client does not recv the information it sent, until the 2nd client connects. (the server sends it back) -Everyother click recv's everything twice. Server.cpp …

Software Development c c# c++ client-server
Member Avatar for fellixombc
0
491
Member Avatar for aaronmk2

The if statment I am using in my main program is not working, it should return the else value, but is returning the information in the if part of the statment and then it causes a run time error. I am not sure what is going wrong. [CODE] que1.add("Fish"); que1.add("Whale"); …

Software Development c++
Member Avatar for NathanOliver
0
87
Member Avatar for JJGarc1a

Hi everyone, I have the current situation, I have get done with the datagridview cellvalidation, but, I need that after the validation get's done, to set different columns values on the same datagridview. [code] If Vacaciones_HistoricoDataGridView.Columns(e.ColumnIndex).Name = "DataGridViewTextBoxColumn7" Then If e.FormattedValue.ToString() > Dias_Asueto Then MsgBox("Los dias correspondientes son " & …

Software Development vb.net
Member Avatar for LennieKuah
0
3K
Member Avatar for jodhy

How can i randomize words that i have put into an array so for example if an array has the words: hi bye what how would i make it say a random one? THANK YOU

Software Development pascal
Member Avatar for jodhy
0
93
Member Avatar for glubbish

Hi all, When I click on the add button I get "exception class EdatabaseError with message 'DBedit2: Field 'RoomNumber' not found I am trying to get the max roomnumber to insert a new room max(roomnumber)+1 Its a fundamental hole in my knowledge here, on how to get a result from …

Software Development dataset delphi open-source pascal
Member Avatar for glubbish
0
671
Member Avatar for xe_nayr

Hello, does anyone know how to access an item like a button in a windows application? For example, I would like to create an application that would be able to look at notepad's file menu and "know" that file, edit, etc on the file menu are clickable objects and identify …

Software Development vb.net
Member Avatar for MaxDes
0
89

The End.