General C++ Programming (Page 2)

determine wether a year is a leap year
 
i have an assignment that asks me to input a year and then output if the yer is a leap year or not. ...
[6 replies] Last: He’s using boolean expressions, which have a value of 0 or 1. You s... (by Duthomhas)
calculate the number of minutes in a year.
 
I need help with my c++ university assignment the assignment want us to write a code that calculate ...
[4 replies] Last: why would he need command line args for this? as with any program, ... (by jonnin)
by elsa
Unresolved errors in main: "type name is not allowed"
 
As the title suggests, I am having errors: on line 59, 63 and 65. They are "identifier is undefined"...
[2 replies] Last: thank you - this resolved all my errors. And in the process I learned ... (by elsa)
what's the type of a lambda expression ?
 
I have written some code using template classes that take a function or functor type as a template p...
[3 replies] Last: Thank you very much. With std::function, I was indeed able to define ... (by CABrouwers)
what is the difference between returning decltype(auto) and returning only auto?
 
What is the difference between these 2 functions: decltype(auto) doitDA(int a, char c, bool b)...
[1 reply] : https://stackoverflow.com/questions/24109737/what-are-some-uses-of-dec... (by dutch)
Activity Diagramm
 
Hi Guys ist the the Activity Diagramm drawn write of the following code ? https://s16.directupl...
[3 replies] Last: I don't know what you're allowed to put in an Activity Diagram so it's... (by dhayden)
What is "Expected primary expression before..."?
 
The following is what i have typed up. i am not finished but basically i am trying to enter a temp i...
[6 replies] Last: Imagine a real-world situation, how would you design the program? That... (by CABrouwers)
How can I make a function that prints the value category using decltype?
 
This works for the expression rvalueRef++, but I have to put the 3 part if: auto&& rvalueRef...
[no replies]
std::vector<bool>::reference
 
developed a templated class wrapping a std::vector<T>. All was fine until I tried to use it with T ...
[5 replies] Last: Everyone seems to agree that std::vector<bool> was a mistake but it is... (by Peter87)
Help with a shopping cart
 
Now I'm still in the beginning stages but I'm just testing out my first 2 functions and I am getting...
[6 replies] Last: Please see my response in your other thread: http://www.cplusplus.com... (by AbstractionAnon)
by frek
How to create an automatic player using AI in C++
 
Hi all, I'm dealing with a QML ping pong game. https://imgur.com/a/oE8QmAv It now works ver...
[3 replies] Last: @Ganado, Thank you so much . :) To be honest, I myself had thought o... (by frek)
Shopping Cart Coupon Help
 
Okay, So the whole program works, I am suppose to have a couponOne, that takes 50 percent off and a ...
[1 reply] : Not sure why this is marked as solved. Line 30: total is not passed... (by AbstractionAnon)
Need help with a C++ Program
 
I have been trying to work on this project for a day now and I am stuck on what to do. The problem I...
[3 replies] Last: You need #include s for required headers. If you're going to place y... (by AbstractionAnon)
obj({ ...}) intialization, what is happening ?
 
I wrote something equivalent to the following by accident, and it worked. However, I am not sure wha...
[5 replies] Last: Thanks, everyone for the clarification. And so braces within {} or () ... (by CABrouwers)
>> not Displaying Float
 
I am trying to make a vector class. Here is a simplified version of my code: #include <iostream>...
[3 replies] Last: Thanks! I left C++ for a while and am having trouble getting these str... (by Reader8765)
Add https support to xupnpd2 mediaserver via lib-curl lib-openssl c++ wrapper
 
Hello, I'm not a developer, but I hope someone could give me some hints how to add https support ...
[no replies]
by elsa
How to use strcpy() and strcat() functions to create a full name?
 
Hello, I need to use the strcpy() and strcat() functions to assign a full name to the variable...
[8 replies] Last: I recommend you avoid mixing them you cannot safely mix unless you... (by jonnin)
Return Type Defaulting to Own Class
 
I am trying to write a class and it's functions return types are defaulting to it's own class. I am ...
[1 reply] : I signed out and signed back in again and it worked! I guess it wasn't... (by Reader8765)
making a schedule in dev C++
 
I need help to make a schedule on dev C++ This is the code that i have right now This is in my m...
[no replies]
C++ crash on exit (CryEngine, Ultralight)
 
I'm coding a game in CryEngine and just finished implementing HTML renderer called Ultralight to rep...
[4 replies] Last: I think you're spot on. I threw a dump into WinDbg and if I understand... (by LazyKernel)
Pages: 1234... 16
  Archived months: [dec2018]

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