General C++ Programming - December 2013 (Page 16)

whats wrong with this code.plz help me.
 
the problem is in main() contact details are working properly,but appointment part is not working.plz coorct it for me. #include<iostream> #include<iomanip>...
[1 reply] : Can you tell me what this program does? Is it File handling..? (by Cpluspluslovers)
need some help !!!
 
i try to write a postfix calculator program using stack in C++ the in put must be the infix expression .......... but can dont know how to write a infix expre...
[2 replies] Last: :( no one here ........... if u have no time to fix it plz give me som... (by Shady Attack)
templates and memory occupancy
 
Dear all, Let us consider the following two classes: class case1 { public: int n; float x; }; template<int n> class case2 { public: ...
[3 replies] Last: > where is the value case2::n stored? There is type with the name ca... (by JLBorges)
by atiqah
square root
 
#include <iostream> #include <cmath> #include <stdio.h> #include <math.h> using namespace std; int main() { int choice1, choice2, choice3, sqrt, in...
[2 replies] Last: Do not include <math.h> as it is obsolete. You also don't need <stdio.... (by Mats)
by Zapeth
Need help with fixing this piece of code
 
Hi (sorry for the unoriginal title, couldn't think of a better one), I'm trying to compile a rather old project which probably was originally made with VC++ 6.0...
[2 replies] Last: Thanks that solved it. Too bad I didn't look at the warnings though (... (by Zapeth)
Cant return int
 
At the end of the class It will not let me return an integer any help? #include <iostream> #include <fstream> using namespace std; //This class sort...
[1 reply] : You specify that the function should return T* not int. That's why it ... (by sargon94)
Bank Account Project!!(assistance)
 
I am doing a project That 1) Has a Class called BankType 2)Has Class functions(implementation file) 3)Has v...
[3 replies] Last: Instead of: #include <BankType.h> use : #include "BankType.h" ... (by xismn)
What is wrong with my generate()?
 
Hello. On un-commenting the call to my generate() function, I get strange errors which are difficult to fix. My call to function generate(): generate...
[1 reply] : On un-commenting the call to my generate() function, I get strange er... (by cire)
C++ loop not working
 
I would like to have my program as a .exe file that is clickable and will run without closing quickly. I want it to where if I put an input in, it runs, then st...
[10 replies] Last: That didn't work either. I ran 'calculate code metrics for solution' u... (by Firepathedian)
PayRoll
 
#include<iostream> #include<iomanip> #include<cstdlib> #include<string> using namespace std; //function prototype void GetData(string FullNam...
[4 replies] Last: Is all of my codes and functions are in order. Cuz i keep trying to ru... (by evan1991)
GDB Build: Running into problems
 
I got this error: *** BFD does not support target i686-pc-msys. *** Look in bfd/config.bfd for supported targets. make : *** [configure-bfd] Error 1 Seems ...
[4 replies] Last: trying that tdm didn't work either. It couldn't get past g++... (by IWishIKnew)
Local function definitions are illegal
 
Can anyone find the error i am getting please? #include <ctime> #include <cstdlib> #include <iostream> #include "Problem1.h" using namespace std; ...
[2 replies] Last: Yea, your right thanks! (by Jose94ji)
Numbers game
 
hello, I have a program that stores current a low numbers. The Object is to Store the low number every time time one is presented. so say I start the function ...
[1 reply] : If you have b = a going on then there is hardly much point checking if... (by Mats)
Accessor Function Pardigm
 
class foo { int val; public: int val() const { return val; } // get val int& val() { return val; } // modify val }; int main() { ...
[4 replies] Last: I was browsing an open source project and found some code bits that us... (by Thumper)
by trino
Use Concorde TSP as a library
 
I'm making a code in C++ that should use a library that is called Concorde to solve a well known problem called Traveling Salesman Problem. This library is avai...
[no replies]
Is the algorithm implemented wrongly?
 
Hi. Have I implemented the Bucket_sort algorithm wrongly? Here is my code: m = atol( argv ); base = atol( argv ); r = atol( argv ); long iRangeSize = ...
[1 reply] : Alas, it is wrong. That isn't a bucket sort... you are actually tryi... (by Duthomhas)
error: no matching function for call
 
This code from http://www.cplusplus.com/doc/tutorial/classes/ as it is gives compile error I can't understand. #include <iostream> using namespace std; c...
[3 replies] Last: Thanks for replies. Are you guys saying following code is wrong as gi... (by toicomment)
Destructor + inheritance causing program to crash after running?
 
Hi, I have a class which dynamically allocates memory for three data arrays, and as such in the destructor I told it to delete those data arrays. However,...
[3 replies] Last: I'll just leave this reply for the possible future, the one in which y... (by Catfish666)
C++ questions
 
I know we are not supposed to post homework/test questions but a friend that was going to help me flaked. There were 50 questions total and I do not know the a...
[1 reply] : Why don't you tell us what you understand about each of the questions,... (by Zhuge)
Connection Vecotrs
 
I have no idea why this doesn't work. I don't think there is any information missing, but I can include it if necessary. I am pretty bad with vectors, so my syn...
[3 replies] Last: http://www.cplusplus.com/forum/general/112111/ > vector<connection *... (by ne555)
December 2013 Pages: 1... 1415161718... 37
  Archived months: [nov2013] [jan2014]

This is an archived page. To post a new message, go to the current page.