General C++ Programming (Page 5)

Polygon
 
Stroustrup has said " Polygon is a Closed_polyline where no two line segments intersect " in PPP. ...
[12 replies] Last: I don't agree with that. Definition of Polygon is reasonable. Implem... (by keskiverto)
delete[] necessary when allocation fails?
 
Hey guys, I have a quick question about dynamic memory. I know that if you are dynamically allocati...
[4 replies] Last: Well, don't worry to much about 'allocation fails'. Todays computer ha... (by coder777)
by Nurlan
Change tooltip of CMenu item
 
I want to change tooltip text of CMenu item dynamically. The menu is loaded from resources (.rc). ...
[no replies]
Modifying object data in linked list
 
I'm having a problem trying to modify my patient's data. It seems to work, but once the block of co...
[1 reply] : The variable patient on line 72 is not related to list1 , so if you... (by coder777)
Headers and arrays
 
Hopefully you get what I'm trying to do from the below, if it is possible then could you explain to ...
[2 replies] Last: still produces the same error, I thought of something else instead tho... (by awsdert)
by rdekou
Segmentation fault Core dump (1,2)
 
I'm writing a code using least mean square to fit a sample of data. The code is running till an ite...
[21 replies] Last: Hey I solve my problem, I used to have an unitialize pointer pass as a... (by rdekou)
by rva03
Question about backtracking issue
 
Hello, i'm writing a backtracking program. The program ask the user for a height and width of the fi...
[4 replies] Last: Ok, I changed the thing you said to if (((x + s) <= n) && (kanzet)){ ... (by rva03)
Assertion failure
 
My adjacent_difference function is causing my program to crash. What am I doing wrong? //C++ ...
[3 replies] Last: Thank you for the replies, I had newList(8) in the declaration but was... (by yoked88)
by km2594
C++ programming help
 
#include<fstream.h> #include<ctype.h> #include<iomanip.h> #include<conio.h> #include<stdio.h> ...
[2 replies] Last: I made the correction. But i'm still not getting the output. (by km2594)
Newbie to c++ (1,2)
 
Hi guys. Im totally new to C++ and coding has never been straight forward to me. I have commented...
[32 replies] Last: Sorry I misunderstood the problem. I believe removing line 118 will f... (by Goliathus)
Custom Shared Ptr
 
Hi, this is my first time asking a programming question on here so forgive me if you don't like my w...
[3 replies] Last: > Anyway, I'm writing my own version of a shared pointer to utilize my... (by JLBorges)
Problem with string array sorting
 
I am trying to read information in from a file, each line of which contains a name in the form 'last...
[no replies]
Allocator and Inheritance
 
Hello, I've read somewhere that std::allocator works by allocating a block of memory that is large e...
[3 replies] Last: Yes, there is - that is what the example is doing. The 'T' is the deri... (by NT3)
Need help on fixing a loop.
 
Hello. I am currently working on a project for a class and I need help trying to figure out why when...
[6 replies] Last: Thanks Pindrought, that fixed it. And thank you everyone else for othe... (by D3ATH94)
Error message meaning
 
Hey would anyone be able to translate this to English for me? In file included from VectorBag.h:36...
[1 reply] : Basically, you are passing a constant reference to your 'remove' funct... (by NT3)
Pointer trouble
 
Having trouble with this piece of code, it's giving me a pointer error. Help? #include <iostr...
[1 reply] : Nevermind, stupid syntax error. (by yoked88)
by graphi
fgets() misses first word
 
Hi everyone, I am quite new to c++ so i apologise if this is a simple mistake. I cannot seem ...
[3 replies] Last: Thank you long big main and miinipaa for such quick responses to my qu... (by graphi)
pointing to NULL and 0 the same thing?
 
Is: char *endp = NULL; the same thing as: char *endp = 0; ?
[1 reply] : Yes http://www.cplusplus.com/reference/cstring/NULL/ (by Smac89)
c++ program on periodic table
 
i need a help on this program in which i have to write a code in c++ to print a periodic table and w...
[2 replies] Last: Ankita, MiiNiPaa is right. We do not know how to help you if you aren'... (by faust058)
Assembly and C++ dont know the error
 
I am following this tutorial: http://www.drpaulcarter.com/pcasm/ So i got to my first program i h...
[4 replies] Last: http://www.cplusplus.com/forum/lounge/128933/ From what I remember, ... (by Danny Toledo)
Pages: 1... 34567... 57
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.