Beginners - March 2014 (Page 51)

Destructor and memory leak
 
Hi, I have a program to calculate 1+Q+Q^2+...+Q^n, where Q is a polynomial of two variables. It works fine with n=1048, but when I run the program with n=2048, ...
[14 replies] Last: maeriden, thanks for the link! coder777, I modified the program as yo... (by babyBunny)
Problem accessing array of struct type
 
Hello, I've been trying to access the elements of an array of a struct type, and looking at other articles on this site I thought my syntax was correct. On line...
[5 replies] Last: Thanks guys, both your comments help tremendously and I should be able... (by hinesro)
What am i missing
 
So the program is supposed to create a file which it does fine but when it comes to opening hat file back up the program for some reason just skips over it and ...
[2 replies] Last: alright I renamed the write() function and I changed the create() func... (by ProgramMaster)
c++ project (visual studio 2010 compiler)
 
my project is Develop class Polynomial.This internal representation of a polynomial is an array of terms.Each term contains a coefficient and an exponent, hen...
[no replies]
Program using inheritance
 
Hey guys, having some trouble with my program. I'm getting and error "No operator matches these operands". Not sure how to fix it. Below is my code. Thanks for ...
[11 replies] Last: Thanks much I'll take a look at that. I appreciate the help, guys. I h... (by SHUTitDOWNx)
by xvvll
Explain this program please
 
I've been learning programming on my spare time and I found a program that makes a diamond, i know how to make shapes with for loops, but I really can't figure ...
[1 reply] : http://www.cplusplus.com/reference/string/string/string/ See the 6th ... (by mutexe)
Accelerated C++ Good or Bad?
 
I am thinking of getting Accelerated C++ Is it a good or a bad book for a complete beginner And what do i do if I find it difficult do I change books or ca...
[6 replies] Last: LB is referring to this C++ Primer book: http://www.amazon.com/Primer-... (by BHX)
c++ project
 
my project is Develop class Polynomial.This internal representation of a polynomial is an array of terms.Each term contains a coefficient and an exponent, hen...
[2 replies] Last: thankyou very much but there is a little problem we have to use visua... (by newprog135)
array question
 
to enter the user input in an array g suppose user enter the value g then the output is * ** *** **** **** i want the logic for this problem...
[2 replies] Last: I think what you trying to ask, (i may be wrong)... But you have an ar... (by Ozwurld)
Seperating Digits
 
This is a code I wrote to seperate digits of a number. #include<iostream> #include<math.h> using namespace std; int main() { int a, b, c, f=0; cou...
[no replies]
Similarities and differences of arrays and lists?
 
Hi guys. I just began programming and I stumbled upon arrays and lists. I still don't fully understand them. Can anyone tell me the similarities and differences...
[1 reply] : The main difference is how the data is stored in memory - for exampl... (by Codermik)
Classes vs Structures
 
Hey I am just a beginner in C++, though i have a little experience with C. Is the only difference between classes and structures is regarding default access sp...
[1 reply] : 1. Yes. 2. Yes, but don't unless you have a good reason to. (by kbw)
While Statement
 
Can someone please explain further for me on this part of the code sum += val; //I understand that it is the same as sum=val+sum and I am able to use it late...
[4 replies] Last: Stick a breakpoint on line 15, then add watches for the 2 variables. y... (by mutexe)
Geometry Calculator
 
My exercise asks me to write a program (geometry.cpp) that displays the following menu: Geometry Calculator: 1. Calculate the area of a circle 2. calculate ...
[4 replies] Last: now i know.. thanks a lot.. selenium.. :) (by aliasdan30)
by Legato
Run a program, change a folder name
 
Hi, i wondered if it were possible to point me in the direction of making a small program that starts another exe and then changes the name of a folder? ...
[4 replies] Last: Yes, i was a little confused, i didn't know if there was some windows ... (by Legato)
Recursive backtracking
 
I need the solution of following assignment .I have to use recursive backtracking in c++ .please can anyone help me and make a program which exactly gives the s...
[3 replies] Last: That homework is clearly not the first "Hello world", so you must have... (by keskiverto)
linked lists problem2
 
Hey i write this function to add at the last of the link list but when a display them the first node is displayed , someone help me plz. #include<iostr...
[3 replies] Last: A diagram of what is happening: http://imgur.com/2ih5ASq (by MiiNiPaa)
by mrxib
Skip to the main function from another.
 
I made a console application and defined a function given below to exit the program. It confirms if the user really wants to exit by making him enter either yes...
[1 reply] : You can't do that in a single function that doesn't care about program... (by kbw)
by chofs
randomly selecting already inputed number
 
hey guys just want to know if i had a stream of numbers(1,1,2,5,8) and want to select at random one of the 5...hw do i go about doing dat using rand() or srand(...
[4 replies] Last: You kind of double posted. http://www.cplusplus.com/forum/beginner/125... (by giblit)
by chofs
random number generation
 
hey guys lets say i have got a range of numbers (1,1,2,4,8) and want to select at random one of the numbers in my stream above using rand() or srand()
[2 replies] Last: using rand() or srand() You will need srand() to seed the random gen... (by giblit)
March 2014 Pages: 1... 4950515253... 79
  Archived months: [feb2014] [apr2014]

This is an archived page. To post a new message, go to the current page.