General C++ Programming (Page 5)

time limit exceeding
There is a field with plants — a grid with N rows (numbered 1 through N) and M columns (numbered 1...
[6 replies] Last: Duthomhas, the OP messed up with cut & paste. The dimensions of the ar... (by dhayden)
float percentage (C++)
I am tring to make a flaot that can work both as a list and a indicater. The list is for each of the...
[2 replies] Last: I would add 1 to all the taxes if you are going to use it to make tax.... (by jonnin)
writing your own application layer protocol
Hi guys, I am following this blog on how to write your own protocol - https://mayaposch.wordpress...
[4 replies] Last: If you notice this before people reply to both delete one of them... (by jonnin)
Finding weather calculations using arrays
I need help finding the coldest temperature using an array. I already found how to get the warmest t...
[3 replies] Last: its the same as warm. int Coldest(const int A , int n) { int cold = ... (by jonnin)
sideway number pattern
I need to print the following 1 12 123 1234 12345 1234 123 12 1 I did the following a...
[2 replies] Last: a better way I’d go with the double loop (an inner loop inside ano... (by Enoizat)
by colt
Remotion of exit (-1) leads to segfault BEFORE exit (-1)
Hello, I recently implemented new code into my program that made him end into a segfault. Started to...
[3 replies] Last: You should review functions in your favorite textbook. Color Color::... (by mbozzi)
Brainteaser anybody? (1,2)
Question : are there C++ techniques that work for following brain-twister? Short : extract how...
[29 replies] Last: FYI, that first quote is apocryphal. (by helios)
Changing '7' to 7 (char to int)?
I know this is probably pretty basic and makes you wonder why I didn't look it up, but I did look i...
[8 replies] Last: I see what I did wrong while trying to.... You learned something val... (by Furry Guy)
new and std::make_shared
I was trying to check whether an entry had already been created in a std::map and, if not, allocat...
[1 reply] : p.reset( std::make_shared<std::set<int>>() ); p = std::make_shared<... (by Peter87)
Giving a slightly wrong input (Finding Increasing/Decreasing Interval of a Polynomial function)
Hello, I am trying to make a code which will input a function from the user and then will give the i...
[5 replies] Last: [edit - tag code as code, not output] You're actually hurting yourself... (by dhayden)
Need help linked list
I need to make this unordered list an ordered list and I don't know where to start. #pragma once...
[4 replies] Last: Why do you insert at the tail of the list instead of at the head, whic... (by dhayden)
cout not working when using string
This basic code below shows my problem. When I don't use string, cout works fine but when I start us...
[10 replies] Last: The Problem You left out the information about using French outpu... (by Duthomhas)
compiler error at returning a reference
My error message: test.cpp -lsfml-graphics -lsfml-window -lsfml-system In file included from...
[2 replies] Last: Thanks, this works :-) (by nuderobmonkey)
hw question
Write a program to calculate the surface area (S) and volume of cylinder (V) if you know the height ...
[3 replies] Last: It depends on your point of view. Look at it from one side you can't t... (by MikeStgt)
Your favourite C++ engine
What is your favourite c++ ending? Mine is 100% Cocos2d-x, Godot is a good engine too but Cocos2d-x ...
[5 replies] Last: [quote=malibor]standard libraries, DirectX, XAudio2, CNG, and the rest... (by Furry Guy)
One or more multiply defined symbols found.
I came back to a project of mine after some time and I quickly remembered why I stopped working on i...
[3 replies] Last: > EDIT: Changing the code in my main file to include "game.hpp" instea... (by salem c)
by Denvor
triangle bumps
hi, I am trying to write a code that prints the following bumbs when the function void Ascii::p...
[2 replies] Last: #include <iostream> using namespace std; void row( int n, char symbo... (by lastchance)
I don't understand this error feedback
I am working with two classes each in their own .h file (although I think I only need to show one on...
[1 reply] : 1. Please edit your post to put [co de] tags around your code. > ma... (by salem c)
Constructor with two parameters
I have the following class and I don't know how to initialize it my constructor with the private var...
[1 reply] : template < typename U, size_t N > class Bar { public: //... (by JLBorges)
by Pop007
error: 'biblio::Reference::Reference' names the constructor, not the type
Hi, I made a class that contain a pur virtual method wich I will implement it in the derivatives cla...
[2 replies] Last: I have find out...all I have do is a Reference* Reference::clone() con... (by Pop007)
Pages: 1... 34567... 17
  Archived months: [feb2019]

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