132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for andrew.mendonca.967

CSCI 15 Assignment #3, introduction to classes/objects. 100 points, due 10/21/13 A mixed expression is an expression of the form a + b/c, where a, b, and c are integers, b >= 0 and c > 0. By convention, b/c is always non-negative, and has the property that 0 <= …

Software Development c++ open-source
Member Avatar for tinstaafl
0
341
Member Avatar for amitash

Hi, I want to write a VBA macro in Word that open an Excel file, save that Excel file to another file (to another name), and then clear all content of the original Excel file. How to do that? Thanks!

Software Development file-system visual-basic
Member Avatar for Dieter123
0
499
Member Avatar for laolumichael

SELECT * FROM myTable WHERE columnId < 45; while (rs.next(){ result of row1 goes to row1.txt; result of row2 goes to row2.txt; result of row3 goes to row3.txt; result of row4 goes to row4.txt; }

Software Development java sql
Member Avatar for laolumichael
0
223
Member Avatar for Skotie44

Hello All I am writing this program which: - generates two random numbers -ask user to multiply them -checked users answer to see if its correct. - if not correct, asked the user to guess again I have everything working except the loop that is needed to have the user …

Software Development java
Member Avatar for JamesCherrill
0
321
Member Avatar for patel.jeel92

This is the code that I have so far but does not work. When called, the metod returns a pointer whose first and last points to null. The "given" linked list a linked list that we have to make using the add method from the inherited Linked List class. public …

Software Development java linked-list
Member Avatar for JamesCherrill
0
159
Member Avatar for blindislands

So I am using processing- similar to Java. I have made a button where I can add more ellipses (max 4) or press a different button to remove ellipses. I also made 4 different sets of keys for each of those ellipses to move. However, they can only move individually …

Software Development java
Member Avatar for JamesCherrill
0
176
Member Avatar for skyyadav

How to know the name of process in the other process? or who started that process.

Software Development c++ windows-api
Member Avatar for richieking
0
142
Member Avatar for Violet_82

Hi all, I wonder if you can help me to understand this. I came across the following code: @Override public String toString() { return String.format( "hourly employee: %s\n%s: $%,.2f; %s: %,.2f", super.toString(), "hourly wage", getWage(), "hours worked", getHours() ); } // end method toString I have some problems with the …

Software Development java
Member Avatar for Violet_82
0
3K
Member Avatar for reincom

# Im trying to input 11 digit numbers but i got an error when parsing from string to int # JLabel lblMobile = new JLabel("Mobile No. :"); add(lblMobile); JTextField txtMobile = new JTextField(""); add(txtMobile); int CUSMobnum = Integer.parseInt(txtMobile.getText());

Software Development java
Member Avatar for JamesCherrill
0
188
Member Avatar for iamcreasy

I want my program to throw exception on console window. But when exception occures Microsoft Visual C++ Runtime library dialog box shows up. What can I do to stop visual studio from stopping execution of my program when an exception occues and let my program handle the exception? I am …

Software Development c++ visual-studio
Member Avatar for deceptikon
0
438
Member Avatar for ReyJEnriquez

Hi Guys:-) I hope everyone is doing great:-) I Have a Question.. How to Display Selected Data in a DataGridView using it's own events?? This is my Code.. Public Class From1 Private Sub frmTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ChildNameTableAdapter.Fill(TestDataSet.ChildName) End Sub Private Sub DisplayButton_Click(ByVal sender …

Software Development display vb.net
Member Avatar for ravikash123
0
306
Member Avatar for ccbuilder

I have recently started assembler I am trying to send the letter H, to my LCD screen using basic assembly language, but it doesn't work. I'm using parallax 2x16 lcd http://learn.parallax.com/KickStart/27977 and Rx is hooked up to portb7. Atmega32 can someone tell what's wrong, because i couldn't any example code …

Software Development assembly
Member Avatar for ccbuilder
0
228
Member Avatar for jakub.peciak

Issue to read some part of XML file. Here is my XML file: <Report> <orders> <order savedby="manager" time="12:33:09"> <header saledate="04/Oct/2013" saletime="12:33:09" reqtime="12:33:09" /> <customer name="-" accname="123465" /> <payments> <payment transid="1" method="7" vposuser="manager" cardtype="" value="2.95"></payment> </payments> <totals deliverycharge="" splitdelchgstore="" splitdelchgdriver="" sercharge="0.00" /> <products> <product type="cookbook" qty="1" prodid="10000564" listprice="0.00" sellprice="10.00"> <stock /> …

