49,761 Topics

Member Avatar for
Member Avatar for 2koolguy

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 …

Member Avatar for 2koolguy
0
199
Member Avatar for knight_268

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 …

Member Avatar for Fbody
0
98
Member Avatar for Divyab

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 // …

Member Avatar for LevyDee
0
152
Member Avatar for Chelp261

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 …

0
105
Member Avatar for Juicy5ursoul

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 …

Member Avatar for Juicy5ursoul
0
140
Member Avatar for HoldmysunnyD

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, …

Member Avatar for em-kay
1
267
Member Avatar for Lumin0us

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 …

Member Avatar for Lumin0us
0
111
Member Avatar for b.bob

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 …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for rumala13

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 …

Member Avatar for Ancient Dragon
-1
110
Member Avatar for Robert1995

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 && …

Member Avatar for Robert1995
0
126
Member Avatar for vbx_wx

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]

Member Avatar for vbx_wx
0
108
Member Avatar for yaoc1987

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!!!

Member Avatar for vbx_wx
0
135
Member Avatar for des6043

[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 …

Member Avatar for des6043
0
97
Member Avatar for gregarion

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 >> …

Member Avatar for Robert1995
0
180
Member Avatar for alexRivera

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: …

Member Avatar for alexRivera
0
125
Member Avatar for 2koolguy

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 …

Member Avatar for WaltP
0
93
Member Avatar for techstu

[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]

Member Avatar for techstu
0
84
Member Avatar for bullsfan127

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> …

Member Avatar for vmanes
0
190
Member Avatar for chinnaedu

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 …

Member Avatar for chinnaedu
0
208
Member Avatar for xclusv-aj

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: …

Member Avatar for Ancient Dragon
0
86
Member Avatar for virgin199

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 …

Member Avatar for jephthah
-2
626
Member Avatar for deanus

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....

Member Avatar for deanus
0
106
Member Avatar for tennis

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

Member Avatar for Narue
0
78
Member Avatar for d883956

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() { …

Member Avatar for Narue
0
121
Member Avatar for Lukezzz

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, …

Member Avatar for Lukezzz
0
238
Member Avatar for wittykitty

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 - …

Member Avatar for wittykitty
0
114
Member Avatar for CodyOebel

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 …

Member Avatar for n.cramp
0
2K
Member Avatar for roin14

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

Member Avatar for Robert1995
0
115
Member Avatar for johndoe444

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(); …

Member Avatar for Narue
0
163
Member Avatar for johndoe444

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?

Member Avatar for craig_ka
0
141

The End.