49,756 Topics

Member Avatar for
Member Avatar for pepsi123

I keep receiving these error messages: Applicant.cpp:25:6: error: prototype for âvoid Applicant::setDeposit(char)â does not match any in class âApplicantâ Applicant.h:12:7: error: candidate is: void Applicant::setDeposit(bool) Applicant.cpp:29:6: error: prototype for âchar Applicant::getDeposit()â does not match any in class âApplicantâ Applicant.h:13:7: error: candidate is: bool Applicant::getDeposit() Applicant.cpp:71:5: error: prototype for âint Applicant::addPoints(int)â …

Member Avatar for pepsi123
0
170
Member Avatar for gthaliath

Hi I would like to get some directions on where to look for in the way of getting a c++ profram to put hex values on a printer. I would also like to know if some one could guide me with a few examples. Regards GT

Member Avatar for Ancient Dragon
0
33
Member Avatar for pkfx

Hey, I've completed an assignment in visual studio and it gave me expected results for example 261. My university system uses g++ so i compiled the assignment with it and it gave me 262 and there the exact same files. If anyone has any suggestion and experiances like this please …

Member Avatar for JasonHippy
0
108
Member Avatar for mLearning

Hi, I am using RC4 to encrypt the data. It works fine. But I found that some encrypted values contains NULL character or other escape characters in result. Due to which when I read the string back to decrypt, does not give the whole string back but truncate the string. …

Member Avatar for mLearning
0
242
Member Avatar for pjh-10

#include <iostream> #include <new> using namespace std; int main () { int i,n; int * p; cout << "How many numbers would you like to type? "; cin >> i; p= new (nothrow) int[i]; if (p == 0) cout << "Error: memory could not be allocated"; else { for (n=0; …

Member Avatar for Lucaci Andrew
0
160
Member Avatar for Mncedisi

You are asked to write a program that manages a company's stock. To manage the stock the program need to keep track of item information, prices and quantities. A user should be able to adjust these values on selected items, draw reports and perform certain functions over all the data. …

Member Avatar for Iyfjeyeon
0
180
Member Avatar for iamcreasy

