General C++ Programming (Page 13)

by slei
dynamic_cast and expections disabled
Hey, I've rarely used dynamic_cast and mostly avoid if possible there for I have actually no idea w...
[11 replies] Last: @OP, You keep asserting that dynamic_cast should work like static_cas... (by doug4)
Card Game Printing Incorrect
I'm trying to display King, Jack, Queen, Ace for cards that have a score of 10 or 11, because otherw...
[5 replies] Last: I only posted the code that would need to be seen in order to fix the... (by dhayden)
i want to compare two file and find the same strings
hello guys, I just want to compare two files. Then i want to display the same strings on the screen...
[3 replies] Last: At line 43 you're using myArray1's index to insert into myArray3. So i... (by dhayden)
Deriving classes from smart pointers ?
My question is about deriving classes from smart pointers. I haven't come across examples of code do...
[8 replies] Last: [quote=CABrouwers] However, it requires to give up the delayed calcula... (by TheIdeasMan)
I need explanation on the code snippet
I succeeded in converting a C# sharp function to C++ and the code executed successfully. I however c...
[7 replies] Last: You're allocating memory to check if an integer has any odd decimal di... (by helios)
insert() function of containers
The book Essential C++ says: iterator insert(iterator position) inserts an element before posi...
[5 replies] Last: @JLBorges I got it. So I can use emplace() to play this role. (by Trial Faith)
Compiled files in Visual Studio print desired result, but return errors in Unix terminal
I have linked my two files together and compiled them in a Unix terminal and this is the error messa...
[8 replies] Last: Yes. Good Luck !! (by TheIdeasMan)
clang++ compiler not finding header file <mysqlx/xdevapi.h>
I am compiling a dylib with the following command: clang++ -I/usr/local/mysql-connector-c++-8.0.1...
[8 replies] Last: Should I drop the lib initials when I am linking to a library using f... (by TheIdeasMan)
Hi. I am currently developing a 3d game. I was generating random terrain and everything works perfec...
[3 replies] Last: @helios, in the method Perlin Noise, this is necessary. And by the way... (by hassanAman)
Canot access type from derived templated class
Hey guys, i got the following code: template<size_t user_data_length> class CParent { struct SF...
[6 replies] Last: hey thx for your helpfull answers. I did some reading during the last ... (by JuliusCaesar)
by c345
How to make the program ask me something more than once
We were asked to build a program where the computer receives the amount of integers and then we get ...
[1 reply] : How to ask the user for something 'x' times? A for-loop is how. for ... (by Grime)
whats the difference between &array and &array[0]?
Hi guys I should know this and probably did at one stage but just wondering what is the differen...
[3 replies] Last: thanks guys that makes sense When you do*)(&number),... (by adam2016)
by ota2
to make a qsort() like function with quicksort example, sorting not ordered
Hi. i have trying to make qsort() like function from quicksort codes in
[3 replies] Last: > It should be void *array, because of function should run also on str... (by salem c)
by Trib
why does the value of d do not change?
#include <iostream> using namespace std; int main() { int a,b, c, p, x, x1, d; int nr=0...
[14 replies] Last: after meditating a bit yesterday i found the mistakes by myself, thank... (by Trib)
Solutions to Quadratic Formula
So, I need help for my plate 2 in school, I think my code was wrong because it didnt give the correc...
[3 replies] Last: Why is dev-c++ so popular??? kimmaylovesyou did you have to use dev-c... (by Grime)
how to do you chain arrow operators together?
like the following foo1->foo2->foo3->foo4();
[6 replies] Last: worked like a charm! :) (by programmy)
C++: how find a dot on a word\number?
i get these print: "0.45" ok... these number is found on vector. now i must test if i get the dot...
[2 replies] Last: fixed.. i commented the warning list, that's why i wasn't getting the ... (by Cambalinho)
by frek
constexpr (1,2)
Hi, Please consider this simple code: constexpr double square(double x) { return x*x; } Now...
[36 replies] Last: constexpr itself is not part of the type of an object, and so type c... (by mbozzi)
Game Puzzle - My number (1,2)
I need help for school. I cin(enter) 6 number and I need a program that the first 5 number combined ...
[32 replies] Last: But don't paste that as your homework you will get caught. What if the... (by Grime)
by frek
Start learning C++ socket programming
Hello, I'm a C++ programmer and my experience is rather fine in this case. For some Qt app writte...
[11 replies] Last: Thank all of you very much for your help. My plan is as follows. Pleas... (by frek)
Pages: 1... 11121314
  Archived months: [dec2018]

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