132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for chiiqui

I am having an error with my constructor, why is that? :| [CODE]public class Name{ private String firstName; private String middleName; private String lastName; public Name(){ this( "null" , "null" , "null"); } public Name(String first){ this(first," "," "); } public Name(String middle){ this(" ",middle," "); } public Name(String fName …

Software Development java oop
Member Avatar for chiiqui
0
233
Member Avatar for TSaunders84

ok i having a little trouble adding a string to the new vector that i created i was wondering if i need this line [CODE]vector<string>* row = new vector<string>;[/CODE] and if i do i need to keep calling or is there a much better what to create a new row …

Software Development c++
Member Avatar for Fbody
0
139
Member Avatar for LittleMissChoco

Im having problems with my code. :( the code should. the submenu for my menu should be on a radio button type. here's my first code: [CODE] public ... { //for background JMenuItem image = new JMenuItem("Images"); JMenuItem music = new JMenuItem("Music"); //submenu of music JRadioButtonMenuItem play = new JRadioButtonMenuItem("Play"); …

Software Development java
Member Avatar for LittleMissChoco
0
149
Member Avatar for austenx

Good evening all, This is the first time I have needed to start a new topic, I can usually find the answers via the Google Gods, but not this time – I would very much appreciate your help. I have written a number of small apps in the past, have …

Software Development vb.net
Member Avatar for austenx
0
591
Member Avatar for nirnal

hi everybody i have two textbox and one combobox from database connection i want to make a login with three objects.. if textbox1 have this valui and textbox2 have this value and combobox have this value.. then it will check in to the dbms.. and if currect.. then login success.. …

Software Development visual-basic
Member Avatar for Netcode
0
111
Member Avatar for gauravrishi
Member Avatar for cse.avinash
0
186
Member Avatar for aFg3

I want to search only in my files, contains only .txt and .c [CODE] This doesn't work for me ls | grep .txt | grep .c[/CODE] I want the ls and grep .txt, .c ??Thanks??

Software Development shell-scripting
Member Avatar for L7Sqr
0
130
Member Avatar for meli123

[CODE]int m, n, pow; cout << "Enter m and n: "; cin >> m >> n; pow = 1; for (int i=1; i<=n; i++) pow = pow * m; cout << m << "^" << n << " = " << pow << endl; return 0; }[/CODE] I dont get …

Software Development c++
Member Avatar for tkud
0
107
Member Avatar for MattJones

Hey Guys, I'm working on a C++ program for school. Basically the Program inputs a file of points and outputs an svg file that contains the Graph with the least number of edges. We need to implement this with the Kruskal and Prim algorithm, and the algorithm needs to be …

Software Development algorithm c++ file-stream oop queue
Member Avatar for Fbody
0
205
Member Avatar for naazsayed

i want a field to be fetched from the database of one form and display it in another form i tried but the simple program works that to the text in the textbox appears in another forms textbox on button click event how to retrieve a value from a database …

Software Development vb.net
Member Avatar for lolafuertes
0
193
Member Avatar for geeksforgeek

Help.....!! Please explain me the output of the following code.I am unable to understand why infinte loop is occuring for i>126. [CODE] #include<stdio.h> int main(void) { char i=2; while(i<=127) { printf("%d\n",i); i+=1; } return 0; } [/CODE]

Software Development c
Member Avatar for Narue
0
104
Member Avatar for TigerTeck

[CODE]/** * @(#)Car.java * *Chp.3 3.5 * @author Alec Ziff * @version 1.00 2011/9/23 */ public class Car { { public Car(double fuelEffciency) //all values are in miles per gallon { efficiency= fuelEfficiency; } public void addGas(double gas) { double newFuel= fuel + gas; fuel= newFuel; } public double drive( …

Software Development java
Member Avatar for NormR1
0
406
Member Avatar for TigerTeck

[CODE]public class CarTester { public static void main (String[] args) { Car myMysteryMachine = new Car (1000); // Car gets 1000 miles per gallon myMysteryMachine.addGas(20); // 20 gallons of gas are added to the tank myMysteryMachine.drive(100); // Driving the car 100 miles System.out.println(myMysteryMachine.getGasInTank()); // Method prints the remaining fuel } …

Software Development java
Member Avatar for NormR1
0
353
Member Avatar for Pravinrasal

want to print Jframe like our word document. I have one jframe on jframe i have Jpanel ond on that panel i have j label . In jlabel i written a letter i want to print that letter so how can I print that letter. thank you

Software Development java
Member Avatar for JamesCherrill
0
276
Member Avatar for xcrunner23

DiceRoller.java You are to write a program which will ask the user for the number and type of dice they would like to roll in the form of “xdy”. The x represents the number of dice, and the y represents how many sides the dice have. Your program MUST read …

Software Development java
Member Avatar for NormR1
0
461
Member Avatar for ninjaConfused

Ok, I have this project In which I have to Write a Java program that can simulate a truck delivery, using the Java console as the exclusive input and output device. That is, each input to the TruckItem class, either unload or load an item (meaning creation of an object …

Software Development java
Member Avatar for NormR1
0
282
Member Avatar for bibiki

hey there, I am trying to build a small around soccer/football matches. So, I have built a class that models a Match (Match.java). It only contains field variables like hostid, guestid, matchid, result, and such, and setter and getter methods. When I retrieve matches from my sqlite database, I build …

Software Development java sqlite
Member Avatar for bibiki
0
673
Member Avatar for khentz

Hi, I have a search textbox in my form. I also have, textboxes for computer name, mouse serial number, monitor serial number and phone number. While in my database, they are all reside in one table named tblComputerAsset. I am using Access for my Database. What I want to do …

Software Development display vb.net
Member Avatar for Netcode
0
92
Member Avatar for khentz

Hi, I have a search textbox,I would like to know how to list all of the searched items in the list view.

Software Development listview vb.net
Member Avatar for khentz
0
86
Member Avatar for stereomatching

I am learning concurrency programming, I try my best yet can't solve the problem [CODE] boost::mutex mut; std::vector<int> int_vector; boost::condition_variable int_cond; void data_preparation_thread() { while(int_vector.size() != 10) { std::cout<<"data preparation thread :: vector size = "<<int_vector.size()<<std::endl; boost::lock_guard<boost::mutex> lk(mut); int_vector.push_back(4); int_cond.notify_one(); } } void data_processing_thread() { while(1) { std::cout<<"front :: data …

Software Development c++ multithreading
Member Avatar for stereomatching
0
237
Member Avatar for kccute

Hi guys ! I have big problem in my project i cant display the data of my database (.mdb) to my Data report i need some expert help to this. Im new to this im such a loooooser... plss help me Thanks in advance..

Software Development visual-basic
Member Avatar for abu taher
0
182
Member Avatar for lukasrzeznik

Hello, I have one problem with xml reading. My xml file: <TransactionDetail> <SaleItem> [B]<ItemID>02900</ItemID>[/B] <Discount Splitted="false" TypeCode="6000"> <-- New section <LineNumber>7</LineNumber> [COLOR="Red"]<Amount>0.36</Amount>[/COLOR] <DiscountableAmount>1.19</DiscountableAmount> <DiscountName>RABATT</DiscountName> <DerivationRuleID>99</DerivationRuleID> <PromotionId>99</PromotionId> </Discount> </SaleItem> </TransactionDetail> How I can get "ItemID" when "Amount" > 0 ? My code: [CODE]XmlReader textReader = XmlReader.Create(new StreamReader(@"C:\TEMP\Working\EJR\"+ejrName, Encoding.GetEncoding("ISO-8859-1"))); XmlDocument xmlDoc = …

Software Development xml
Member Avatar for lukasrzeznik
0
136
Member Avatar for suioius

I got a homework, its due by monday. I have read textbook a lot but i still dont know what to do next steps. Here is problem. The program should prompt the user for and accept two inputs: 1. The total price (including any applicable tax, etc.) for whatever was …

Software Development java
Member Avatar for CoolPrizes
0
156
Member Avatar for divyam_shukla

i have an existing database and i want to attach that database one time to sql server and when thee database is attached then it open that database

Software Development c c# c++ sql
Member Avatar for kvprajapati
0
116
Member Avatar for FaridMasood

I am getting thid error while opening an excel file. Plz help me why this is happening. In fact when i run my application on my computer it works but it generates this error when applications is runned on other computer. Other computer also have the dotNet framework installed and …

Software Development
Member Avatar for Soil_
0
130
Member Avatar for lianpiau

I want get smaller number of Qty from select record in datagridview. after that insert to another Table. For Example, datagridview A got 5 record with same PONO, when I move these record to datagridview B, they will become a summary record and 5 records become 1 record. like picture …

Software Development
Member Avatar for Mitja Bonca
0
283
Member Avatar for Troebadoer

I am pretty new to C#. I am a Borland c++ developer and is used to "newing" and "deleting" objects programmatically. I understand that with C# the garbage collector is responsible for the deleting of objects. It seems though that I have a memory leak. I am developing a SQLServerDBInterface …

Software Development motherboards-cpu-ram user-interface
Member Avatar for Troebadoer
0
229
Member Avatar for Ruchi224

Hello.. I am new to vb.net. Need to know how can I retrieve the value from compname field of my table, to the textbox7 in form i made. While the user enters data in the textbox, i need to compare the entered textbox value, if it exists or not, in …

Software Development vb.net
Member Avatar for kvprajapati
0
147
Member Avatar for Kamal_Java

Dear friends , I am new to java . I created an JFrame(Calculator) application in Netbeans.Now i want to run that file from console(putty) since i gonna use that .java class in some other program through which i want invoke this . How do i do this . When i …

Software Development java java-netbeans
Member Avatar for peter_budo
0
256
Member Avatar for meli123

BOOL is basically pretty intuitive.. my question: [CODE]#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { double cost, finalPrice; bool type; type=true; //taxable cout << "Enter price: "; cin >> cost; if (type) finalPrice = cost*1.07 ; else finalPrice = cost; cout << "Final price: " …

Software Development c++
Member Avatar for mrnutty
0
96
Member Avatar for tzho11

hi, right now i'm working on a program that prints parabolic shapes on the screen. And i want to be able to type a formule, and than i need python to understand that formule :? I have heard from many people that this is extremely hard But is there a …

Software Development python
Member Avatar for JoshuaBurleson
0
154
Member Avatar for Panathinaikos22

i have ask about it, but anyway... well as we say, 1 of reason we dont put everything in 1 exe is for memory i dedicated to create a simple application, somethink like "library manager" that i want from you ppl is to say me, im tottaly wrong this way? …

Software Development
Member Avatar for Panathinaikos22
0
115
Member Avatar for user543820

Hi! I want to read a text file word by word to string and display it in a text box. Given below is my piece of code. If I give the input string as "this is my cat", this piece of code only displays 'cat'. whatever input i give, program …

Software Development file-system
Member Avatar for user543820
0
4K
Member Avatar for huntin4hitters

program takes 2 integers and then finds how many divisors each integer between the original 2 has. then prints out which number has the highest number of divisors. any help is appreciated. im just starting to learn this stuff

Software Development python
Member Avatar for TrustyTony
0
120
Member Avatar for Jburton881

I cant seem to figure this out. I need to write a while loop to output the numbers from 1 to 10, but no matter what I put it will not run. Here is what I have been stuck on: a = 0 while a < 10 : a += …

Software Development python
Member Avatar for JoshuaBurleson
0
169
Member Avatar for g_amanu

if a file that has multiple columns, like [CODE]1 7 3 8 5 6 3 4 5 6 7 8 1 7 6 4 4 3[/CODE] i want to read the first row and see if there numbers that are grater than 6. Then add that number to all the …

Software Development microsoft-office python
Member Avatar for TrustyTony
0
173
Member Avatar for nerdygirl118

How do you grow a circular array? I have a front, I have a back, I have a current_size, I have a maximum_size, and of course I have the array. So, how do you grow a circular array? Thank you kindly!

Software Development c++
Member Avatar for nerdygirl118
0
295
Member Avatar for rbrnkr

I have a test.txt file that contains: 1/15/2011; somedescription ; Joe Blow ; $50 1/18/2011; somedescription ; John Doe ; $30 2/1/2011; somedescription; Joe Blow; $90 I want to be able to pull all rows of data associated with Joe Blow if a users selects Joe Blow from a combobox. …

Software Development file-system vb.net
Member Avatar for Reverend Jim
0
159
Member Avatar for moparman426

alright i have this problem out of my book that i bought used and goin through doin some self excersiesfor practice now this one has me stumped to ends the only thing i have so far is my dim as integer thats it but the problem reads like this: Your …

Software Development encryption vb.net
Member Avatar for Reverend Jim
0
222
Member Avatar for wangfz

Problem 2. Create a new java file called Barcode.java that will check to see if a given barcode number is valid. Barcodes have a 12 digit number on them that is used to determine the validity of the code. This is done by summing the odd position digits (1,3,5,7,9 and …

Software Development java
Member Avatar for wangfz
0
116
Member Avatar for tapandesai007

I have one access database and one windows form. I have some text field and one picture box. I want to Store some data and image into my database, i have written following code to do the task but it says "Syntax error in Insert into statement". I am pasting …

Software Development dataset microsoft-access open-source
Member Avatar for kvprajapati
0
183
Member Avatar for crownedzero

OK, so I want to create a function getStrRegion(commented out at the bottom) to pass a str value N, S, E, W, C back to the main function so I can then drop it and regionSelect back into getNumAccidents. I'm not exactly sure how to pass a string of characters …

Software Development c++ user-interface
Member Avatar for mrnutty
0
111
Member Avatar for jet101

guys, good day! I just want to ask how to reload/refresh a JComboBox. I have a cardlayout with 3 panels, each panel has its own combobox. what I want to do is to reload the combobox to its original state each time I swap the cardlayout. updateUI(); repaint(); revalidate(); I …

Software Development java
Member Avatar for jet101
0
738
Member Avatar for agent154

Trying for the life of me to figure this out, but I can't seem to make sense of it. I found some code that demonstrates how keyboard events are handled, but it doesn't work when I have a textbox on my form. When the textbox has focus, the event does …

Software Development
Member Avatar for agent154
0
226
Member Avatar for blondielox

I have pretty much gotten my program to run with one little exception. It is asking for the SKU number which has been set but when I run the program it assigns a number to item and does not give me the sku number I had entered in the program. …

Software Development java java-swing
Member Avatar for NormR1
0
119
Member Avatar for agent154

Maybe I should be doing this differently... but in case I have the right idea, how do I go about doing it? I have the following code: [code=csharp] void eventKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Control && e.KeyCode == Keys.O) this.eventOpenFile(); } private void eventOpenFile(object sender, EventArgs e) …

Software Development
Member Avatar for agent154
0
129
Member Avatar for hueikar

Hi. I am using visual studio with visual basic. I have create a combo box which data is from oracle. I want to know how to check the value in combo box is choose before i proceed to save the record? Thank you.

Software Development oracle visual-basic visual-studio
Member Avatar for hueikar
0
134
Member Avatar for monkeybut

I am running into an issue trying to get the program to read in my data correctly. The program is supposed to take a data file and read in names, if the string is preceeded by "surname" or "lastname" then the string lastname is set to the next string, if …

Software Development c++
Member Avatar for NathanOliver
0
161
Member Avatar for t2r

I'm searching for a good tutorial about object oriented analysis and design but can't find any short and clear tutorial which will has: 1. Explanation of oo concepts (very short) 2. CODE EXAMPLE (eg. if someone describe aggregation I wanna see how I can use this in my class) There …

Software Development c++ java
Member Avatar for t2r
0
189
Member Avatar for Dexxta27

I am just learning Java and am trying to use variables from objects that I passed into another method. Can someone help me here [CODE] package data; public class Data { private int day, month, year; public Data(int day, int month, int year) { this.day = day; this.month = month; …

Software Development java
Member Avatar for Dexxta27
0
174

The End.