General C++ Programming - August 2018 (Page 5)

Wheel of fortune game
 
I am having a little trouble with this wheel of fortune type game, it keeps giving me an error that i cannot find. It would be a great help if someone can help ...
[3 replies] Last: it keeps giving me an error that i cannot find What is the error? Ho... (by dhayden)
error field ... has incomplete type ...
 
Hi. Can anyone please show me how to solve this problem? I am writing a BaseFolder class. When I compile my program, Dev C++ keeps giving me these messages: ...
[1 reply] : If you were only creating a pointer to a Vec then you could just say "... (by tpb)
can i get some help?
 
im making a own "siri" but an else commands messing upp, HELP! see, i want to make a siri type of thing, it works perfectly, if you type in open google it open...
[5 replies] Last: thanks btw, i was suspecios about if it would work but now i have no d... (by navilgameboy)
invalid initialization of reference
 
template <typename Resource, typename Identifier> class ResourceHolder { private: std::map<Identifier, std::unique_ptr<Resource>> mMap; public: Resource & g...
[3 replies] Last: Thank you for your help! *resIter didn't return Resource&, but rather... (by nuderobmonkey)
by ahaana
getting error:error: no matching function for call to 'Supervisor::Supervisor()' Supervisor s1;
 
#include <iostream> #include<iomanip> using std::ios; using std::setiosflags; using std::setprecision; using std::ostream; using std::cout; using std::...
[9 replies] Last: Just use string. (by Repeater)
Inheritance vs file reading
 
Hi! I have been working on a small 2d tower defense project and I'm going back and forth with which way to go when it comes to towers and monsters. One way of...
[2 replies] Last: Thank you for the answer! The thing with my textures for towers are l... (by leownya)
Errors occurs when accessing unordered_map by [] operator
 
Hello. I met a curious problem of unordered_map. First I generated an unordered_map and inserted a record ("Bob", Person(1, "Bob")) into the table. Then I t...
[2 replies] Last: Great! It works! An important lesson of "unordered_map". Thanks for y... (by blackwall)
GUI
 
Hello there; 1- What is a GUI (graphical user interface) and how it is done? 2- Are DirectX and OpenGL GUIs? 3- What should I study or read to be able to build...
[3 replies] Last: Double posting isn't going to get you answers any faster. http://www.c... (by closed account E0p9LyTq)
PROJECTS for C++
 
Some cool C++ project ideas or links aside from Database management system....
[2 replies] Last: 1- Create an advanced calculator that can solve operations as: 1+5 /... (by fewdiefie)
C++ class
 
can anyone please give me an idea how to solve this problem? I am asked to write a DyckPath class. I don't need a completed class. I just need an idea to write ...
[1 reply] : https://en.wikipedia.org/wiki/Catalan_number (by tpb)
by TPM
Seemingly Efficient Algorithm Gets Time Limit Exceeded
 
There's a competitive programming problem that reads as follows: "In the beginning there are 'n' empty rows. In each step either a number is added to the end ...
[12 replies] Last: @dhayden Yeah, exactly. (by TPM)
Please help me to solve this problem. Thank you for your cooperation :)
 
/* Q1 * Read the functions below and try to understand what function_without_name_a is trying to. * Once you understand what it is doing, give this func...
[11 replies] Last: give this function a name relevant to what it is doing So first, yo... (by Repeater)
by slei
Weird issue: C1905: Front end and back end not compatible
 
Hey, I'm trying to use the OpenSSL library and somehow it works fine except when I try to use AES_Encrypt and AES_Decrypt together. When I use one of them ever...
[12 replies] Last: There is no solution for this problem. It is not good practice to use ... (by poteto)
by ikhram
string compression for integers giving wrong output
 
Hello coders, I've been working or this for the past two days,the code is supposed to go through the string and every time there are similar characters it's sup...
[1 reply] : What's "hextexts"? From what I see in the code you haven't defined it ... (by TPM)
Is it possible to create a vector of multiple type of specialized template classes?
 
I'm lost, quite frankly. I have an example piece of code where I I have a template class and one instance of a specialized version of that class. In the main pr...
[5 replies] Last: My goodness, that was worth waiting up for! I've seen a lot of code sa... (by JaJangMyeon)
C++ library with basic capabilities of Node.js.
 
Hi! I was wondering if anyone knew about a built-in C++ library that has the basic capabilities of Node. I do not know Node and Google is generating a lot of no...
[7 replies] Last: I looked at Protobuf and gRPC and am going to try that. Thanks! (by Reader8765)
euclidean distance
 
Hi Can someone help me out quick. Here is the contents of my h file: class Location { private: int x; int y; public: Location(int, int); ...
[16 replies] Last: I got it to work, thanks everybody (by parallx)
Default font used by c++?
 
Hi What font is the c++ code in? Just a curiosity of mine. This is for the Microsoft compiler, when you write .cpp source files, it changes the font that you vi...
[3 replies] Last: didn't realise it was chopped meat, i didnt click the link :( (by Jaybob66)
Parallelogram Problem
 
Problem Description: A number (N) of lines (extending to infinity) in both directions are drawn on a plane. The lines are specified by the angle (positive or ne...
[3 replies] Last: Do you see how that's exactly the same as one of my examples: 0, 0, 45... (by tpb)
Can move semantics be used if the class member is not a pointer.
 
Hi ppl :) I was recently trying to understand move semantics of c++ 11 and found that most of the examples available online demonstrate this using a class membe...
[3 replies] Last: To note, the call to move in f(std::move(s1 + s2)) is redundant, bec... (by mbozzi)
August 2018 Pages: 1... 34567
  Archived months: [jul2018] [sep2018]

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