Hi, I used to solve ACM problems, but I used old scanf & printf for input and output.But now i want to use C++ style IO. So, i picked a simple problem, and tried to convert its old style IO to new style IO. The problem : [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996"]http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996[/URL] (in summery, …

Member Avatar for iamcreasy
0
260
Member Avatar for asha12@gmail

what are arrays in c++ programming how to do or what is meant by swaping?

Member Avatar for Agni
0
92
Member Avatar for Niketh

hi all, I am working on C++ coding of fault simulation algorithm of a digital circuit . The first step involves parsing of netlist files. The sample netlist looks like - # Only 2,3 input gates considered ... INPUT(1) INPUT(2) INPUT(3) INPUT(6) INPUT(7) OUTPUT(22) OUTPUT(23) # comment here 10 = …

Member Avatar for hactor
0
556
Member Avatar for owenransen

I'm flumoxed, how do people normally handle CBaseClass::operator== and CDerivedClass::operator== What I have done is illustrated below, but is it good valid C++? I compare the base class members first (using base class ==) and then the derived class members (the rest of the implementation of the derived class ==). …

Member Avatar for rubberman
0
120
Member Avatar for maniee

PREHIT/0.05 RETRACT/0.05 $$ NO,>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ,SEARCH FOR A SURFACE ASSIGN/V4=0 ASSIGN/V2=.32 ASSIGN/XOLD=0 ASSIGN/V1=0.01 ASSIGN/V3=0.001 SRCH01 =LABEL/ PNT7B1 =FEAT/POINT,CARTESIAN THEO/<2.739,3.395,V2>,<1,0,0> ACTL/<2.7395,3.399,0.2218>,<1,0,0> MEAS/POINT,1 HIT/BASIC,NORMAL,<2.739,3.395,V2>,<1,0,0>,<2.7395,3.399,0.2218>,USE THEO=YES ENDMEAS/ ASSIGN/V4=V4+1 IF/XOLD < PNT7B1.X ASSIGN/XOLD=PNT7B1.X ASSIGN/V5= PNT7B1.Z END_IF/ IF/XOLD < PNT7B1.X + V3 ASSIGN/V2=V2 - V1 GOTO/SRCH01 END_IF/ ASSIGN/V2=V5 + V1 ASSIGN/XOLD=XOLD-.001 IF/V1 == .01 ASSIGN/V1=0.003 ASSIGN/V3=0.00015 …

Member Avatar for maniee
0
189
Member Avatar for marin.kvasina

I've been tryin to make a keylogger to see how C++ handles keystrokes and sends them. I've found some code online and modified it a bit but, this has limitations and isn't accurate enough (+ missing characters from non english keyboards). #include "stdafx.h" #include <iostream> #include <windows.h> #include <winuser.h> using …

Member Avatar for BobS0327
0
236
Member Avatar for triumphost

I'm trying to flip an image which has its pixels stored in a vector. For some reason, when I try to flip it, the image gets distorted and gray/fuzzy. Any idea why? My code is as follows: void JNIData::FlipBytes(void*& Result, bool TopDown) { unsigned char* Pixels = &BufferPixels[0]; //vector of …

Member Avatar for mike_2000_17
0
218
Member Avatar for dsotelo91

Hi there. I am trying to code a program to add or subtract two polynomials using linked lists. For ex. (+4x^2-2x^1) + (+2x^12-5x^5). So far I have a read function which takes in a string and uses substrings to take the coefficient and exponents and insert it to a node. …

Member Avatar for dsotelo91
0
4K
Member Avatar for testie

Im having some trouble putting together a linked list implementation of a queue. I'm getting a segmentation fault, which I believe is due to my empty() function because in an attempt to fix my empty() function, I made it determine empty based on (current_size == 0) instead of (front_p == …

Member Avatar for dx9_programmer
0
752
Member Avatar for blackcathatesMICE

Please help me. I really need a source code of a game that works on dev c++ except for the games: snake, sudoku, crossword, tic tac toe and hangman. almost everything i got from sarching the net had errors.. it's a rush school work. please help me. thank you.

Member Avatar for deceptikon
-3
143
Member Avatar for rizwan.ali.1656

HI I would like to modify the following function so that it could take any of the operators such as +,-,* or /. I want to know if its possible to do this without having to write bunch of ifs and else to define each of the operators separatly like …

Member Avatar for ravenous
0
351
Member Avatar for heather.fletcher.2012

Here is my code... #include <iostream> #include <cstring> using namespace std; class employee{ public: char name[64]; long employee_id; float salary; void show_employee(void); }; }; { cout<<"Name:"<<name<<endl; cout<<"ID:"<<employee_id<<endl; cout<<"Salary:"<<salary<<endl; }; }; int main(void); { char str1[40]="employee worker"; char str2[40]="employee name"; char str3[40]="employee boss"; char atr4[40]="employee name"; strcpy (worker.name, "John Doe"); worker.employee_id …

Member Avatar for JasonHippy
0
129
Member Avatar for jay.zyzz

**Tic-Tac-Toe without a class** Write a modular program that allows two players to play a game of tic–tac-toe. Use a two-dimensional char array with 3 rows and 3 columns as the game board. Each element of the array should be initialized with an asterisk(*). The program should display the intial …

Member Avatar for jay.zyzz
0
9K
Member Avatar for pavitrakannan

im making a student marksheet generation project.....and i need a facility to print from turbo c++ to excel.... i have used only file handling and no database(tht was the criteria). pls help.....

Member Avatar for Ancient Dragon
0
113
Member Avatar for Vish0203

#include <iomanip> #include <iostream> using namespace std; int main() { cout << left << setw(10) << "Hello"<< "*" << right << setw(4) << "World\n"; } is the above code correct?? I think the alignments are not working for me.. MY output Hello^^^^^^^^^*World (represented spaces as ^)

Member Avatar for Banfa
0
274
Member Avatar for ItecKid

How to check if a vector is NULL? [code=c++] vector <int> test; [/code] How to check if this is NULL? [code] if (test == NULL) [/code] returns compiler errors.

Member Avatar for Lucaci Andrew
0
5K
Member Avatar for TheNotoriousWMB

I'm trying to build a banking program with the capability to create new accounts (savings or checking), process a deposit, process a withdrawal, or print one or all of the accounts at this "bank". I am doing this utilizing two classes, one for 'Checking' and one for 'Savings'. I've more …

Member Avatar for Gonbe
0
279
Member Avatar for AmrMohammed

Greetings I wanna know what is going inside the steps when compiling a C++ source code to native code. I know the steps are such that: 1- Preprocessor copies the contents of included header files into the source code file. Q1: So how would the C++ source code file look …

Member Avatar for mike_2000_17
0
256
Member Avatar for slygoth

I have been trying to read back the information from a file that i created. I get all the information i need out of the file but now all i want is to use the display function from the linklist to get that information. I would like it if the …

Member Avatar for Ancient Dragon
0
130
Member Avatar for fonzi

Hey guys, I am curious on how to start automated testing, and what kind of software or scripts would i need to test java, c , c ++, c#, or python code. Also does anyone now any good well explained videos or websites out there, i tried searching on google …

Member Avatar for Schol-R-LEA
0
311
Member Avatar for daesung

#include <iostream> using namespace std; main() {intx,charge; float a,b,c; cout<<"case 1<=2hours,case2<=3hours,case3<=4hours,case4<=5hours,case5>6hours\n"; cout<<"pls enter your time entry\n"; cin>>a; cout<<"pls enter your time exit\n"; cin>>b; c=b-a; cout<<"no of hours park is\n"<<c; cout<<"pls enter no of case according to your no of parking hours\n"; cin>>x; switch(x) { case 1:cout<< "the charge is RM2.00\n";break; …

Member Avatar for amrita111
0
77
Member Avatar for ShEeRMiLiTaNt

Hello I am having a problem with this function. Everything works fine until it reaches the `delete []dynamicArray` line. Can someone please tell me why it would crash at this part? string* addEntry(string *dynamicArray, int &size, string newEntry) { string* hold; hold = new string[size + 1]; for (int i …

Member Avatar for ravenous
0
96
Member Avatar for joey777
Member Avatar for JorgeM
0
188
Member Avatar for sanghai45

What is grid base concept ? How do we make grid base game ? then what is Tilebased game ? What is the difference ? I know that bomberman,farmville etc are grid based game are they called tilebased also ? How do we create grid and place objects on it …

0
80

The End.