132,726 Archived Topics
Remove Filter ![]() | |
HI there, I've been trying to implement a class of a ball i was given by an tutor but am having troubles. She gave me: [B]TBall.h[/B] [CODE] class TBall { public: double _radius; // defines the radius of the ball TVector _position; // defines the position of the ball TVector … | |
Hi everyone! I am working my way through some problems from projecteuler.net and came across one that has stalled me. The task is to find the sum of all primes under 2,000,000. I am attempting to use the Sieve of Eratosthenes algorithm for identifying prime numbers. Here is my code … Software Development algorithm mathematics | |
I am using Visual basic 6 I am trying to create a new txt file with the textbox (text1) contents. But instead of calling that text file "Stored.txt" as I currently am doing, I am trying to create the new .txt file with the text from the textbox. Private Sub … Software Development visual-basic | |
So what I am trying to do is give a user 4 links of stories that are relating to the topic. (In my specific case, they choose microsoft and I return them 4 top stories about the company). My problem is pairing the description with the link. So far, this … | |
hi all, i'm the beginer for C#. And now i develop a small project that using to edit metadata for .wma file. I already found the reference from internet. But i dunno what is the parameter that should i pass in. Below is the function call >>> [COLOR=#0000ff]public[/COLOR] [COLOR=#0000ff]string[/COLOR] ModifyAttrib([COLOR=#0000ff]string[/COLOR] … Software Development | |
helloo; i challenge all of the world programmers ;my question is; "Write a program that print all of the real number between 0 and 1"; :) :D :P chaleenge Software Development c++ | |
[B]Here is the actual homework problem. I am stuck on parts 1 and 2 and I really don't know how to make this right. Any help is greatly appreciated.[/B] 1. Write a C++ program that reads following data from an input file called “in.txt”, And stores them to an array … Software Development c++ | |
This is an example from an assignment I'm working on in which we need to validate that the user enters at least 1 Like for the temp.like[3] array and 1 Dislike for the temp.dislike[3] array. I tried using a while statement that said " while (temp.like == "") " or … | |
hey all im back as usual kicking my head ageist the door line 41 is giving me a compile error of "cannot declare variable sortItem to be of abstract type" just learning C++ inheritance its a bit different than java. thanks for all the help. Demo.cpp [CODE] /* File Name: … | |
I am trying to store a single random number from 0 to 99 to a variable. This is what I used in my code to do that: [code]time_t t; time(&t); srand((unsigned int)t); int rTSB(rand() % 100);[/code] I am trying to make a single random picture show up when you start … Software Development c++ image windows-api | |
Hey, im new to scripts(stumbled on them a few hours ago) and was wondering if and how i am able to modify functions from a website's page source. i have greasemonkey etc, so would i copy/paste the function into a new script and make my modifications or something, it didn't … Software Development shell-scripting | |
Hey everyone. I have a question about trying to delete successive elements from an array. For example im trying to delete every other element. Lets say my size is 10, so my elements are 0,1,2,...9. Heres what I want my output to look like: 0 1 2 3 4 5 … Software Development c++ | |
Hello Sir, [INDENT]I am doing a project realted to Jewellery Valuation. I want a report generating specifically on a customer. For that i have created a query in ACCESS to group requried tables for generating report. Now if i drop down the customer name in Page Header Section (Which is … Software Development visual-basic | |
[B]How would I implement two listeners?[/B] I need to implement ActionListener and [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html"]MouseListener[/URL]: I have the [CODE]public class Othello extends Applet implements ActionListener[/CODE] which is just below my libraries. But I also want to be able to use the MouseListener. So, I'm having trouble implementing both listeners. I tried: [CODE] … Software Development java | |
Hey guys. I wanted to know if someone can tell me what's wrong with my code. I got it to work, to a point. It shows all the months, however, when a user inputs the month/number it ends. Which it needs to playback the month... Example: 2 = March Here's … Software Development java | |
Hi all, This is my second post. I got some awesome help last time I posted. Thanks. So for my intro to programming class we had to write a Tic Tac Toe game played against the computer. The computer A.I will just pick randomly until: 1. it's possible to win … Software Development algorithm | |
I'm coding a small test app in C# and I thought it would be real nice to be able to parse the "description" meta tag and also download the favorite icon. I'm not asking for a complete solution but does anyone have any ideas where I should start? Thanks. As … Software Development politics | |
![]() | Hi Everybody, I have succeeded in parsing the values I needed from a text file and storing them in an array. The script I've posted works as a function, but now I tried to put it in a class and I can't figure out how to define the constructor. The … Software Development c++ oop operating-system |
could i get help with the syntex on reading a file to an array in c++. all the examples i see are more Software Development c++ ![]() | |
sir i want to lock with password protection to my '.c' files.how i can do that. please suggest sir. thanks | |
Hi all... I got a stored procedure to compare dates and if the date is not valid it returns an error in sql server. I need to know how i carry that across to vb. Thanks.. | |
guys iam new to c++ ,i even dontknow what are the tools to use develop c++ aplications so if sny body know tools like that (c# MS visual studio,java netbeans) pls let me know. and ma problem is i need to creat a link list on c++ .and i googled … Software Development c++ java-netbeans visual-studio | |
Hi, now program show Messagebox and wait user decision. How make, that program don't wait? Show Messagebox, ant keep going. Software Development | |
Consider a collection of songs in an MP-3 library where each song is characterized by artistName, songTitle, albumName, playTime (in seconds), musicCategory, and albumProducer – hence, you will need to use a struct data type to hold a song and an array of structs to hold the song collection. The … Software Development c++ | |
ok i cam writing a class named fraction to add subtract multiply and divide fractions and it also compares them. This is my first time writing a class and also the operators are suppose to be overloaded. I think i did them right. I just need to figure out why … Software Development c++ | |
I have to write a JUnit test method for a short program that lets the user add/remove/browse images in a collection. (Adding an image is done with a JFileChooser) The test method that I wrote exhibits some really bizarre behavior; it passes every so often, but fails most of the … Software Development java java-swing | |
Hello. I'm just starting out in C++ and am trying to figure out how to split a users string input into individual words and then put each word into a slot in an array. I think it's going rather well, but I'm running into some problems, and it would be … Software Development c++ | |
Hi, I'm trying to develop a linkchecker, the HTML text I'm using it on though has a few lines such as this: [CODE] <li><a href="PhD/refs.html"> <b> References </b> </a> section of PhD <li><a href="WWM/refs.html"> <b> References </b> </a> section of WWM proposal[/CODE] which aren't being picked up by my linkchecker. … | |
Hi everyone, i'm a final year student doing this project on rfid recognizing system. i'm using a rfid reader with smartcards and vb.net as the software platform for this project. 1. i need a help on how to do coding in vb.net(i'm using 2005). in my system, i'm using hyperterminal … Software Development vb.net | |
We got to get this to compile and I really need your assistance! I got sick last week and missed the lecture on these subjects and it took all night but here it is..... almost done.... but the assignment specs below say that it HAS TO COMPILE OR I FAIL! … Software Development c++ | |
Hey Guys, I have a header file I downloaded for an application (actually about 20 header files). Most of them can be opened fine, but I get errors on a couple that say: [QUOTE]fatal error C1083: Cannot open include file: 'Transport.h': No such file or directory[/QUOTE] I've checked, and the … Software Development c++ file-system | |
Hi I'm writing a menu driven array with 50 randomly generated integers. In the program I am suppose to search for numbers in the array and print the number and location of the number in the array. I have most of the program finished, however when I input an incorrect … Software Development c | |
I am trying to strip a prefix from a string, e.g. turn [code] VTK/Examples/Test [/code] Into [code] Test [/code] Sometimes the string does not contain the prefix, in which case I would expect nothing to happen. However, [code] >>> S="Main Page" >>> S.strip("VTK/Examples/") 'Main Pag' [/code] You can see that … Software Development python | |
![]() | Hi all, I think I have a fairly basic question. I have a matrix and I would like to find the eigenvalues and eigenvector. In both MatLAB and Python (pylab) I can use the eig() function. Can anyone explain the reason for the differing answers? [CODE]MatLAB Code >> A = … Software Development python |
I have to make an audio player in java applet so that it can be used on websites. It will browse files on the computer, make its playlist and will play them one by one. I have compiled the .jar file and done everything correctly in the <applet> tag in … Software Development audio html-css java java-netbeans java-swing | |
Hello guys. I made a code , which contains: a Circle and a ball. The ball is moving on the axis of Circle. But I'm using Thread.Sleep(80) , and when i want to close the form , i must press X for 10+ times , and after that i recive … Software Development | |
Hi, Forgive me if this is a silly question as I am newbie to python. I have to pass a string that contains a few spaces to a python script. How can I get it to read as one argument? Thanks... Software Development python | |
i have multiple different programs that do different things published as different applications i then have a toolbar type application that has a list of buttons that calls each of these mini applications. all the applications are published to a public server, and each user on the network launches them … Software Development vb.net | |
Hello, I want to create a sorted list, where I enter a name in two separate text boxes(Jones, Brown) and their values in two other textboxes(200,500), then in a fifth text box I enter one of the names and it gives me a messagebox with its corresponding value. Am I … Software Development vb.net | |
Hello guys. I made an orbit ( circle ) and a ball. I built the code , like the ball to move on the orbit. But i have a problem with the orbit , because it flash. Is there any option like the orbit to don't flash ? Here's the … Software Development flash | |
hi, i work on a csharp application with sql server ce database and i have this code: [CODE] private void recherchebtn_Click(object sender, EventArgs e) { SqlCeConnection con = new SqlCeConnection(); con.ConnectionString = @" Data source= `|DataDirectory|\Database1.sdf"; try { con.Open(); } catch (Exception ex) { MessageBox.Show("connection failed"); } finally { SqlCeDataReader … Software Development open-source | |
Hi, so i was told that i could use the scanf() function, validating it with a space, instead of an "ENTER". [CODE] scanf ( "% [^] d", & a); [/CODE] The person told me to use that. I couldn't get it working. Do you know what is wrong? Extra info: … Software Development c | |
i have no idea to return multiple statement. [code] public double[] compute(double[] times) { double[] t = this.Portion(times); double aa = this.computeTime(180-19.5,t[0]); double bb = this.computeMidDay(t[1]); double cc= this.computeAs(1 + asrJuristic, t[2]); double dd = this.computeTime(0, t[3]); }[/code] how to return all double " aa, bb, cc, dd" in this … Software Development java | |
[code] private void button35_Click_1(object sender, EventArgs e) { Clipboard.SetDataObject(textBox1.Text, true); } [/code] This lets me copy only the text in textbox1 How do i make it so that it copies the text in textbox1 and textbox2 and textbox3 e.t.c ? Software Development | |
Hi all, I am doing a project on the CRM application which sending and receiving sms using the vb.net language. I am no where to conclusions of my project because I could not build the application. I have found many examples but the problem some of the examples some uses … Software Development vb.net | |
Hi, I'm a student just learning c. I have an assignment that is killing me. I have to write a code that will produce the angle of a clocks hands. This is my third assignment I have done the 'hello' and calculated miles to feet and converted fahrenheit to celsius … Software Development c | |
i need ur help sir i m asked to develop a small educational software package using c++ package must be a set of 5 multiple choice questions answers to which will be correct nearly correct wrong obviously wrong on completion of the test core must be displayed.... plz help me … Software Development c++ | |
![]() | #include <iostream> using namespace std; int main() { int age; for (int i=0;i<5;i++) { cout << "Enter :"; cin >> age; } int *sum=&age; for ( i=0;i<5;i++) { cout <<*(sum+i) << endl; } return 0; } here is one of my program that i wrote. i do not know whats … |
I've been having problems with my form program while trying to call data entered into a text field and displaying in a GUI after pressing a button. Here's my code. [CODE]import java.awt.*; import java.awt.event.*; public class ProjectForm { public static void main(String[] args) { Frame frm=new Frame("Personal Information Form"); frm.setSize(350,200); … |
The End.