Beginners - March 2015 (Page 41)

by al547
counting and printing partitions of 1 to n-1 (1,2)
 
I am trying write a recursive function(it must be recursive) to print out the partitions and number of partitions for 1 to n-1. For example, 4 combinations th...
[26 replies] Last: The code already outputs as it recurses. (by LB)
Help with Displaying an array (updated)
 
I am having problems trying to display the code. It is for part of my homework. I will give the link to the problem and the problem demmo and see if someone c...
[no replies]
Calculating a coefficient
 
I can't figure out how to get my program to calculate binomial coefficients correctly. I can do it with a simple expansion such as (x+y)^5, but when coefficient...
[1 reply] : Why do you have that printf() within the for() loop, instead of in the... (by jlb)
I'm a beginner, I need help please!!
 
This is my homework problem for my programming class, but I don't know how to write the code in C++ this problem is way too confusing! Residential and busine...
[2 replies] Last: Can you do the math with paper and pencil? What have you written so f... (by LB)
Can't find average letters.
 
I can't tell what I'm doing wrong to get the average? #include <iostream> #include <cstring> using namespace std; int findWhitespace(char ); double findAve...
[7 replies] Last: A lot of the code I see online doesn't use using namespace std; and u... (by jlb)
explain 3d arrays
 
can someone please explain to me 3d arrays using words and examples
[13 replies] Last: ok i fix it and thanks for the help #include<iostream> #include<io... (by axel609)
My Class Goes Out Of Scope? (wxWidgets)
 
I'm in my second semester, and have been assigned this monster project. The sources are 13 separate files. For now i'll just post where i think the problem is...
[6 replies] Last: For the record, this is what compiled: case TRIANGLE: { Drawing::... (by DoctorJ)
Write a program which manipulates fractions
 
Hey,i am new in c++ programing,so I need help of you guys to solve this question Q.Write a program which manipulates fractions. It should get two fraction...
[1 reply] : What have you written so far? Remember to ensure that your code is [c... (by LB)
by al547
Counting and printing permutations from 1 to n-1?
 
let c(n) be the number of different group integers that can be chosen from the integers 1 through n-1, so that the integers in each group add up to n (for examp...
[2 replies] Last: Thanks, for now I have to do things manually. You think you can help? (by al547)
by Orval
Need Help With Do While Loops
 
#include <iostream> #include <string> #include <ctime> #include <cstdlib> void functions(); using namespace std; int main() { cout << "\n\t\t\t\tWelcome to...
[1 reply] : Please edit your post and make sure your code is [co de]between code ... (by LB)
Project about writing a program for storing information about a family member
 
I need help writing the following code: A family has 4 members. You need to write a program to store the information of the family members and then to displa...
[5 replies] Last: No, I mean like this: #include <iostream> #include <string> struct Pe... (by LB)
Not sure where my issue is
 
When trying to run my program my errors are: "Error 8 error C2371: 'Timespan::GetTime : redefinition; different basic types" "Error 7 error C2556: 'std::s...
[6 replies] Last: Happens to the best of us haha :) (by TarikNeaj)
Matrix Class Problem
 
Hello all, this is my first time of using cpluscplus, nice to meet you all. I am writing a matrix class that overloads assignments,addition, subtraction...etc. ...
[2 replies] Last: Hello TarikNeaj Sorry I accidentally selected "submit", I have edited... (by nocod123)
Please help array problem? -Beginner
 
Why does this give me this result? http://i.imgur.com/SUm6TN7.png (Learning about pointers etc. and how they relate with arrays) IDE: Visual Studio 2013 When...
[6 replies] Last: [quote=OP]If they are in my memory why are they there in the first pla... (by Computergeek01)
by ynd
recursive function return Without return
 
In the following code, I wrote a function recursively which should return a value, and really when two numbers are equal it returns, in the function I did not u...
[4 replies] Last: a) youre not using anything in it b) thats a c library. the proper one... (by Little Bobby Tables)
Loop still run even if condition is not met.
 
I'm just starting out in C++ and I have an assignment I seem to be having issues with. We are supposed to sing the 12 days of christmas using loops and increm...
[3 replies] Last: Yeah, no problem! Mark the answer as solved at the top of the page. (by androidguy1)
Noob problem
 
Hello, I just started to study c++ with Sam's Teach Youself c++ book and ran into a problem with an exercise. I'm using code blocks to compile. I should be gett...
[6 replies] Last: problem solved thanks anyway (by AidanSana)
by tduff8
hw help
 
I need help with this hw problem i have been working on for this week. I cant get any in class help since we keep having snowdays and i'm a beginner to c++. *R...
[1 reply] : You pasted your code in the wrong spot, it needs to be [co de]between... (by LB)
a program that flips integers
 
I was asked to write a program that prompts the user to enter a 3-digit number, the program flips & displays the number. for example: input (286) .. output (68...
[3 replies] Last: Your math is wrong. Don't forget you need to multiply each digit by th... (by LB)
Array Problem
 
I am currently having issues with getting user input from a separate file, and using that input to put into an array into a class in a separate file. (Sorry if ...
[10 replies] Last: Your arrays in Rolodex are string names and int numbers. If you want ... (by tscott8706)
March 2015 Pages: 1... 3940414243... 51
  Archived months: [feb2015] [apr2015]

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