Software Development visual-basic xml
Member Avatar for ravikash123
0
170
Member Avatar for castajiz_2

public void RotateImage(Graphics paper,string theString) { try { using (paper) { paper.RotateTransform(angle); angle++; sz = paper.MeasureString(theString, this.Font); paper.DrawString(theString, new Font("Arial", 24), Brushes.Black, -(sz.Width / 2), -(sz.Height / 2)); paper.Dispose(); } } catch (Exception e) { MessageBox.Show(e.ToString()); } i get an error saying parameter is not valid, but only if i …

Software Development
Member Avatar for castajiz_2
0
320
Member Avatar for stackOverflow

Hi All, I'm trying to use jdbc connection with sqlServer 2000. I'm using j2sdk1.4.2. And i have service pack2. I've installed the .jar files mssqlserver.jar, msutil.jar, msbase.jar. I have these jar files in E:\j2sdk1.4.2_04\lib. I'm trying to connect with the following program. [CODE] import java.*; import java.io.*; public class Connect{ …

Software Development java microsoft
Member Avatar for stultuske
0
9K
Member Avatar for Payal Gupta

Hello to all Below is my simple code. The problem is they are again and again showing that sum and i does not exist in the current context. I am not getting my problem how to correct the code.I am new learner of c# so please explain it also. namespace …

Software Development c#
Member Avatar for KushMishra
0
997
Member Avatar for null_pointer

when i compile the below code, it throws me error messages like the namespace does not exist in the current context.. i dont know where is the problem.. pls correct my errors. thanks in advance. using System; using System.Collections; using System.Net.Sockets; namespace venkat public class Nntp : System.Net.Sockets.TcpClient { string …

Software Development
Member Avatar for KushMishra
0
226
Member Avatar for erdhimant.patel

Hi, I have one form, in that one textbox & Buttons is there for Search functionality. Enter whatever in the text box, it will search from the one of the Tree View Node. So my question is when I form is showed to user and when I press the Enter …

Software Development
Member Avatar for Momerath
0
220
Member Avatar for prabhakar78

i am having combobox inside each cell of an datagrid.the combobox is in cellediting template and also having textblock which is in datatemplate.what i want now is when i select the item from the combobox the selected item has to be pass to the textblock in the same cell.i tried …

Software Development asp.net c#
Member Avatar for KushMishra
0
691
Member Avatar for jared.geli

hi I'm having problems in my crystal report where all the selected rows in my datagrid will show up in my crystal report but instead it showing me an exception selectcommand.connection has not been initialized here's my code in my form where the datagrid is: Dim cmd As OleDbCommand = …

Software Development dataset vb.net visual-basic
Member Avatar for jared.geli
0
348
Member Avatar for mikewyatt

Hey.... I am just days away from completing a year-long project and want to convert the netbeans project to a stand-alone java program that can be installed on another system without netbeans. YEAH! Sorry - did my happy dance! the Program has a .main java file and about 15 other …

Software Development java java-netbeans
Member Avatar for mikewyatt
0
890
Member Avatar for mikewyatt

I am trying to change my database(s) from network to embedded. I believe that the driver is working and has found the database requested with the following code: try { // connect method - embedded driver String dbURL1 = "jdbc:derby:Databases/Armor"; Connection conn1 = DriverManager.getConnection(dbURL1); if (conn1 != null) { System.out.println("Connected …

Software Development apache java java-netbeans
Member Avatar for mikewyatt
0
4K
Member Avatar for locsin

greetings! When i First start my VB6 program with data report it works fine. The report displayed directly. but when i try to open other programs in other directory and then when i re-run my program in data report operation a msgbox appear "Please Enter MS Jet OLE DB Initialization …

Software Development open-source visual-basic
Member Avatar for yokoshima.mur
0
3K
Member Avatar for Sepand_1

Hello, I want to add 3 digits (1+2+3) together but im getting wiered char instead of the resault. please advice where am i wrong. comments are added for more information they are not included in pep8 object codes. Thanks. D1 00 14 ;First number 71 00 16 ;Add the two …

Software Development assembly
Member Avatar for Sepand_1
0
269
Member Avatar for karma2you

Hello,i want my my program to look just like the one below the line: But i keep getting the same issue of the void Instructions() coming before the Instruction; input (( i want it the other way around)) For example i keep getting(after compile): I have a capital letter in …

Software Development c
Member Avatar for Ancient Dragon
0
170
Member Avatar for RWD_

Hi there, I'm currently a student in an intro to Java course at the college level. I've been doing well all semester, but I've ran into trouble with our latest lab. It's a bonus lab, so naturally the content wasn't covered in class. After playing around with what I found …

Software Development java
Member Avatar for JamesCherrill
0
718
Member Avatar for blue_Student

I want to have a changing output in the 2nd textfield that is 'output' in my Action class as I enter input in the 'input'textfield. I don't know why it doesn't give any output... pls help The comboBoxes convertTo---contains "IEEE" and "DEC" while precisions contain "Long", "Single", "Double". Any advice …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
240
Member Avatar for nitin1

hello, I have started learning python these days. Although i am following a course on coursera.org for learning it , but that course is going very very slow. Also, I don't know if that course contains all things which is need to build codes in python. I have very good …

Software Development ide python
Member Avatar for nitin1
0
417
Member Avatar for zampi91

I'm trying to create two classes in C++. Each class implements different serial and its function that is called when it receives a data on the serial port. Class 1: int serialLn = open("/dev/ttyS2", O_RDWR | O_NONBLOCK | O_NOCTTY); struct termios options; struct serial_struct serInfo; struct sigaction saio; //Serial speed …

Software Development c++
Member Avatar for zampi91
0
944
Member Avatar for Amman_1

Please Guide me i have data which is in ascii form. First i need to convert into hexa then from hexa values generate image in .png here are values which are in ascii form Collapse | Copy Code $$,,,,47,070807080808070708090708080808080808080A0908080809090809080908090808080908090809090A0809090909090909090A0A090A090B0B090A0909080909090A090909090A0A0A090A0A0A090A09090A0A0A0A0A0A0A0A090B0A0A0A0C0B090A0C0B0A090A0A0B090A090A0A0A0A0B0A0B0A0909090A0A090A090A09090909080909080808090C0A09090908080808090908080808070706070707070706070607070706070708070808070607070707080707070708080708080808090808080808080708080908080809080908080809080807080808080808090808080808090808070808090909080908090808080909090909090A090A0A0A090908080809090909090909080909090909080908090908080809090808080807080709080807070607080807080807070805050607060605060607060606070606060606080707060707080707070706070708080807080707080807080808080808080809080808080908080808080708080808080808080708080808080807080807080908080808080A09090909080908090909090A0909090A09090909090A0809090A0909090A0A0A09090A0A09090808080808080707080807080808070807070708070706070607050606060606050606070606060606070607070706070606070707070707080807080808080807070809080808080808080808090809* `Inline Code Example Here` 1、Function description Upload fingerprint features stored in …

Software Development image
0
258
Member Avatar for yorro

I have connected VB.net and mySQL on a the same PC before, but I have no Idea how to connect VB.net to a remote PC(LAN) I've only changed the server This is my code. I removed some of the details, but it works on server=localhost [CODE] conn = New MySqlConnection() …

Software Development mysql vb.net
Member Avatar for nathanl.dulguime
0
3K
Member Avatar for software girl

i have to calculate the MEDIAN of an unsorted array(i.e,array must be in sorted order before calculation of median).I am a beginner in java.kindly help me with some kinda code,and learn me how to calculate the median in this case?thankx

Software Development java
Member Avatar for JamesCherrill
0
741
Member Avatar for Garidius

Hello to all, I'm new to C++, but I have a program in C++ that runs from DOS console. I'd like to execute the same program adding a simple GUI with a button to select a file and inserting a value in a text box. How can I do this? …

Software Development c++ gui
Member Avatar for Garidius
0
553
Member Avatar for yasaswyg

How do I compile a c program in Visual C++ 2008 express edition? I tried finding a compile button but i couldnt find it

Software Development c c++
Member Avatar for asabjork88
0
374
Member Avatar for ZombieKnight93

This is the program we were assigned to do (Project: Emergency Response Class) The North American emergency response service, 9-1-1, connects callers to a local Public Service Answering Point (PSAP). Traditionally, the PSAP would ask the caller for identification information—including the caller’s address, phone number and the nature of the …

Software Development java
Member Avatar for ZombieKnight93
0
1K
Member Avatar for reincom

if(isource == txtFirstname){ try{ String searchHotelCustomer = "Select * from HotelCustomer where CUSFirstName='"+CUSFirstName+"'"; driver.selectQuery(searchHotelCustomer); ResultSet rsSearch = driver.rs; if(rsSearch.next()){ txtRoomNum.setText(rsSearch.getString("RoomNumber")); } } how do i get int value from text?

Software Development java
Member Avatar for Seldar
0
279
Member Avatar for new_developer

Hi there, I need getch() type function for int through which I can take input from user, to store it in int variable. I actually want to use in menu from which user selectes any number to call that function to carray that task. Reason of using getch() function is …

Software Development c++
Member Avatar for Moschops
0
188
Member Avatar for Thundermax

Just one question, how to add space end of string?

Software Development c
Member Avatar for Adak
0
216
Member Avatar for krystosan

I hav amde this alias : test='python -m nose.core --tests $1 -s --with-coverage' this runs but gives an OS Error saying: $ test test_filterList.py nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module ....E ====================================================================== ERROR: Failure: OSError (No such file /Users/sanjeevkumar/Development/python/-bash) ---------------------------------------------------------------------- Traceback (most recent call last): File …

Software Development python unix
Member Avatar for krystosan
0
563
Member Avatar for princessophia

For this assignment, I am supposed to get a starting population, an annual death rate, an annual birth rate, and the number of years to display. I am then supposed to use these values in the formula n = p*(1 + b)*(1-d), where n is the projected population, b is …

Software Development c++
Member Avatar for Moschops
0
197
Member Avatar for blue_Student

Hi, I'm doing an input validation of a String. The number should have a decimal pt, a whole number and a fraction part. It can have a negative sign (-) but not positive sign(+). This is what I've done but when I write --43.05, it prints false. String n = …

Software Development java regex
Member Avatar for blue_Student
0
226
Member Avatar for Tewhano

This is homework so I am not looking for a better way to do this. I am only asking for a second pair of eyes to spot my mistake. I have a function that takes a two-dimensional array and fills the first row with the elements from a one-dimensional array. …

Software Development c++
Member Avatar for Tewhano
0
212
Member Avatar for minimee120

Hello all, I'm working on a simple self-chat program, which will eventually lead into a server/client chat program, but for now I am trying to learn the basics. When I run my applet, when I type something in the textarea, it shows up in the text field just fine, but …

Software Development java
Member Avatar for JamesCherrill
0
273
Member Avatar for Ms

Hi, how i can fix my code to support keyboard input? /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculater1; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; …

Software Development java java-swing
Member Avatar for JamesCherrill
0
3K
Member Avatar for maiza.razzaq

//write a program whih takes input until user enters a negative number. print the sum of given inputs. #include <iostream> using namespace std; int main () { int a[10]; cout << " enter numbers " << endl ; int i = 0 ; while ( i < 10) {while (a[i] …

Software Development c++ mathematics
Member Avatar for nullptr
0
286
Member Avatar for saintrenz

Please Help: I am making an internet Cafe system that will login his/her account If user still have time left on his account(database) then login success and countsdown hours and minutes to zero if user logsout it will update the database "timeleft" of the current user If 5 minutes remaining …

Member Avatar for Hazuan Nazri
0
1K
Member Avatar for david_25

How do you connect two classes without using inheritance.

Software Development java
Member Avatar for JamesCherrill
0
135
Member Avatar for endofsemester.afterparty

Need help finalizing program, I'm able to display the highest points and during what game but it's not working for the lowest score and game. int max = 1; int min = 1; int highestGame = 1; int lowestGame = 1; Scanner input = new Scanner(System.in); System.out.println("Enter Texan's First 8 …

Software Development display java
Member Avatar for stultuske
0
170
Member Avatar for COKEDUDE

I would like to print my values in my array. I am filling my values with a string tokenizer that I leave up to the user to fill. When I use this method I get extra values since its initialized to 10. int[] anArray = new int[10]; for (int i …

Software Development java
Member Avatar for stultuske
0
191
Member Avatar for karma2you

this is the assignment I need some help with.I have posted what i have written so far for this assignment and am not sure what steps to take next, or if i have properly coded so far. I'm trying to get my program to work but it won't compile i …

Software Development c
Member Avatar for Adak
0
829

The End.