Beginners - November 2016 (Page 30)

.exe does not work!! Where is the error?
 
Hi there, I am trying to write a program which checks if every even number in an interval (a,b) can be portrayed as the sum of two prime numbers. In the end...
[3 replies] Last: It really worked, thats amazing!! now it shows me which prime number ... (by Desiertox)
by saraem
Choosing randomly from array
 
I have the following numbers in an array, {0, 1, 1, 1, 2, 3} and need to randomly choose from this array until the sum of the chosen numbers equals at least 8 f...
[6 replies] Last: JLBorges, that is exactly what I am looking for, thank you so much! (by saraem)
I need to pick any three functions and list their signatures?
 
Maybe I just don't get the question, but it's asking for three functions of: cmath, cstring, and cstdlib. For example, in cmath, I chose Trigonometric, Hyperbol...
[3 replies] Last: That makes a lot more sense! Haha! Thanks a lot you two! (by MisterBren)
HELP for incorrect input
 
Hi, I am wanting to have it so that if a player does not enter a number between 1-9 then it should output "incorrect input", I am unsure on the way of going abo...
[8 replies] Last: I literally gave a generic simple function to do what you want to do, ... (by Austin J)
If statement between numbers
 
Hi, I am trying to make some input code so that if the user enters any number between 1 and 9 then it is valid, if not between 1 and 9 and is any other number O...
[1 reply] : how about if ((choice4 > 0) && (choice4 <=9)) (by SamuelAdams)
Help for setPixel
 
I thought I followed the directions of the RME, but my output is not matching the output provided as a sample. HEADER /** * Requires: color is a va...
[1 reply] : Not sure what an RME is but a guess is that maybe you have x and y in ... (by Peter87)
Eset warning when compiling a program
 
Why does this show up ? It all begun a few days ago and It's really anoying . The program won't compile or run properly. Image : https://i.stack.imgur.com/iT...
[3 replies] Last: Thanks for your replies :D I've already added my program to the except... (by alienCY)
Need Help Debugging One Compiler Error
 
asas
[1 reply] : #include <string.h> (by coder777)
How to shorten my code
 
Hi, I am just wandering what possible ways I could go about shortening my code, I believe it is a bit lengthy and am wanting it as short as could any ideas? ...
[1 reply] : if ((grid == 'X' && grid == 'X' && grid == 'X') || ... (by rghrist23)
Need advice. beginners here
 
I am new to C++ programming. Recently i'm solving a question. Which involves Questions : Anyone donating RM500 and above will be given a ticket (for 1 perso...
[6 replies] Last: #include <iostream> #include <string> #include <iomanip> using names... (by AbstractionAnon)
Pointer and Arrays
 
Hey guys and gals, I'm have to do an assignment where I use pointers delete the second array value but every time I try to use a pointer it will give me the " ...
[2 replies] Last: You're gonna get a ton of errors. One after one. First, int *x = lis... (by boost lexical cast)
by limo
Distance in miles
 
Write a program that reads in a distance in miles, then calculates and displays the corresponding taxi fare. Each taxi ride incurs a fixed standard charge of £...
[3 replies] Last: With any problem like this, the first thing to do is to try and break ... (by MikeyBoy)
by Pg0715
array
 
i cant seem to find the way on how to find the avg going down for the students how i want it to run is all the way in the bottom #include <iostream> #incl...
[2 replies] Last: With a few of changes, your code works. #include <iostream> #include ... (by starFish2)
2d array
 
hello Program should any user how many students Must use 2D Array 8 column & rows depend on student numbers EXAMPLE: First Name Last Name Grade 1...
[9 replies] Last: ik because there is no example of 2d array, only multiple & other arra... (by mary9734)
an array named slopes
 
I am having trouble writing a program that uses a array declaration statement to initialize the following number in an array named slopes : 17.24, 25.63, 5.94,...
[4 replies] Last: Line 5 - your array should be declared to have 10 elements in, not 8. ... (by lastchance)
Question help with call-by-reference parameters
 
Hi guys I'm struggling to find my footing with this homework problem. The task is: Write a question that has two input parameters, x and y, and two output...
[2 replies] Last: So a function call can't return 2 things. It can return only 1 thing. ... (by boost lexical cast)
HELP PLEASE! Astrix and triangles..
 
How do i make the astrix do this?... I know I have to add spaces somewhere Im just not sure where... i have the first two triangles down .. the third and fourth...
[8 replies] Last: #include <iostream> using namespace std; int main() { int N; int ... (by dragonStarN)
Looking for C++ Learning Group
 
I am just sign a few of hour ago, I still getting to website. I am sending message to anyone who looking for new members. I also have few idea I like test as we...
[1 reply] : I am just sign a few of hour ago, I still getting to website. I am se... (by dragonStarN)
c++ large binary to decimal conversion
 
hi this code print the benary value(01000011...) of any file, i wante to convert each 3 bits like 011 to its decimal value, please help me #include <ios...
[3 replies] Last: Hi thank you for your replay, how to do this? You already have thi... (by dragonStarN)
"cout"ing the sum of 2 arrays
 
Write your question here. Hi, I have an assignment for my college class that I just can't wrap my head around. Here is the assignment that I am struggling wi...
[2 replies] Last: const int SIZE = 3; int max( int a, int b, int c ) { int nums =... (by integralfx)
November 2016 Pages: 1... 2829303132... 44
  Archived months: [oct2016] [dec2016]

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