132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 24x24

Hey guys I had some homework in a Java class on Friday. I completed it so I am not looking for answers (I also don't think it will be graded). I was just curious, as a learning exercise, how would you guys improve this and why? Now remember I'm a …

Software Development java
Member Avatar for 24x24
1
183
Member Avatar for HASHMI007

[CODE] /*i want to overloaded operator in my program. but i dnt know how to add overloaded + operator in this prgram. plzzzzzzzzz help me to solve this problem*/ #include<iostream.h> class rational{ private : int numerator, dnomenator ; void reduction(); public : rational () //default contructer { numerator=dnomenator=1; } rational …

Software Development c++
Member Avatar for HASHMI007
1
186
Member Avatar for Henry Schubel

I have a legacy VB6 application; simple VB6 front end and Access backend database. Works fine on Win 2000, WinXP, Vista, and 32-bit Win7. Bought a new laptop and everything seems to be shipping with 64-bit Windows now. Out of the box, the application worked fine after I manually re-registered …

1
109
Member Avatar for e-papa

Please I downloaded the latest version of python QT but I've been unable to use because i don't know how, help from the experts in the house. Thanks in advance

Software Development python qt
Member Avatar for e-papa
1
882
Member Avatar for mang0

I just recently (one week ago) started learning Pyton. I'm using 2.7 as I heard that is best for begginers. I am also following a manual, which is really helpful! The one problem with manuals is that it's very easy to just type whats written and not understand it at …

Software Development python
Member Avatar for e-papa
1
161
Member Avatar for alex1050

//Enter phone number: 1-800-COL-LECT //1-800-265-5328 Im trying to input the dash right after COL and before LECT. Please help [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { char ch; printf("Enter Phrase\n"); while((ch=getchar())!='\n') { if ((ch=='1')) printf("1-800-"); else if((ch=='A')||(ch=='B')||(ch=='C')) printf("2"); else if ((ch=='D')||(ch=='E')||(ch=='F')) printf("3"); else if ((ch=='G')||(ch=='H')||(ch=='I')) printf("4"); else if …

Software Development c++ smartphone
Member Avatar for alex1050
1
281
Member Avatar for ztdep

Dear friends: I download a Matrix library "MET" from [url]http://met.sourceforge.net/[/url]. I want to compile it under windows system. I download the MinGw. when i excute the following command, it give the me the following errors: [CODE]G:\met>make g++ -Icommon -o xpr1Test xpr1Test.C -lm In file included from vecmat.h:35:0, from xpr1Test.C:6: xpr1.h:31:22: …

Software Development c++
Member Avatar for ztdep
1
144
Member Avatar for ganesh641

Is Java Purely object oriented language? need a full explanation

Software Development java
Member Avatar for Sadun89
1
120
Member Avatar for linezero

I am trying to move a match from a match collection to another listbox as string. here is my regex code [CODE]Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://localhost/pos/leftpanel.html") Dim response As System.Net.HttpWebResponse = request.GetResponse Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim rssourcecode As String = sr.ReadToEnd Dim r As New …

Software Development regex vb.net
Member Avatar for codeorder
1
301
Member Avatar for HASHMI007

[ICODE]/*write a program class Rectangle . the class will have two data member to coodinates of upper left & lower reght corner of rectangle. these two data member will be object of point class. 1-The rectangle class should following function. 2-A default destructor to print a messagewheneveran objectis distroyed 3-a …

Software Development c++
Member Avatar for Ancient Dragon
1
104
Member Avatar for tangentplane

Hi, I have been trying to use the following code: VendingDisplay.h: [CODE]#include <stdio.h> #include <string> #include <vector> #include <iostream> #include "VendingMachine.h" class VendingDisplay { VendingMachine vend; public: VendingDisplay(VendingMachine); VendingDisplay(); void DisplayMenu(); void GetUserInput(int); int respondToUserInput(int); void processOrder(int); int processCorrectCash(float); };[/CODE] VendingDisplay.cpp: [CODE]#include <vector> #include "VendingDisplay.h" #include "VendingMachine.h" #include "Cigarette.h" //#include …

Software Development c++
Member Avatar for thekashyap
1
4K
Member Avatar for invisal

[B]Introduction[/B] [INDENT] Since this is my first thread in VB.NET forum(most of the time, I was in C/C++ forum), I want to share something that you might find it useful with your school project or with your works. Button is already a MUST-HAVE element in every program (I couldn't imagine …

Software Development vb.net
Member Avatar for kvprajapati
1
1K
Member Avatar for Mr.BunyRabit

hey there. =) We are working on a program and are now at the last stages of its development. Now comes the last part.. The reports Now i am very inexperienced when it comes to reports. I have surfed the net in search of the best method to generate reports. …

Software Development pdf
Member Avatar for Mr.BunyRabit
1
107
Member Avatar for winbatch

Hi Guys, So I'm trying to experiment with threads, though I'm running into some problems. Basically I'm trying to create multiple threads, where each thread is passed a different set of data. In my small example below, I'm starting off with a vector<string> of data. Each element of the vector …

Software Development c
Member Avatar for anurag.kyal
1
247
Member Avatar for themask18

Hi Brothers and Sisters in C programming, I consider myself a advanced-beginer of C programming. I wish to improve my knowledge to become even better, so I need you guys to suggest me some books that may help me be like you guys, an advance programmer in C..Thanks!! Cheers, themask18

Software Development c c# c++
Member Avatar for themask18
1
155
Member Avatar for brynFlew

Hello, im trying to convert an old vb project from 2008 to 2010. Ive tried using vb 2010's convert wizard aswell as changing the .sln file manually. When i try to convert the project automatically using the wizard it gives me an error saying that the project type is not …

Software Development vb.net
Member Avatar for brynFlew
1
1K
Member Avatar for Alex Edwards

Solves simple string-based expressions. Currently only supports integers, but can easily be expanded to support float-types.

Software Development java
Member Avatar for Taywin
1
3K
Member Avatar for axiss

Does anyone know how to insert a .jpeg into the JPanel of a GUI window?

Software Development gui image java
Member Avatar for HappyCat123
1
488
Member Avatar for virtue

Hi, I wanna traverse inside the file system by using threads and processes.My program has to assume the first parameter is either given as "-p" which offers a multi-process application or "-t" which runs in a multi-threaded way. The second parameter is the pathname of a file or directory. If …

Software Development c multithreading unix
1
146
Member Avatar for Soup!

Hello, I'm new with C and I've almost finished this little program but something is wrong. The program reads in a list of names from the file names.txt that I put right in C:, and prints the list to an out file called trans.txt (which it creates on its own) …

Software Development c file-system
Member Avatar for jnawrocki
1
207
Member Avatar for se00an

Hello all, Inverting an upper (or lower) triangular matrix is a trivial algorithm, due to the nature of the matrix. I am having an issue getting a part of my upper-triangular matrix inversion function to work, and I would like to get it working soon for a personal project. From …

Software Development algorithm c++
Member Avatar for se00an
1
2K
Member Avatar for brynFlew

Hello, does anybody know a simple way to strip the leading zeros out of a string? I have tried [CODE]userName.replaceFirst("^0+(?!$)", "");[/CODE] but cant seem to make it work, any ideas? Thanks. correction, this work.. [CODE]userName = userName.replace("0", "");[/CODE]

Software Development java
Member Avatar for Ezzaral
1
140
Member Avatar for plang007

After your program works correctly for one student, add a loop so the user can process any number of students. Prompt the user for the number of students to process; use that value to control the loop. *How do I prompt the user for the number of students to process …

Software Development c c# c++
Member Avatar for NathanOliver
1
814
Member Avatar for kas04

So this is my first post. I looked everywhere and can't find any help. Here is the problem: Create a 2 dimensional array of integers with 3 rows and 8 columns. Fill this array with 0’s and 1’s (binary numbers) randomly. Each row represents a byte. You are to add …

Software Development c++
Member Avatar for kas04
1
138
Member Avatar for sambho

Hi guys I have some problem regarding getting prime factors and distinct prime factors. I manged to get the prime factors but I got stuck on how to get the distinct prime factors.........I don't know how to select unique prime factors and print them....Help me out guys........ Thank you in …

Software Development c
Member Avatar for rajanpathak
1
924
Member Avatar for ddanbe

I was wondering why are there so many methods for adding a row to a DataGridView consisting of textboxes. I have 4, if you find more let me know. Have made a WindowsFormsApp and put on it a DataGridView, with 3 standard columns to it and a button with the …

Software Development vb.net
Member Avatar for ddanbe
1
619
Member Avatar for determine

I'm not sure where to start with this code. I would greatly appreciate if someone could write the code up for me. Here are the details. The program should prompt the user to enter the weight of an object on Earth, between 0 and 1000 pounds, and the name of …

Software Development c++
Member Avatar for determine
1
310
Member Avatar for boshu

I am trying to split a file into 2 parts. File format is following: filename_status_date.filetype and the files are: apple_india_20110218091255.txt apple_india_20110221112444.txt apple_india_20110301112444.txt I need to split so that first part carries "apple_india" and second part carries the "20110301112444.txt". I tried the following: [CODE] my ($fruit,$end)=split(/\_/); [/CODE] But that splits the …

Software Development apple perl
Member Avatar for boshu
1
155
Member Avatar for jephthah

i dont normally work in the console/terminal window in my day job. so, i keep rewriting this every time i respond to someone needing help related to getting user input. im putting it here partly so i dont have to keep rewriting it. this function will get a string input …

Software Development c
Member Avatar for BNF
1
1K
Member Avatar for Mr.BunyRabit

Hey there. ahh again its the LIstbox... I have a dropdown box. with "Name" "Surname" and "student number" When the "name" option is clicked i want the listbox to show all the Names in the name field of my DAtabase in my STudent table. and then when "surname" is clicked, …

Software Development
Member Avatar for Mitja Bonca
1
453
Member Avatar for IT_Student_604

hi.. i'm having problem w/ my [COLOR="Red"]UPDATE SYNTAX [/COLOR] .. I CAN'T FIGURE OUT WHAT'S WRONG WITH MY SYNTAX.. PLEASE HELP ME.. I REALLY NEED TO FINISH THIS FOR MY DTR SYSTEM THESIS.. i can't move on to my other codes.. please... --the error that i get is.. UPDATE SYNTAX …

Software Development sql vb.net
Member Avatar for IT_Student_604
1
207
Member Avatar for mrnutty

The simplest sort, although inefficient. Below is a demonstration of bubble sort and insertion sort. The bubble sort just consists of 2 for loops and std::swap. The insertion sort uses 2 loops as well but not as much swap as bubble sort. Any questions ?

Software Development c++
Member Avatar for 88omar
1
434
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 atticusMom

I have all figured out I think except exercise 7.20 Extend zuul by adding an Class called item. Each item is created with a description such as rock or stick and a weight. When creating rooms and setting their exits, items for this game should also be created. When player …

Software Development java
Member Avatar for atticusMom
1
5K
Member Avatar for onlinessp

Hi, Good Evening,I am new to use Keil and Proteus.From last week i am writing a program,To show Alphabets on LCD, using 89c52.I am in great trouble. The code and simulation files are attached herewith.Plz elaborate my mistake and give me some hints so, I can learn. Respected, Advance Thanks …

Software Development c display
1
249
Member Avatar for Kieran Y5

I am writing this thread not to ask how to make an operating system, but to say how to make an operating system. There always seems to be new threads created asking how to make an operating system. [b]The simple answer[/b] There is no simple answer. Making an operating system …

Member Avatar for Beo_Airwolf
1
297
Member Avatar for vegaseat

Here we experiment with a gauge or progress bar made from a label displaying a variable number of spaces in color. In this example, we use from 0 to 100 spaces. This label based gauge allows you to choose many different colors, and you can even change the color as …

Software Development python
Member Avatar for naytanl
1
592
Member Avatar for cassyjack

I need a little help. Here are the specs: Create a method called findLargest, which takes an array of integers as an input parameter and returns the array index of the largest integer in the array. If there are positions that are tied for largest, the method should return the …

Software Development java
Member Avatar for rosellejane
1
714
Member Avatar for PhilHernandez

How do I add a Macro to an Excel Sheet using Late Binding? I had the code working using Excel(2010) PIA: [CODE] //create a new VBA control module oModule = oWorkbook.VBProject.VBComponents.Add(VBIDE.vbext_ComponentType.vbext_ct_StdModule); //Add the VBA macro to the new code module oModule.CodeModule.AddFromString(sCode) //sCode is the VBA macro I created;[/CODE] I now …

Software Development c# microsoft-office office-suite
Member Avatar for Sebastian_
1
447
Member Avatar for crapgarden

Just to clarify, the text I'm reading defines the lifecycle of a program as: -idea -plan -source code -object file -executable. In gaming terms would this be comparable to: -an Italian plumber goes on an adventure to save a princess from evil turtles and mushrooms. -sketch out level designs. Write …

Software Development c++ gaming
Member Avatar for jonsca
1
186
Member Avatar for tracydo

[I]Hi, I'm just 2 weeks into computer science 1. New to the world of java. I'm working on the Monthly Mortgage Payment program and having some problems that I don't know how to fix. Any help greatly appreciated! I'm using JEdit & Terminal on imac. Thanx.[/I] [code]import java.text.*; //for Decimal …

Software Development java
Member Avatar for FireBlah
1
163
Member Avatar for rgpii

I have been trying to communicate between my client and server program. I have checked and rechecked the man pages and it seems my syntax is correct. I'm trying to send packets from my client to my server and the server prints out the host name. My server seemed to …

Software Development c client-server socket-programming
Member Avatar for rgpii
1
1K
Member Avatar for abebosco

Hi, As said in the title, the program needs to accept only integer values.. It should not accept float point numbers or characters or spaces or integers mixed with characters .. I know it has to do something with the while statement but i cant figure it out .. Your …

Software Development c c# c++
Member Avatar for WaltP
1
10K
Member Avatar for jonsca

I recently was using the BinarySearch method and I was curious about why the designers had coded the method with the following for a return value: "Return Value The zero-based index of item in the sorted List, if item is found; otherwise, a negative number that is the bitwise complement …

Software Development
Member Avatar for ddanbe
1
125
Member Avatar for Srinivasrajan

How to find errors in a given xml file, for e.g., in the following xml file.... <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book category="cooking"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category="children"> <title lang="en">Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category="web"> <title lang="en">XQuery Kick Start</title> <author>James McGovern</author> …

Software Development html-css xml
Member Avatar for mrame
1
164
Member Avatar for zachattack05

I tried asking this at the MSDN website and didn't get an answer at all...I was hoping someone here could help. If I indicate that SQL Server Express is to be a pre-requisite for my application, how does the installer interpret this? For example: If end user A already has …

Software Development sql
Member Avatar for zachattack05
1
237
Member Avatar for bumsfeld

Just curious how you got started. For me it was science class that used Python as the main tool.

Software Development python
Member Avatar for vegaseat
1
128
Member Avatar for juanp

I'm having a lot of trouble getting my code to compile. It basically has this structure: [CODE]Headers: a.h, b.h, c.h CXX: a.cxx, b.cxx, c.xx[/CODE] And my main.cpp of course. The problem is that my classes link each other, ie. a uses something from class b and b uses something from …

Software Development c c++
Member Avatar for Fbody
1
119
Member Avatar for memory100

here is the current code i have : [code] Sub Remove_Blank_From_PivotTable1() ' The purpose of this macro is to remove the word (blank) from apprearing ' on any pivot table report.' Dim counter As Integer ' setting up a counter to loop through the worksheet Dim lastRow As Integer, lastColumn …

Software Development visual-basic
Member Avatar for AndreRet
1
118
Member Avatar for RolandTheNerd

Hello, My whole life I've wanted to make a video game. I've been influenced by notable programmers; Shigeru Miamoto and Tetsuya Nomura. I'd like to learn how to do C++ programming so I can make a game. I'm only a freshman in high school, so you can imagine, I don't …

Software Development c++ gaming video
Member Avatar for vinayakgarg
1
199

The End.