43,549 Solved Topics
Remove Filter ![]() | |
I'm trying to design my UML diagram but I'm not sure about something. If I have a derived class that belongs to two other classes will the two other classes inherit the features of the base class? For example class Vehicle_Details inherits features from class People[I](is-a relationship AKA inheritance)[/I] while … Software Development c++ | |
Is there any reason why the code below won't work (I mean as far as writing output to file, not as far as writing the correct output to the file): [CODE] #include <cstdio> #include <iostream> #include <fstream> using namespace std; int main() { ofstream fout ("ride.out"); ifstream fin ("ride.in"); char … Software Development c++ | |
This is the first program I have had to do in 5 years so please don't be surprised by some of the mistakes. I am creating a program that will open a file and sort the integers inside that file using Insertion sort. There are 12 files and each as … Software Development c++ | |
I wonder what the correct syntax is to delete All contents like below: [B]2D vector string vector double vector[/B] These 3 look like this: [code] std::vector<std::vector<string> > Word2(100, std::vector<string>(100)); std::vector<string> Word1(100); std::vector<double> Number1(100); [/code] Is it correct to do this: delete[] Word2; delete[] Word1; delete[] Number1; Thank you Software Development c++ | |
I have a file named numbers.txt that looks something like this: 1243#74656453634#6356#56456456#565#1212121#78384 83#457#090#720347###24273#18712#478230478#57117 58125671#47464#74647#46474647#19192938#828##2583 5#2948284#6010203040# I need to replace all of the '#' symbols with '!'. Then I need to replace 3 of the'!' symbols to '@' but not knowing which ones. It could be the 2nd, 5th, 15th or … Software Development python | |
hi ..... i'm making an animation but am having a problem Tkinter. the problem is that when i open the file with python 2.5 and execute the code then it works but by just double clicking on the file icon the program don't not work properly.its does not show the … | |
I am a noob that is currently trying to learn C++ for a programming class in highschool, and I am having difficulty with a particular project. Basically, I have to create a number guessing game that lets the user play as many time as he or she wants, while telling … Software Development c++ | |
Hello all, I'm trying to write a program that will compute the real roots of the quadratic equation ax^2 + bx + c = 0 given by: x1 = (- b + sqrt (b^2 - 4ac)) / 2a and x2 = (- b - sqrt (b^2 - 4ac)) / 2a. … Software Development c | |
Hey people! I have been using VB2008 since it came out now, and have also used the 2005 version, but I was just wondering, if there is ANY way to create a Chat Application, or any way to create an IM service. Please help me :) Thanks x Software Development vb.net visual-basic | |
I am currently working on something where I have to make two shapes which extend to a class called 2d shape. I am currently working on my Triangle class which is this: [CODE]lass Triangle extends TwoDShape { String style; Triangle(double width, double height, String style) { super(width,height); } private double … Software Development java | |
Here's the problem: Ask the user for a floating point number until the user enters a negative number or zero. After each number the user enters print the highest and lowest number so far, and the average so far. Do not print the highest, lowest, and average when the user … Software Development c++ | |
i'm having a syntax error when trying to use switch condition: control cannot fall through from one case label to another... my code is [CODE]public override Boolean intersect(Shape s) { switch (s.GetType().Name) { case "RealPoint": { s = (RealPoint)s; if (!(this.gspos > s.gspos) && !(this.gspos < s.gspos)) return true; } … Software Development | |
I have another question for my homework. Here is the problem: Keep inputting numbers from the user until the user enters a 0. After each number, print a "running average". That is, print the average of the last three numbers entered. Be careful how you handle the first two numbers … Software Development c++ | |
Hello, In my java class we've been asked to create a painter program that allows the user to draw on the screen (as with a paintbrush). I had no trouble creating the program and having it perform up to standards with what was asked, but something that troubles me and … Software Development java | |
Can anyone tell me why this is happening? All the code and input files are below. Stack.h [code] #include <iostream> #include <vector> using namespace std; const char FILE_NAME[] = "palindrome.txt"; typedef char StackElement; class Stack { private: vector<StackElement> myVec; public: bool Empty() { return (myVec.size() == 0); } void Push(StackElement … | |
Looking for the best way to search a string for project that must test for bad input. Must be able to detect wrong characters, letters, etc. Software Development c++ | |
I assigned String ^ Box1 like this. [code] String^ Box1; Box1 = comboBox1->SelectedItem->ToString(); [/code] What I am trying to do now and wonder is if it is possible is to put [COLOR="Green"]"comboBox1->SelectedItem->ToString()"[/COLOR] to a vector. For the std:: it would look like this: [code]std::vector<string> StdVector; StdVector[0] = "comboBox1->SelectedItem->ToString()"; [/code] My … Software Development c++ | |
What would need to be done in order to make an application go full screen? this means NO task bar, or Title bar. I did find a small bit of code (a while back), but it didn't work. Any ideas/solutions would be great! :) Thanks! Software Development vb.net | |
Hello EveryOne I need Help here ,i have been trying to view this GUI but it keeps showing me this erroe `NoClassDefFounderError`. Anyones help would be appreciated. import java.awt.*; import java.awt.event.*; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.*; public class HeartLandHomeFinance2 extends JFrame { JPanel Panel; JLabel … Software Development finance gui java java-swing | |
Hello, I have dynamically allocated memory that I would like to share across threads. More specifically, I have an ACE thread pool, which I use to process requests on dynamically allocated ACE_Method_Request objects. These objects are created once at startup, and then processed throughout the system's running state (i.e. the … Software Development c++ | |
I need to build a simple integer caluclator that perform arthmetic functions of addition, subtraction, multiplication, modulus and disvision. The calculator contains an Accumulator that stores the current result. The Accumulator is also involved with each operation. Make sure that you define a class for this program. Once started, the … | |
Here's a problem we're supposed to do for my class: Input five numbers from the user and print the highest, the lowest positive number, the highest (closest to zero) negative number and the lowest number. If the user enters all positives or all negatives, print "none" for the missing output. … Software Development c++ | |
Hey can any one help me i'm doing a hangman program and want to display blanks where a to z is. how can i do this? I've got it replacing "a" but can't get it to replace the rest i.e. b to z any help would be appriaciated. [code] show … Software Development java | |
Hello everybody. I want to ask for some help. I need to type program that calculates areas of rectangle, triangle, circle and ellipse ( user input: rectangle = lower left corner point, length and width; triangle = top point, height, base; circle = radius and center point; ellipse = center … Software Development c++ | |
hi everybody..... i'm using an array to make a program but i'm not able to find the size (length) of the array.can anyone tell me how to do this? Software Development python | |
private static int readFile (String filename, String[] capacities) the file whose filename is given as a parameter, and fills array of strings representing capacities. Error checking: Each line of the file should be checked for the following errors. Lines of the file that contain errors should not be put in … Software Development java | |
Hi everyone I have a simple yet annoying problem. I'm trying to change the selected color in a stringgrid, ie when selecting a cell the background must change color. The grid has no fixed rows or columns and only one column (like a simple list editor). I've overridden ondrawcell for … Software Development pascal | |
For my homework assignment, I'm supposed to get five numbers from a user and print the highest one using a loop. I'm not sure what to do. Any suggestions? Software Development c++ | |
Ok i apologize in advance for my ignorance but i have just started learning c++ and my first program went off without a hitch now this one that im doing completely on my own is giving me some hiccups. The best i can tell is that im just having some … Software Development c++ | |
hi, i want to link to dll files in my project. I have the header and implementation files and object library file to that dll file. I don't know how to call the functions out of the dll file. I am using Visual studio.NET C++ IDE. Any help will be … Software Development c++ ide visual-studio | |
Hello, I need to overload my comparison operators such as == and < so that I can use things such as std::sort and std::unique on a vector of some user defined classes. I know how to overload them globally. The problem is I need to overload these operators as member … Software Development c++ | |
I have a simple program (code follows) that circle_shifts an array, but I need it to be able to quit when the user enters a character, (ex. q). Where do I start?[code]#include <stdio.h> #include <stdbool.h> #include <math.h> int printAr(int n[], const int SIZE){ unsigned int i; printf("Array contents: "); for( … Software Development c | |
I can get the code to compile, and essentially do what I want it to. The problem I'm having is in my getData(int choice) function. I want the function to keep asking the user to enter a valid number (1-8) if they enter something else. If I put an if...else … Software Development c++ | |
Hi i have to complete a program which do the following If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 … Software Development c++ | |
I am trying to delete what is written in a textBox like this in C++ .NET. When pressing the button the text/Numbers I have written in the textBox doesn´t deletes. I beleive 0 is the index from where to begin the delete wich should be from the first character in … Software Development c++ | |
Hi, I have an application set to run in a .bat file, and would like to know what I can do to hide the command window that comes up with the application when it is executed, but still have the application running. Software Development java | |
hi everyone....... i am writing a program where i have 2 ovals and i want my first oval to appear then after 2 seconds the second one...but am failing in doing this. can anyone help me to do this please. thank you in advance here is my code [ICODE] from … | |
For my homework assignment, we were asked to: Prompt the user for a positive number and get it from the user. Print each integer from 1 up to and including the user's number and the sum of all the integers from 1 up to and including each integer. Your output … Software Development c++ | |
hi, this should be a fairly simple question to answer. I have a function in my program that takes the content of a text file and populates an array with all the information. First it has to see how many lines the file has (as it can change) so it … | |
Hi again, this is a simple programme that I can't make work :S in turbo pascal. [COLOR="Green"]Write a program to create a new list and then display it through a Recursive Procedure ( and use 'p' as a local variable).[/COLOR] This is what I could do but considering I hate … Software Development display linked-list pascal | |
I want to access cd drive but i don't know how to do this... there are a way to do this? i think it will use api function? what api function i have to use? thanks in regards... any help will be appreciated. Software Development api visual-basic | |
Can you cast an array of char to a char*? Thanks. Nemo Software Development c++ | |
Hello, I've been trying to figure out this problem for a while now and cant figure it out. What im trying to do is assign a value to a location in an array. SIMPLE! isnt it. well heres my problem. int main(){ int array[1][1]; . . . array[0][1]=-1; array[1][0]=-2; cout<<array[0][1]<<" … Software Development c++ | |
Hi guys, I have a friend at school and she's taken Unix 2. She gave me a copy of her work assignment so that I could improve my scripting skills (Still a begginner at python and programming). This is the assignment: Write a script that will prompt the user to … | |
well i have set two tasks firstly create the seven segement display and do some sort of timer with the 7 segment display, i have done the seven segment display and here it is:- [CODE] Program SevenSegmentDisplayConverter; Uses Wincrt; var Line1 : string; Line2 : string; Line3 : string; x … Software Development pascal | |
when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h> Software Development c++ file-system | |
How do I make it show text? I'm completely new to this, my dad's wanting me to make this customer display screen show text, which on paper should be easy.. It's a WD-202 model, pretty common customer display pole, I've called a friend for help and he told me to … | |
i have tried every thing to get image on my button, i have looked all over the internet but i can't get a image to display, if any one can please help me. [CODE]import static javax.swing.JOptionPane.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.DecimalFormat; //Don's carpark2.java was used in making … Software Development java java-swing | |
Hi, I created an executable jar file for my Java application, and I was wondering if I should leave it like that or should I change it to a .bat file for execution via a webpage. May Software Development java |
The End.