• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Part 8 of Person drill for PPP2 Chapter 15
 
I'll make a new thread for this here. Edit: Now I need help with number 8, "Read a sequence of Pe...
[1 reply] : Dragon – first and foremost good to see you've completed your graphi... (by gunnerfunner)
by bigboy
Help with project
 
Hi folks, Browsed this forum for a while, been a member but don't post, but I need some help with...
[6 replies] Last: I've got to be able to check each tile properly now. char findWinner(... (by bigboy)
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)
what is the size of the string?
 
The size of string in DEV 5.11 is 8 bytes using sizeof() operator. But in case of Microsoft visual ...
[3 replies] Last: Anatomy of a C++ string is a great question. In general, a string is ... (by Cubbi)
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)
Ray mapping inn C++
 
Hello guys, Please I can anyone give me suggestion on good e-books or video tutorials, etc where I ...
[1 reply] : Povray's been around forever. It might be worth checking out their cod... (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 find if a template argument has a nested structure?
 
Hi, Given a template: template<typename MetaFn, typename ...Args> struct is_metafunction_class :...
[8 replies] Last: > It seems quote does the same thing as lambda. No. MPL lambda inte... (by JLBorges)
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)
Pages: 123... 23
  Archived months: [apr2017]