132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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] | |
[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 | |
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 | |
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 | |
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 … | |
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? | |
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 … | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 ![]() |
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 … | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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> … | |
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 | |
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 | |
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 | |
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 | |
[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 | |
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 | |
Java program to find the longest substring which are common in 3 strings. Please help me out. Madhurita Software Development java | |
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. | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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? | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 |
The End.