48,985 Topics

Member Avatar for
Member Avatar for pichi20

Hey, I need to do a program that displays a menu with 5 options that works with search and sorting of arrays of unordered decimal numbers: 1)Read file 2)Linear Search 3)Binary Search 4)Bubble Sort 5)Selection Sort each option has to display the result. with the option 1 has to ask …

Member Avatar for Software guy
0
107
Member Avatar for edbtzy

I am trying to make a program that calculates the amount of money saved with compound interest. It needs to output the amount of money saved for each year it accrues. This is what i have so far , using a for loop: [CODE]int main () { double p; double …

Member Avatar for Jiwe
0
219
Member Avatar for Falmarri

Is there a c++ library, preferably an STL, that can parse for regular expressions? Or is there an open source standard expression that I could preferably just include in a header instead of having to link against? I've never been good with regular expressions though. What I'm trying to do …

Member Avatar for Falmarri
1
140
Member Avatar for CppBuilder2006

how can I complete/run the example on this page: [url]http://msdn.microsoft.com/en-us/library/ms644960(VS.85).aspx[/url] :icon_idea:

0
64
Member Avatar for Pynolathgeen

Hello, I'm programming this patcher for my upcoming 2D Game, called Argyus Online. When I compile the patcher it works on my computer but when I execute it to my moms laptop, it give me some error. I can't translate it to english but I think its something with the …

Member Avatar for Pynolathgeen
0
110
Member Avatar for Pynolathgeen

Hello, I created a fully working progress bar for my 2D Game patcher. I have a question, Is it possible to have an Image painted on the progress bar? I know its possible in VB but I wanna try it in C++. I could find any results using Google. Thanks!

Member Avatar for Pynolathgeen
0
209
Member Avatar for skorm909

so when i have my if statement, if someone goes to put in say: 1 for the answer, and 1 wasnt a choice, when i put it in again it closes the program, heres an example [CODE] int action; cout << "press 2, 3, or 4." << endl; cin >> …

Member Avatar for Fbody
0
155
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
188
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
97
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
151
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
257
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
125
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
134
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
96
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
177
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
123
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
82
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
189
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
142
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
546
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

The End.