132,726 Archived Topics
Remove Filter ![]() | |
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 | |
![]() | [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++ ![]() |
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 … Software Development microsoft-access visual-basic windows-vista windows-vista-7-8 | |
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 | |
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 | |
//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 | |
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++ | |
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 … | |
![]() | [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++ |
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++ | |
[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 | |
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 | |
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 | |
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 | |
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 | |
Solves simple string-based expressions. Currently only supports integers, but can easily be expanded to support float-types. Software Development java | |
Does anyone know how to insert a .jpeg into the JPanel of a GUI window? | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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 … | |
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 … Software Development api assembly gui open-source operating-system user-interface | |
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 | |
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 | |
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 | |
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 … | |
[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 | |
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 | |
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 … | |
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 | |
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> … | |
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 | |
Just curious how you got started. For me it was science class that used Python as the main tool. Software Development python | |
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 … | |
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 | |
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 … |
The End.