43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JaviP

Hello, I am new to C++ programming. I need to do this problem for a class but I'm a bit stuck, it's giving me many errors, could anyone point out what the problem is please? This is the problem: A country club, which currently charges $2,500 per year for membership, …

Software Development c++
Member Avatar for JaviP
0
623
Member Avatar for addlou

Write a method called newTest(String input) that accepts one input. Input is a string stored as a variable called input and returns nothing back. Method should test to see if the string’s first and last characters are the same and should disregard case. Use a string method that converts to …

Software Development java
Member Avatar for mKorbel
0
163
Member Avatar for sipchen

In reference to this post [url]http://www.daniweb.com/forums/thread43763.html[/url] I have another more specific question about passing data between forms in VB.net I have a form with over 50 variables that I need to access on a second form and if i followed the method above, my form 2 will end up way …

Software Development vb.net
Member Avatar for Mariandi
0
2K
Member Avatar for annndrey

Hi all! I have a question about PyQT4. How can I get an index of current cell, in which the cursor is whitout clicking on it? According to official documentation of QT there are only signals that send current index when you click on it. But if you just enter …

Software Development python qt
Member Avatar for annndrey
0
275
Member Avatar for oliminator123

Hi, new here but would appreciate some sort of help. I have to create a program that takes 20 random strings from a string array of 40 words I made, and store them into a new string array called second. Directions: -create random # generator -generate random # between 0 …

Software Development java
Member Avatar for oliminator123
0
816
Member Avatar for addlou

I need help showing me where I went wrong. Given problem is. Print to System.out a new string composed of every alternate character in sentence starting with the first. Use a loop to go through a string and retrieve characters from alternate index positions. Append these characters to another string …

Software Development java programming-construct
Member Avatar for addlou
0
4K
Member Avatar for Muhammadlodhi

Hi .. i want to print this pattern of number using loops . if input is 5 then output should be ... 155555 224444 333333 444422 555551 i have solved 1 22 333 4444 55555 but another reflection is not coming in my mind ... and making me confuse need …

Software Development c++
Member Avatar for Muhammadlodhi
0
109
Member Avatar for aaronmk2

I am putting 20 objects in an array then I am using a bubble sort (not the most efficient, I know) to organize the set from highest to lowest. I am wondering if there is a way to do this without using sets (mutators)? Code is below. using System; using …

Software Development
Member Avatar for aaronmk2
0
96
Member Avatar for -acir-

[ICODE] here's my code below and i cant seem to find out how to return to public static void main after selecting yes in the dialog box. this cud be a very damn question however i get confuse about how to resolve this. thanks. by the way, this program is …

Software Development algorithm java java-swing
Member Avatar for -acir-
0
886
Member Avatar for davidmhollis

I am running a batch file using msxsl to take an input xml file like below <ns1:invoicedata> <data1>1</data1> <data2>2</data2> </ns1:invoicedata> I need to copy this original output and replace the values with the input file values <ns2:invoiceoutput> <data3>3</data3> <data4>4</data4> <data5>5</data5> </ns2:invoiceoutput> so that it ends up with the following data …

Software Development file-system xml
Member Avatar for davidmhollis
0
246
Member Avatar for baldwindc

I am taking a data structures class and we are using the standard gcc compiler on a unix system. This is fine and I have no troubles using it, but I would like to begin using an IDE for my labs. I am trying Visual Studio 2010 Professional with my …

Software Development c ide microsoft unix visual-studio
Member Avatar for baldwindc
0
242
Member Avatar for AngelicOne

I thought by setting up the custom format of date time picker to |MM/dd/yy hh:mm tt" would work, but the selection doesn't change from date picker only! I need an object that I can be able to choose both date and time.

Software Development
Member Avatar for AngelicOne
0
93
Member Avatar for ntrncx

ok i have i want to summarize only the first collum [CODE]int counter=1; int totalvertical=0; int i=7,k=4; int array[i][k]={random values}; for (int x=1;x<7;x++) { for (int y=0;y<4;y++) { cout<<"["<<x<<"]["<<y<<"]="<<array[i][j]<<" "; totalvertical=array[counter][0]; cout<<totalvertical; } counter++; cout<<endl; }[/CODE] line 12 prints me normaly what is at array[1][0] then array[2][0] then array[3][0] etc …

Software Development c++
Member Avatar for ntrncx
0
149
Member Avatar for markdean.expres

