General C++ Programming - December 2012 (Page 41)

by harsha
SIGABRT error
 
What could be the line that can cause SIGABRT error in this prog??? #include<iostream> #include<s...
[5 replies] Last: @moschops, well the program gets crashed when the value of n>10^7 Th... (by Moschops)
by doon
delete node
 
if i want to delete a node in a linked list recursively. what shall i send from the main in order ...
[3 replies] Last: so shall the user inter the num of the node that he want to delete? th... (by doon)
Strange quadratic equation c++ bug?
 
Hello, here is my program for solving quadratic equations: #include <cmath> #include <iostrea...
[3 replies] Last: ahh ok, thanks alot :) (by Assassinbeast)
Help With Enums
 
I just can't seem to get enums in other classes located in other files. I do not get why this will n...
[9 replies] Last: As firedraco has already said, it is not a good idea to cast an int to... (by andywestken)
Crash of moving objects
 
Hello everyone, I have some code which creates two rectangles ( same dimension but different colo...
[12 replies] Last: A little imagination .... Google C++ compare floating point. Hope th... (by TheIdeasMan)
make a list using 2D Array
 
hi guys........i'm shofi. i am beginner in C++. how can i make list of 'n cities using 2D Array. ...
[6 replies] Last: i would use a string vector std::vector<std::string> cities; you ca... (by Darkmaster)
Infinitely small numbers
 
This evening I wrote a function to calculate a derivative: typedef double (*func)double; double f...
[4 replies] Last: Oh, I see. You're right! template<class T> typename std::enable_if<... (by Stewbond)
Please tell me what these errors mean?
 
Please tell me what's wrong with the code. I'm a beginner. https://www.box.com/s/b5va4zu1nnlj15l2...
[7 replies] Last: Thank you all :) (by Novice Coder Alpha)
help with coordinate adding program(classes)
 
hello i am pretty new to coding and am having a problem with this code. it's supposed to add two coo...
[5 replies] Last: Coordinate Coordinate::operator=(const Coordinate& a)const //<---- y... (by Nexius)
Array programs homework
 
I have an assignment due for this sunday, and I would like to see if some one can guide me to succe...
[2 replies] Last: //This is what I have, but I am not available to range the low, target... (by jricardolopez69)
Help with c++ projecteuler problem
 
Hey I am working on http://projecteuler.net/problem=4 and this is the program I have I don't know wh...
[8 replies] Last: Thanks for the lesson, I didn't understand very much of that but atlea... (by Filiprei)
Using a Struct in a Priority Queue
 
Hey All, I need some help with the use of a Priority Queue. I have a Struct struct node { ...
[14 replies] Last: > Not sure there was ever an issue with the const part. What would ha... (by JLBorges)
by strava
function template has already been defined & signed/unsigned mismatch
 
I implemented an cpp file however it gives C4018 - signed/unsigned mismatch and C2995 - function tem...
[1 reply] : The signed/unsigned warning often happens in a 'for' loop when the ind... (by normvcr)
Definitions help.
 
Can someone help me on this problem, because I just don't get what they are trying to tell me withou...
[2 replies] Last: Did you try compiling it? You would get errors. Do you know what a fu... (by firedraco)
typedef as return type
 
Hi all, I was browsing through an SDK (Filemaker plugin SDK) and stumbled upon the following code: ...
[3 replies] Last: Thanks a lot. That is exactly the answer I didn't know I was looking f... (by methodos)
Question about const reference
 
Hey.. can anyone explain me why doing: const int& a = 8; is possible? what does it do? how ca...
[3 replies] Last: Sweet, it's nice to have confirmation like that! (by Stewbond)
copy constructor
 
Hi all, I have a class A consisting of a member data which is a pointer B* that points to some ab...
[3 replies] Last: Yes, I did miss the abstract part. That was pretty interesting to rea... (by Stewbond)
c++ friend operator and Classes
 
I need help with a few things... If someone can PM me, I would sincerely appreciate it. TY
[9 replies] Last: To help you out with other errors that will appear... Once I made th... (by Stewbond)
Prevent program from crashing when entering a char in an int?
 
So I have my code, and you have to write a number. But if you enter a character it just shuts down.....
[1 reply] : You can try this int i; // you will enter i int f; // flag ... (by TTT)
by djdj
See the source code when compiling in gcc
 
hi sorry my english language is very poor :D . how can see source code when compiling in gcc lin...
[1 reply] : The source code that is passed to the compiler is saved to an .ii file... (by Athar)
December 2012 Pages: 1... 3940414243
  Archived months: [nov2012] [jan2013]

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