General C++ Programming (Page 42)

Posting parts of a code on vectors. Cant understand whats going on.
#include <iostream> 9 #include <vector> 10 class A { 11 public: 12 A(); // Default constructor ...
[1 reply] : And what your question is? Note: ~A() NOT called. Why not? Because a... (by MiiNiPaa)
new programmer
I have an assignment to create a code in my programming class. I will try to explain it the best tha...
[6 replies] Last: Ok thanks (by tannaj2)
by mmess
Invalid conversion from int* to int
I keep getting this error! int *newarr(int, int, int&); //prototype // initializing argumen...
[4 replies] Last: Your prototype did not match your function definition int *newarr(in... (by Esslercuffi)
function calls ,functions prototype
so this is my question.>> Write program that uses a function digit that generates a random number ...
[7 replies] Last: so here is the solution code for the questio,, sorry for being late:) ... (by deepestblue)
please help... i`m new with some of c++ programs
i need to evaluate y= 1 - x + (x^2/2)- (x^3/6) + (x^4/24)+...+(-1)^n.x^n/n! to put in my fun...
[5 replies] Last: so here is the solution to my question,, thanks to whom helped!!:) an... (by deepestblue)
by tmason
Sort in Decending Order using Lambda + std::sort ...
Hello, So I have the following code snippet; what I want to do is sort the std::vector using a cu...
[2 replies] Last: > I would like the sorting algorithm to set up the vector such that >... (by JLBorges)
by yo2xia
Image of singular matrix in C++ Eigen using FullPivLU
here is the code I run in C++ using Eigen library FullPivLU decomposition, and I want to get the ima...
[6 replies] Last: @Ispil Anyway, thanks for your help. (by yo2xia)
i want to find the position of the first string in input.txt that matches a regex // Input.txt [...
[5 replies] Last: Thank you!!!! it->position() <- we have the first position!!! great!... (by nightmaregiba)
Undeclared Identifer?
Alright I know this says general C++ but I am working with win32 api, it should be the same concept ...
[2 replies] Last: Wow.. I would of never noticed that. Thank you I was about to go insan... (by MoonEmbers)
Doubly Linked list with head node
Hello i am trying to develop a doubly linked list class. I became stuck at a few of the functions as...
[1 reply] : Hello fellow ECE 304 classmate, I see that you are trying to receive... (by justiceseeker101)
operator definitions, modulus remainder calculation
where are operators defined in C/C++? in headers or compiled code? looking for the definition of...
[19 replies] Last: giblit's equation works if: (a / b) is rounded down to nearest intege... (by closed account 1CfG1hU5)
c string program
my assignment is : Please use C type strings ( array representation of strings). Write a program...
[4 replies] Last: how do i implement this with what i currently have ? i am still having... (by NicoFlowProductions)
problem with function
[3 replies] Last: thank you! (by Stephanie)
Reading from a file
Having some trouble with an assignment. Here is the prompt. Write a program that reads the telephon...
[15 replies] Last: I've got it solved. Thanks a ton. You tip helped in a big way. (by CompSciLoser)
How to have a unique array for each object
I have a program where I need to read in from a text file and use a character array to make a Word o...
[no replies]
difference between constructor and new/malloc , difference between destructor and delete/free
What is the difference between the following- a] constructor and new/malloc? b] destructor and d...
[1 reply] : What is the difference between the following- - A constructor is a... (by Disch)
by bwoo
Need help involving vectors and classes
I am having trouble putting data from a txt file onto a vector of a class. For instance. class ...
[10 replies] Last: yea, same issue. Doesn't compile correctly (by bwoo)
Reading in a text file into a char array
I have a project which is about linked lists in the order of: a Story is made of Paragraphs which is...
[2 replies] Last: @Keene That's a fantastic solution but does that method fall into a C... (by TommyK154)
While Loop help
I was wondering if someone could show me how to set this "while loop" problem up. I am sort of new ...
[1 reply] : while( score != -999 ) { // get score from user // if score !valid ... (by Esslercuffi)
If Else Statment with ctime condition
I am try to make a menu for deliver order program. The menu divide into 3 group which are breakfa...
[4 replies] Last: #include<ctime> // Get current time // if, switch... (by nightmaregiba)
Pages: 1... 4041424344... 63
  Archived months: [sep2014]

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