General C++ Programming (Page 3)

IF Else Statement
 
#include <iostream> using namespace std; int main() { int a; cout<<"Enter a:"; cin>>a...
[3 replies] Last: #include <iostream> using namespace std; int main() { int a; c... (by lastchance)
by Borneq
Which socket library?
 
Which is good C++ socket library for Linux/Windows?
[4 replies] Last: SFML has a good easy socket lib as something to add to this list. (by Computergeek01)
Input from Keyboard
 
#include <iostream> using namespace std; const int N = 3; int main() { int i, j; double matr...
[5 replies] Last: Can anyone help me how can I get any value of N from the keyboard but... (by coder777)
Creating a Union of two linked lists
 
I am trying to create a function that unites two linked lists. I have created a function that does e...
[2 replies] Last: @jonnin template<class ItemType> LinkedSet<ItemType> LinkedSet<Item... (by Depressed)
Where can I find a web browser that is embedded as an image or can I make a window into some kind of image
 
So what I want is to be able a game engine with a computer that has the internet with real content f...
[2 replies] Last: helios, maybe the OP wants some form of OLE (Object, Linking & Embeddi... (by Furry Guy)
Is there a way to include all directories within a directory in an IDE I'll use anything
 
This is Problem because I am trying to use frameworks and I need to include header files and I can't...
[2 replies] Last: This is Problem because I am trying to use frameworks and I need to i... (by mbozzi)
code won't print the calculations from my input values, it keeps asking my to input the values i want it to print
 
//monthly payment on a loan formula steps //1 + rate all to the power of n //above times rate //a...
[1 reply] : How can the program print results if it doesn't run? Once you fix you ... (by Thomas1965)
HeapValidation Error
 
I'm trying to callback using a pointer to a base type, but something along the way is giving me a He...
[4 replies] Last: I found this: Player & find_player(uint32_t id) { if (players.find(I... (by kbw)
by AFX
OpenMP - array-initialisation problem
 
I am dabbling in OpenMP, and now I am trying to create a league of teams with the OpenMP num_teams c...
[2 replies] Last: Thanks :) (by AFX)
by colt
Const initialization of an array of objects
 
Hello, I am trying to do a constant initialization of an array of "Vec3f" instances. Currently, I tr...
[11 replies] Last: Yes, I actually have them: #ifndef BVOLUME_H_INCLUDED #define BVOLUM... (by colt)
Storing data from a file from multiple lines into different variables
 
Hi There, I have been doing files in c++ for about a month now and I have a grip on how to do basic ...
[2 replies] Last: Show what you've tried, and explain exactly what each line/item of the... (by jlb)
quicksort
 
i am getting a segmentation fault at line 12. when i tried to print temp, it went in infinite loop. ...
[2 replies] Last: can you tell me the reason behind this Use the debugger to trace t... (by seeplus)
what is a requires requires constraint?
 
Not sure if I understand the use of requires requires as in this code: template<typename T> ...
[1 reply] : The requires expression is an unnamed concept right? It's an expressi... (by mbozzi)
by jerryd
Can't access variables in my header file
 
cplusplus forum, C++ MS VS 2017 Windows 7 I have one of my header files, that I have use...
[12 replies] Last: This is like trying to diagnose a problem with your car when you haven... (by dhayden)
Differing (Bad) Behavior Between unsigned int And long With -= Operator
 
Hi All, The following section of code was designed to show a wrong bit of programming, but it has...
[4 replies] Last: Thanks for the detailed answer, helios! (by travellerne)
uncertainty
 
You don't need a default constructor as std::string has its own. Note that stream extraction (>>) s...
[1 reply] : Please don't delete/erase original question. Subsequent answers are pr... (by seeplus)
Error: Unhandled exception etc
 
Hi, I am trying to modify my function add() so it throws an exception every time an array passed...
[11 replies] Last: Shouldn't add() be using contains() (or .getIndexOf() )? template<c... (by seeplus)
std::copy wrong value issue!!!!!!
 
I copied the struct into a vector and put it back into the struct. Why did this bug occur? use std::...
[5 replies] Last: Thank you for answers. it was helpful (by realbro)
Need a variadic template function that accepts a arbitrary number of ints!
 
Why is this not working? template<int...Counts> static bool allNonZero(Counts...counts); ...
[4 replies] Last: I did thanks!!! (by JUANDENT)
by AFX
Question concerning number of threads in OpenMP programme
 
Hello, I am starting to learn parallel programming with OpenMP. I stumbled over an interesting tu...
[3 replies] Last: Thank you very much! My question was more or less inane. (by AFX)
Pages: 12345... 7
  Archived months: [jul2020]

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