49,761 Topics
| |
Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student Worker Student_worker Write a program that asks user to input information (student, worker etc) and creates a list of persons. Give … | |
My teacher want me to create a program called Bubblesort and I dont know how to do it. Plz help me. And these are description: 4.2.3 ASSIGNMENT: - Bubble Sort Program In this exercise you will create a bubble sorting algorithm that will sort an array of random numbers in … | |
hey plzz help... i'm encountering many errors in dis code segment.. plz try n remove d errors asap... n tell me how to generate a database in C++[code]/* ----------------------------------------------------------------------------- -------------- PROGRAM TO IMPLEMENT THE PAYROLL OF EMPLOYEES ---------------- ----------------------------------------------------------------------------- */ #include<fstream.h> #include<fstream.h> #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 50 // … | |
I have a program which is as follows: We'll extend the Search and Rescue Simulator. You will implement a class to represent the location of a person, and add searchers to the simulation. A Person class that will be used to represent both the missing person and the searchers, details … | |
This is what I have to do and I am so confused I do not even know what to do. Please help. Thank you Write a program that generates an Employee Payroll Report. The input for the program consists of a collection of data containing the last name, hourly pay … | |
Hey Daniweb, I'm back again! This time around, my assignment is to implement a binary tree, a tree node, and a binary search tree using the class definitions given to us by our teacher. Implementing the TreeNode was no trouble at all, but when I started on the Tree itself, … | |
Hey everyone, I want my code to generate a color like it would generate in a C# application. For example Light Green versus Standard Green : [url]http://img694.imageshack.us/img694/3233/colore.jpg[/url] [CODE] #include <iostream> #include <Windows.h> using namespace std; void initColor(int); int main() { initColor(2); cout << "===== INITIALISATION =====" << endl; initColor(7); return … | |
Hi, I would like to understand how arguments work in C++ functions. I have this: HRESULT PCSys::CheckActNode(WCHAR *iNod, ULONG iSeq, ULONG *ioHiber) I don't understand it. what is the difference between the input argument and the output argument and the inputoutput (3rd argument). How can we differentiate between them and … | |
question is that In computer networking, a Media Access Control address (MAC address) is a unique identifier assigned to most network adapters or network interface cards (NICs) by the manufacturer for identification, and used in the Media Access Control protocol sub-layer. The original IEEE 802 MAC address comes from the … | |
Hello , I have tried several ideas , times and ways to do this but all fail on the site's test , could any1 give me an idea or something [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=98&page=show_problem&problem=1415"]Problem[/URL] [CODE] #include <iostream> using namespace std; long int q,n,i,point,casenr; long int marbles[10000]; int main (){ while(1==1){ cin>>n>>q;casenr++; if(n==0 && … | |
Hi all,i am using function COpyFile() to copy a file to windows directory,but the function return error code 5: [CODE] char win_path[MAX_PATH]; char reg[MAX_PATH]; GetModuleFileName(NULL , reg ,MAX_PATH); GetWindowsDirectory(win_path , MAX_PATH); bool x = CopyFile(reg , win_path , true); if(!x) cout << GetLastError() << endl; [/CODE] | |
1>c:\documents and settings\joe\desktop\spring 2010\csc 212\hw\hw #5\rec_fun_test.cpp(25) : error C2065: 'outs' : undeclared identifier i keep getting this from one of my codes it is from a prototype void binary_print(ostream& outs, unsigned int n); is there a #include needed for that or something???? please help!!! | |
[CODE]#include <iostream.h> #include <conio.h> int main() create s push (s, '#'); while (not end of infix input) { ch = get char; if (ch is an operand) add ch to postfix expression; if (ch is a '(') push (s, ch); if (ch is a ')') { pop (s); while (ch … | |
Hey guys , i would like to ask some question regarding checking if a string is all integer. First off, i wrote a program to check if the value i enter contains strings. [CODE]string str; int n = 0 ; cout << "Enter the letter please "<< endl; cin >> … | |
having trouble with the print and the main [CODE] #include <fstream> #include <iostream> using namespace std; struct Item { int value; Item *next; }; class Queue { protected: Item *fill; Item * remove; public: void addingtoqueue(int); int takeaway(void); bool empty (void); Queue (void); }; class Merge: public Queue { protected: … | |
Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student Worker Student_worker [COLOR="Green"]Write a program that asks user to input information (student, worker etc) and creates a list of persons. Give … | |
[QUOTE]hi all...i have just started to work in visula c++ and i have to create a program to read a txt file...but as i am debugging my program, it is giving an error on line[/QUOTE] [CODE]#include<fstream.h>[/CODE] | |
i have to write a program that takes input from the user and displays a simulated check we have to write the dollar amount in words and i cant figure out how to go about doing that. this is my code so far. [CODE]//******************************************************* // Include Files //******************************************************* #include<iostream> #include<iomanip> … | |
Hello all, i have a small problem with my application and i am stuck now.... i have data coming on a particular port and i need to trasnsfer that particular data that i received to another port on a different machine... The data that i receive is over udp and … | |
Hi, Im using Dev-C++ for my program although i have fixed most of the errors i still have a few errors which i dont know how to fix and was looking for some help with them. The errors which i am getting are: [CODE]Compiler: Default compiler 5:C:\Documents and Settings\XclusV\Desktop\MY PROGRAMMING\/cruise.h: … | |
hello how are you ?? I sing here because i know that you will help me.:) I have a difficult:( assignment and I have to give it to the teacher tomorrow at 9 am, It’s about the class and it says A. Some of the characteristics of a book are … | |
Hi I've just started out in c++, can anyone tell me how to use pointers which hold addresses of objects ? How do you access the object fields from this type of pointer, especially strings (array of chars)... I'm using a Dev c++ 4.9.9.2 compiler.... | |
I am not quite sure if I understand the meaning of the question very well I am thinking the answer is yes since we can use dynamic binding? Is this the right answer? Thanks | |
Im tryna get my code (as seen bellow) to print both the variable "jax" with two decimal places, and the full value opf the variable "jax" so the out put should be: [B]8712.65 8712.654[/B] [b]How do i do this? [/b] [code]#include <iostream> #include <iomanip> using namespace std; int main() { … | |
Hello, I am opening a new Form in my application and want to pass along a variable to Form2. I think I am pass along it correctly but are not sure how to receive it in Form2. How will that be possible ? [code] String^ ForwardVariable; private: System::Void button1_Click(System::Object^ sender, … | |
I have been trying to figure out for the life of me what I am doing wrong here, and I am coming up blank. My operator is returning the correct value in temp - as you can see highlighted in red, however, when I use the operator in main - … | |
So far no one has been able to tell me why this code is not working, or what I need to do to THIS code to make it work. Can someone simply show using MY code below where the problem is, and why it's not working properly? Problem: I am … | |
using switch and if ... else statements, write the two grading programs. consider the following grading system; 70-100 A 60-69 B 50-59 C 40-49 D 0-39 F | |
In the following code: [CODE]#include <iostream.h> class Base { public: Base(){ cout<<"Constructor: Base"<<endl;} ~Base(){ cout<<"Destructor : Base"<<endl;} }; class Derived: public Base { //Doing a lot of jobs by extending the functionality public: Derived(){ cout<<"Constructor: Derived"<<endl;} ~Derived(){ cout<<"Destructor : Derived"<<endl;} > }; void main() { Base *Var = new Derived(); … | |
In some c++ source code I wrote this: [CODE]#include <iostream.h> using namespace std; [/CODE] [CODE]error: iostream.h: No such file or directory[/CODE] I compiled it using g++. But when I changed it to #include <iostream> it started working. Why? |
The End.