
please wait
by adam2016
Move constructors not getting called
|
ey guys,to my surprise it seems like the move constructors are not being called when I set an object = to an rvalue object, this took me by surprise,the object... |
Apr 30, 2018 at 11:02pm
[5 replies] Last: My 2 cents worth :+) string* name; // ... name = new string(nme); ... (by TheIdeasMan)
|
by Nikoleschi
Need help !
|
Hello ! Im a not so good with files, especially with Direct Access Files. So i need your help. I want sort structure in alphabetical order using Selection Sort... |
Apr 30, 2018 at 9:43pm
[11 replies] Last: This is where a vector would come in handy. I dont know how to use ... (by Nikoleschi)
|
by WildB
Need help with inheritance
|
This is the Assignment: Given the following declaration for a TestScore class, write a derived class declaration called IDScore that adds an integer student ID... |
Apr 30, 2018 at 9:37pm
[no replies]
|
Issue with program. |
*topic solved. |
Apr 30, 2018 at 8:10pm
[3 replies] Last: Don't delete your post after being helped. Leave it as a reference for... (by Ganado)
|
by andriasss
Class and Objects//Files And Fstream
|
Anyone knows how to make funcqtion, wich reads from file any line as a string, than it splits up this string, and with Set() function we put it in class |
Apr 30, 2018 at 6:21pm
[7 replies] Last: @andriass Ugh, where to begin... your code actually isn't even legal C... (by Ganado)
|
by alex067
What is faster?
|
Lets say I have 2 separate functions which do the same thing: simply initialize a 2d array. Function 1 does it with a straight forward nested for loop. IE ... |
Apr 30, 2018 at 2:18pm
[3 replies] Last: Function 2 won't work. (by lastchance)
|
by ahaana
plz help the inserted data doesnt display
|
#include <iostream> #include<string> using namespace std; struct Winter { string subject ; }; struct Summer { string subject ; Winter win; ... |
Apr 30, 2018 at 1:51pm
[1 reply] : Isn't this just a duplicate of http://www.cplusplus.com/forum/general/... (by MikeyBoy)
|
by MBANS7A1
C++: exception thrown during debugging of code on VS2015
|
Hello fellow C++ coders, I have some code that builds but during debugging with local windows debugger (going down line by line) I get this error that aborts th... |
Apr 30, 2018 at 1:47pm
[4 replies] Last: how does that help solve the problem It tells you that an index of 2... (by MikeyBoy)
|
by Flaze07
failed to run html help compiler on index.hhp
|
https://imgur.com/l4PRnwG |
Apr 30, 2018 at 1:15pm
[no replies]
|
by bhardy7
stock algorithm: double top
|
i am currently working on an algorithm for my final project, part of it includes finding if the vector of objects that was imputed from a stock csv file. I was ... |
Apr 30, 2018 at 12:47pm
[2 replies] Last: It is not quite clear what you are doing / should do. Does the order ... (by keskiverto)
|
by adam2016
Move semantics
|
Hi guys there seems to be a debate on stackoberflow on why you should leave a rvalues data members in a certain state even thought you will never use it again ... |
Apr 30, 2018 at 12:31pm
[2 replies] Last: good point because they will both point to the same data thanks :) (by adam2016)
|
by ahaana
after inserting the data is not being displayed
|
#include <iostream> #include<string> using namespace std; struct TTcell { string days ={"Mon","Tue","Wed","Thur","Fri"}; string Subject ; ... |
Apr 30, 2018 at 11:04am
[no replies]
|
by ahaana
getting error could not convert '5074798' from 'int' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'|
|
#include <iostream> #include<string> using namespace std; struct TTcell { string days ={'Mon','Tue','Wed','Thur','Fri'}; string Subject ; ... |
Apr 30, 2018 at 8:02am
[3 replies] Last: I think the array size needs to be explicitly specified for members of... (by Peter87)
|
by rororoxor
Help in Doing Certain Tasks
|
How can I make this so that the enemies disappear when we attack? In addition, the main character seems to be insta-dying :\ #include <iostream> #include <std... |
Apr 30, 2018 at 5:23am
[no replies]
|
by rororoxor
‘{‘ missing function header
|
I get this error on line 22. What do I do? #include<iostream> #include <windows.h> using namespace std; int Map = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... |
Apr 30, 2018 at 5:19am
[3 replies] Last: got it, ty (by rororoxor)
|
by MBANS7A1
C++ error:String input wrongly goes into if conditional statement even when string input is correct
|
Hello everyone,I have a simple function in C++ where I ask the user to select if they female or male by typing in the appropriate string ("FEMALE" or "MALE") in... |
Apr 30, 2018 at 2:44am
[2 replies] Last: @tpb-thanks for the helpful reply. I will try it out. (by MBANS7A1)
|
'writeColor': is not a member of 'Circle' |
I'm getting the following error: 'writeColor': is not a member of 'Circle' From the following code (pdf's on google drive): Header code: https://drive.google... |
Apr 30, 2018 at 1:35am
[1 reply] : You really should post the code here. Make sure you put it in code tag... (by tpb)
|
by Heymid
Choosing regular arithmetic operation as function of boolean
|
Is it possible to make something like this: #include <iostream> using namespace std; int main(void) { int (*z ) (int) = {&(operator-), &(operat... |
Apr 30, 2018 at 1:15am
[3 replies] Last: Well, you should still put the <functional> in there for portability. ... (by Ganado)
|
enumerator inside class type |
I'm having a problem with a function telling me that my enumerator type Color is undefined, even though I have it defined inside the public section of a class. ... |
Apr 29, 2018 at 11:03pm
[2 replies] Last: That was it. Thank you very much! (by closed account o1pz6Up4)
|
by bernt0cpp
Cannot convert negative values - threaded
|
Hi all, I am working on a threaded code for numerical computations. I am getting from time to time the message "Cannot convert negative values" and my progr... |
Apr 29, 2018 at 9:11pm
[2 replies] Last: Thanks Peter. I had not heard of "data race" before. I'll look into i... (by bernt0cpp)
|