No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi guys! I am wondering how can one perform a sorted merge between the calling object list and the the passed in list? Here is what I have got so far : [CODE]#include<iostream> using namespace std; #define NULL 0 template <typename T> class DoublyLinkedList; template <typename T> class Node { … |
|
Hi all, I am playing around with list and I figure out how to merge two lists and all. But I have no idea how can I integrate one list onto another. For example A = {1,2,3,4,10,11} and B = { 5,6,7} Then my integrated list should be {1,5,2,6,3,7,4,10}. I … |
|
Hello, I am writing a class that can handle large number of digits. I am trying to overload >> operator so that it can store the user input value and if user entered nondigit then it should print an error message and display the default value of 1 ; overload … |
|
Hey guys, I have written a recursive function mazeTraverse which finds the path of the mouse to find its food which is placed inside the maze. I am given a maze of of 15 rows and 25 columns. Mouse's starting position is (8,1)[eighth row and 1st column] and the food … |
|
Hey guys, I have written a recursive function mazeTraverse which finds the path of the mouse to find its food which is placed inside the maze. I am given a maze of of 15 rows and 25 columns. Mouse's starting position is (8,1)[eighth row and 1st column] and the food … |
|
Hello, I am trying to design a page which has a textarea and a button that says "say something", assume the page is "test.jsp". If a user hit that "say something" button, browser redirects to another page where user can enter anything they want, assume the page is "test1.jsp" . … |
|
Hello, I am supposed to write a program that prompts user to enter the numbers separated by space and when user click "ok" button, it should display the numbers entered with its mean, and standard deviation and the window should ask if user wants to enter numbers again if yes … |
|
My program should allow to display prompt box to enter values for a b and c and should display message in prompt box like "invalid number please enter number again" for a if a ==0 and a is not a number. Same with b , but b can be equal … |
|
can you guys help me how can I remove all those drawn rectangles if user click the mouse in the applet field? I am supposed to write a program that displays a rectangle and color it with green when user drag the mouse. But if user click the mouse anywhere … |
|
I am trying to write a program that displays a rectangle when user drag the mouse and when user release mouse, it displays the rectangle with green color. I am terribly confused here is what I am thinking to do import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.net.*; public class … |
|
I am trying to work on VIEW command of SQL. Whenever I write the SQL as [code=sql]CREATE VIEW PartOrder AS SELECT PartNum, NumOrdered, price FROM part;[/code] I get an error message "Syntax error in CREATE TABLE". I dont have any problems in writing SQL commands but whenever I mention CREATE … |
|
I am working on this assignment, compiler is giving me 2 errors but I couldn't find any mistakes. [CODE]#include<iostream> using std::cout; using std::endl; class opOverload { public: opOverload(); opOverload(int,int); opOverload operator+(opOverload); void show(); private: int sub1; int sub2; };[/CODE] [CODE]#include<iostream> using std::cout; using std::endl; #include"opOverload.h" //default constructor opOverload::opOverload() { } … |
|
Can anyone please help me to find the sum in the linked list. I have written codes to insert and remove numbers from lists but I have no idea how to calculate the sum. [CODE]void List::insert( const double &value ) { ListNode *newPtr = getNewNode( value ); if ( isEmpty() … |
|
I am working on this program and I am getting compilig error here is the code:- [CODE]#ifndef ACCOUNT_H #define ACCOUNT_H class Account { public: Account(double = 0.0); void credit( double); bool debit (double); void setBalance(double); double getBalance(); private: double balance; }; #endif[/CODE] [CODE]# include <iostream> using std::cout; using namespace std; … |
|
Re:
i dont understand looping at all. plese help if you can. i know its like doing my work for me but yeah i dont know looping. create a program that keeps reading a sentence and a character and displays how many times the character appears in the sentence until user … |
|
Re:
I am trying to solve a problem from a lab challenge. I can not get the program to compile correctly. Please look over and let me know where I need to be looking to solve this Use a two-dimensional array to solve the following problem. A company has four salespeople … |
|
I have working version of code but mu ostream<< function should print data acoording to the row and column specified. Here is the codes :- [CODE]// // 4/11/2008 // This is a header file of Array2D class which stores 2D arrays #ifndef ARRAY2D_H #define ARRAY2D_H #include <iostream> using std::ostream; using … |
|
I have to write a program that created 2d array but store all data in a dynamically allocated 1d array. I have function definition and I know how to write up other functions but I need to overload operator() to aceess the array. Here is the definiton : [CODE]public: Array(double,double); … |
|
Hi, I am trying to do my project but I am stuck. It looks like a big project but it is not. here is the question : I am given sample output of rectangles and some code. I need to add few free functions to make the outout like that … |