Guys I know this error is not new. I have read many threads about this and solutions also. But I have done one of the solutions I know and it is still occurring. Update requires a valid update command.... I hava defined a primary key in my database table. What …

Software Development vb.net
Member Avatar for lolafuertes
0
95
Member Avatar for Danny1994

[CODE]void Form1::textBox9_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e) { if(!Char::IsDigit(e->KeyChar) && (e->KeyChar != 0x08)) e->Handled = true; }[/CODE]Thats the code i got, but, how could i allow CTRL+V. [CODE] if(Char::IsDigit(e->KeyChar)) return; if(e->KeyChar=='\b') return; if(e->KeyChar=='\v') return; if(e->KeyChar=='CTRL') return; e->Handled=true;[/CODE] This also doesn't work ._. (Im using Visual Studio 2010)

Software Development c++ visual-studio
Member Avatar for Danny1994
0
342
Member Avatar for tcl76

hi all, pls advise on: Can Python 2.6.6 scripts be converted to .dll and read by C sharp? Can Python 2.6.6 scripts be converted to .exe and read by C sharp? thanks tcl

Software Development python
Member Avatar for snippsat
0
214
Member Avatar for TheLittleEngine

[CODE]void Rational::reduce(Rational &f3){ int tnum, tden, temp, gcd; tnum = labs(numerator); // use non-negative copies tden = labs(denominator); // (needs cmath) if(tden==0 ){ // check for n/0 cout << "Illegal fraction: division by 0"; exit(1); } else if( tnum==0 ){ // check for 0/n numerator=0; denominator = 1; return; } …

Software Development c++
Member Avatar for TheLittleEngine
0
190
Member Avatar for infinitus

I dont know how to kill this JOptionPane pop out eveytime i do something... it just pops [CODE]Object[] options = {"Option 1", "Option 2"}; Component frame = null; int n = JOptionPane.showOptionDialog(frame, "Chose Game Option \n *Option 1 - Enter Secret Word\n *Option 2 - Random word selection from secret …

Software Development java
Member Avatar for infinitus
0
165
Member Avatar for jmensah

Below is a code displaying records from a view which is concatenating first and surname in textbox on the form called accoutnholder. But the code "txtAccountHolder.Text = myDataReader.Item("First_Name&" - " &Surname")tostring]" show the expression does not produce value. please i need ur help to continue Private Sub txt_LostFocus(ByVal sender As …

Software Development vb.net
Member Avatar for jmensah
0
2K
Member Avatar for umamahesh2020

[CODE]<employees> <employee> <user_id>6</user_id> <profile_name>Developer</profile_name> <profile_id>2</profile_id> <user_status>1</user_status> <gender>1</gender> <first_name>Anulesh</first_name> <last_name>Gupta</last_name> <address>106/B, 1st Floor, 46th Cross, 4th Block, Rajajinagar,</address> <pswd>password</pswd> <pswd_change_dte>2011-01-25T19:48:00+05:30</pswd_change_dte> <email_addr>anulesh.gupta@effone.com</email_addr> <phone>91-080-22445281</phone> <dob>1981-09-18T00:00:00+05:30</dob> <join_date>2008-11-20T00:00:00+05:30</join_date> <receive_email_notification>true</receive_email_notification> <last_logged_in>2011-01-25T19:48:00+05:30</last_logged_in> <emp_id>1001</emp_id> <full_name>Anulesh Gupta</full_name> <skill_set /> <city>Bangalore</city> <state>Karnataka</state> <country>India</country> <zip_code>560010</zip_code> <mobile_number>22445281</mobile_number> <pwd_flag>1</pwd_flag> <reports_to>5</reports_to> </employee> </employees>[/CODE] Convert this into this format , please help me out for …

Software Development xml
Member Avatar for umamahesh2020
0
1K
Member Avatar for MaDo4

Hi guys i'm trying to write code that requires the user to hit return twice to terminate the project and I can't figure it out. I think i am supposed to use some variation of [CODE] if(input == " "){ exit(1); } [/CODE] with a Boolean expression but I can't …

Software Development c++
Member Avatar for MaDo4
0
2K
Member Avatar for zychos

I am doing an bubble sort assignment, the goal is to enter up to a max of 10 numbers and sort them. The problem that I am running into is when I run the code, I have to hit ^D to have the next line of the array displayed and …

Software Development c
Member Avatar for Adak
0
149
Member Avatar for Amitair

I want to open a text file at a specific index point. is there an easy was to do it other then building it in a textbox? in notepad and notepad++ they go by line in text and not text index point.

Software Development
Member Avatar for Amitair
0
165
Member Avatar for Casper3912

I am in a distributed education programming class, our most recent assignment has me stumped with a error that is driving me insane. The IDE I have on my personal computer is missing some of the libraries I need(I believe), and when I remote desktop to my school's computer and …

Software Development c++ motherboards-cpu-ram oop
Member Avatar for VernonDozier
0
360
Member Avatar for Taimoor Rana

Hello Lovely People, Please have a look at my GUI first, before reading the rest (I've attached a picture, see at the end of my post). I'm having two problem with this GUI. 1) I don't want my Start button to be as long as it is. I want it …

Software Development gui java java-swing
Member Avatar for Taimoor Rana
0
180
Member Avatar for himanshusharma

hey frnds ... my query is regarding the [B].bak[/B] files which are genrated when we compile our code. For some files i hv seen the [B].bak files[/B] but for others they dont exist . I just want to know the start n the end of these [B].bak files[/B] . Whats …

Software Development c
Member Avatar for josephbeluan
0
203
Member Avatar for Ghostenshell

Can someone help me with my queue? I think the stack works fine. I just need the indexing of the queue or do I need to index the queue? [CODE]from string12 import * from queue import * def main(): stack1 = Stack() queue = Queue() word = raw_input("Enter a word …

Software Development python queue
Member Avatar for Ghostenshell
0
2K
Member Avatar for carinlynchin

okay so I have an array of buttons, and at some point in the program I want to access the index of a button clicked in order to perform some calculations....so there are two options that I can think of...maybe there is a method to pull out the index (2d …

Software Development java java-swing
Member Avatar for carinlynchin
0
143
Member Avatar for zizuno

Can someone explain to me why this sort is going all wonky on me? And a how to fix would be cool too. Thanks [code] >>> a = ['2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '2', '3', '4', '5', '6', '7', '8', …

Software Development python
Member Avatar for zizuno
0
161
Member Avatar for StevoLord

Found this sniplet of code on various websites to use this way of playing a wav file however im getting this error message. javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file Update 1 - I know the wav file has to be 8khz, is there a way to …

Software Development audio file-stream file-system java
Member Avatar for StevoLord
0
4K
Member Avatar for Shodow
Member Avatar for Paul J S
0
118
Member Avatar for SeePlusPlus2

I started learning about objects and classes this week and it's really confusing. I'm trying to make a class/object to read data from an input file and use the values to calculate the profit loss/gain(in percent and numbers). So far when I try to run the program I get an …

Software Development c++
Member Avatar for SeePlusPlus2
0
200
Member Avatar for iskinner

From help I received yesterday I have this code that will parse through an XML file generating an output from various nodes based on the relationships between them. Example XML [CODE] <gedcom> <INDI ID=@I001@> <FAMC>@F001@</FAMC> ... </INDI> <INDI ID=@I002@> <FAMC>@F002@</FAMC> ... </INDI> <INDI ID=@I003@> <FAMC>@F003@</FAMC> ... </INDI> ... <FAM ID=@F001@> …

Software Development xml
Member Avatar for iskinner
0
162
Member Avatar for CJdamaster

Hi there, I'm working on a project which incorporates the following: [LIST] [*]Reading data from XML [*]Writing data to XML [*]Interpreting XML and passing the information to various places [/LIST] These are on different threads, and I've used a Mutex to make sure they don't try opening the main XML …

Software Development app-store multithreading queue xml
Member Avatar for CJdamaster
0
169
Member Avatar for kazekagerandy

i am doing a makeup and hairstyle makeover application in vb.net and i dont know if i can directly edit a photo in a picture box, the features of the project will be: 1. make-up features are a must. 2. it should save the original photo uploaded and the edited …

Software Development image vb.net
Member Avatar for kazekagerandy
0
3K
Member Avatar for cool_intentions

Hello people, I`m learning C# end need some help with my assignment. I have Form with DataGridView on it end one Button. When I click Button, I should get SUM from only selected cells into Message Box. How can I do that? Thanks for your help.

Software Development
Member Avatar for ddanbe
0
1K
Member Avatar for TheLittleEngine

The parts I am having trouble with are: The private section of the class should also include two member functions that will a) reduce a fraction to lowest terms b) normalize a fraction (the only sign appearing will be a negative sign in the numerator.) for part a) I have …

Software Development c++
Member Avatar for TheLittleEngine
0
725
Member Avatar for infinitus

Hello, i have came across a problem when trying to create a hangman game. I want to read a String of letters inputed from keyboard and then i want someone else to guess this word(typical hangman rules). I have used this code. [CODE]InputStreamReader FindWord = new InputStreamReader(System.in); BufferedReader in = …

Software Development java
Member Avatar for harsuraj
0
411
Member Avatar for NewOrder

i need to terminate a background thread in winform, however, i dont know how. i know that using Thread.Abort, only creates problems..please help [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net.Sockets; using System.IO; using System.Threading; namespace WindowsFormsApplication1 { public …

Software Development
Member Avatar for NewOrder
0
173
Member Avatar for eduard77

I just learned c++ and is very hard for me to put in practice what I learned. So, I would like to know if anybody could help me by giving me tasks and helping me to solve them. Thanks

Software Development c++
Member Avatar for eduard77
0
256
Member Avatar for nengstrom

Hi Everyone! I am a beginner at VB. I have been a systems admin for some time and my new employers are forcing my hand into programming. I am currently Trying to write custom software that interfaces with our Advantage Database. I have the data source and connection opening fine. …

Member Avatar for nengstrom
0
165
Member Avatar for amrita111

Why does java need interpreter when its programs are compiled??

Software Development java
Member Avatar for JamesCherrill
0
95
Member Avatar for keicola

hi, i'm currently learning C on my own. i explicitly made a binary tree just to see if my postorder procedure works. i have no idea why but at the end of running the program, before it does the last procedure, this appears: [IMG]http://i56.tinypic.com/2nb52xx.jpg[/IMG] everything else works fine. i know …

Software Development c programming-construct
Member Avatar for keicola
0
174
Member Avatar for addlou

I need to write a loop to go through a string and retrieve alternate characters from index positions. Then append the characters to another string and then print (eg. "pleasehelp" = "peshl") I have hit a wall and lack any sort of know how to push through... what have I …

Software Development java
Member Avatar for Momerath
0
625
Member Avatar for VasquezPL

Hi! I have a problem. I cannot pass text chosen in combox to text field.. The problem is: how to do that if all menu items from combobox are read from cfg file. ComboBox: [code] // // systemBOX // this->systemBOX->FormattingEnabled = true; resources->ApplyResources(this->systemBOX, L"systemBOX"); this->systemBOX->Name = L"systemBOX"; StreamReader^ plik= gcnew …

Software Development c c# c++
Member Avatar for VasquezPL
0
687
Member Avatar for aman rathi

first of all thanks to all for helping me from last 2 years. now a days i am learning Visual basic, i have one book that is for beginner. while studying that book i feel it is insufficient for me. so please can any one tell me a book which …

Software Development visual-basic
Member Avatar for debasisdas
1
110
Member Avatar for lwb525

Here is the problem from my Programming class: Write a program that asks the user for two file names. The first file will be opened for input and the second file will be opened for output. (it will be assumed that the first file contains sentences that end with a …

Software Development c++ file-stream ios
Member Avatar for WaltP
0
2K
Member Avatar for bLuEmEzzy

if the itemcheck is check then all the checks will be add separately to cash... i hope is it clear enough... thank You.. God bless... [CODE] Dim Cash As Double = 0.0 Dim Cheque As Double = 0.0 Dim Other As Double = 0.0 Dim DetermineCash As Boolean Dim CheckedItems …

Software Development listview vb.net
Member Avatar for bLuEmEzzy
0
162
Member Avatar for packluv12

Hi everybody, I am new to the programming world and I have an assignment that I need to write an array then a new array that needs to allocated dynamically and, then, populated in reverse order before being displayed all within a function. Here is what I have so far …

Software Development c++
Member Avatar for jkoske
0
118
Member Avatar for terzenta

I've been messing around trying to figure out why I'm getting this compiler error for a few hours, and I'm just not sorting it out. Any help would be appreciated. Thanks, David Code: [code] package dladoucer_week5; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input …

Software Development java
Member Avatar for terzenta
0
242

The End.