General C++ Programming (Page 7)

Linked List Functions Trouble
 
I am experiencing trouble trying to create a unit test for all the functions in my Linked List. Mai...
[9 replies] Last: Of course they don't change the code, they only show that's sth. wrong... (by Thomas1965)
if(!cin) and if(cin.fail())
 
I searched for it on the net and didn't find a straight answer. Does if(!cin) do exactly the same t...
[5 replies] Last: What is the logic behind those numbers? (1,4,2) As many flags, they ... (by Enoizat)
by Kalcor
Getting maximum of an array without the use of any external variables
 
Is there a way I can find the maximum of an array without the use of nested loops / 2nd variable ? m...
[7 replies] Last: > I meant the "max" variable we usually use, only allowed to use a loo... (by JLBorges)
I need some help with std::regex_match because I'm trying to use in a Chapter 15 dril in PPP2
 
The second part of the Drill in PPP2 Chapter 15, where you have to define the struct "Person". Name...
[2 replies] Last: Yeah, that sounds better. I'll use find() or find_first_of(), then. ... (by DragonOsman)
Looking for 2D game library
 
I'm looking for a library for a 2D game that has a coordinate system and gravity engine built in, pr...
[7 replies] Last: Only language I know ATM (by DiamondWolf)
Anyone can make this code
 
The running time of the program should be less than 4 seconds. Mina wants to go on a trip duri...
[1 reply] : We can only help, we can't do the work for you. (by kbw)
Time complexity
 
Is it possible to make a time complexity function which will calculate the average running time of t...
[2 replies] Last: I forgot to say... if the code runs in a loop normally the above works... (by jonnin)
PPP2 Chapter 15 - Can't Open File in Japanese Age Program
 
As the title says, for whatever reason, I can't open the japanese-age-data.txt file for reading in t...
[11 replies] Last: I also have the "Show hidden files" feature enabled. I like it that w... (by DragonOsman)
PPP2 Chapter 14 Exercise 1
 
I was working on this exercise since before and got some help for it on the PPP-public group on Goog...
[2 replies] Last: Yes, that helped. 45 and 135. Thanks. You think Smiley looks fine, ... (by DragonOsman)
by ceeely
Modifying values in pointers in struct via function
 
Hi, I'm trying to pass a struct with 2d array pointers into a function which would change the valu...
[3 replies] Last: thanks for the tip, dhayden, I'll look into references. Is there a sam... (by ceeely)
How to Convert First Digit after Decimal to Integer?
 
I am writing a program that involves some periodic motion and, instead of tracking the specific peri...
[3 replies] Last: Thanks for the replies. This is some good information. Now to put it ... (by Michael37)
How write *same* function to work with different elements of a struct
 
The struct in this case stores pixel data related to different components something like this: ...
[4 replies] Last: three functions are very similar except these details If you have s... (by Cubbi)
by omzy
include filepaths
 
I'm looking at the way a program is including other .cpp and .h files and wonder why they are able t...
[2 replies] Last: Nice, Thanks a lot! (by omzy)
Undefined reference, can't find it
 
Here is the assignment: 1. The program first creates an array of 20 random positive numbers be...
[4 replies] Last: ¿so? that's good. > The reason I did that was that the binarySearch ... (by ne555)
PPP2 Chapter 15 - Compiling exp() approximation Function Graphing Example - Help Needed
 
Until a bit recently, I was stuck on compiling the example code for graphing the approximation of th...
[no replies]
Create diretory with save game c++
 
Hello, I have a lot of questions about how to get a folder and a subfolder and a binary file This f...
[12 replies] Last: @wsxdr Okay, I already sent it. (by coolers21)
Payroll Program...no output
 
Here is a payroll program I wrote for a class (yes, it is a homework assignment). The program compi...
[2 replies] Last: /*char*/ std::string fname; //first name /*char*/ std::string lname; ... (by ne555)
Need help grouping these ideas.
 
So, I'm writing a little document for my workmates on some useful features/concepts of C++, but I'm ...
[2 replies] Last: This document is to give our programmers awareness of more advanced C+... (by AdrianH)
What is the version of this line without typedef ?
 
template<class T> class stacklistnode{ private: ...... }; typedef stacklistnode<T> *...
[1 reply] : can someone provide a way to write the two lines without typedef t... (by gunnerfunner)
PPP2 Chapter 14 Exercise 5 (1,2)
 
Exercise specifications: Define a Striped_rectangle where instead of fill, the rectangle is “f...
[25 replies] Last: I don't know; is it really a good idea to change Graph.h and Graph.cpp... (by DragonOsman)
Pages: 1... 56789... 15
  Archived months: [may2017]

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