Beginners - February 2016 (Page 6)

I can't get this to work? Help...
Okay, so the task I have is simple: I need to write a program that displays all the numbers from 100-1000 that are divisible by 5 AND 6. I also have to make sur...
Feb 27, 2016 at 5:23am
[3 replies] Last: Okay, my bad, that was pretty confusing. A for loop would be more effi... (by CrashNebula)
by Unicow
mergeSort with vectors
I'm actually not sure if this is done right or not but this is the code I have so far for a mergeSort for a vector with 10 random numbers. #include <iostr...
Feb 27, 2016 at 4:42am
[1 reply] : Look at this first: http://geeksquiz.com/merge-sort/ Your program dis... (by DeathLeap)
C++ Recursion
Use recursion and the structure Node, to create a linked list. Create the recursive routine of insertRecur that takes a call-by-reference Node pointer and the v...
Feb 27, 2016 at 3:29am
[no replies]
"Exception thrown: read access violation"
Hello, I am new here! So I hope I format this all correctly. I'm writing out some different chunks of code to decide how exactly I want to format my program ...
Feb 27, 2016 at 3:29am
[2 replies] Last: Thank you very much! The first point you made was the issue. Works lik... (by FireHavoc)
Reading an input file to solve quadratic equation
Hey everyone! Okay. So I need help. I'm supposed to be writing a program that solves a quadratic equation when given variables a, b, and c. I have to read in th...
Feb 27, 2016 at 3:00am
[2 replies] Last: I don't quite understand what I should be changing. I tried changing i... (by allysencjones)
If Statement Won't Show Up In Execution
Hi, guys! My code's supposed to allow the user to enter six valid scores for a gymnast. However, if the score is below 0.0 or higher than 10.0, it's supposed...
Feb 27, 2016 at 2:51am
[3 replies] Last: Thank you for the article! I'm going to give it a read! :) (by mhjo226)
Coding help on some integer manipulation
Hey, all. My code works without the functions in it. But then if I take out the if statements about the difference, the functions work again. It's as if one ...
Feb 27, 2016 at 2:47am
[6 replies] Last: DeathLeap: Worked great! Thanks so much! It makes sense, too which ... (by dnorton)
strtok()
why doesn't the strtok() function work? I keep getting the error: This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecati...
Feb 27, 2016 at 1:33am
[3 replies] Last: if (inFile.eof()) inFile.getline(line, 100); else return tru... (by naraku9333)
by tyooo
I have to make a hollowed out Hour glass out of asterisks
How do i hollow out this hour glass? I'm new and this is REALLY hard to me I've spent countless hours on the construction of multiple shapes and hollowing out i...
Feb 27, 2016 at 1:10am
[no replies]
Linear Probing with Hashing
So i'm supposed to implement some code using linear probing for hashing, but i'm not sure I understand completly how this is done. Infact i'm not sure how to im...
Feb 27, 2016 at 12:34am
[2 replies] Last: ... else* //If you think the ellipsis represents a delay within a... (by BTHSpellCheck)
Help with Pythagorean code
Write your question here. // Find Pythagorean triples #include <iostream> using namespace std; int main() { const int LIMIT = 5; ...
Feb 27, 2016 at 12:05am
[4 replies] Last: Line 15, 18, 21 : Random () ??? Line 17, 20, 23 : Isn't the con... (by integralfx)
How do I get the rest of the string in my code?
Write your question here. My code successfully gets user input for a first input of full name, then gets user input for a new last name no matter how many spac...
Feb 26, 2016 at 11:01pm
[1 reply] : What is the reason you're using both cin and getline to get a name? Ju... (by TarikNeaj)
can somebody please tell me what i did wrong?
Im still new to c++, and trying to learn if statments etc could somebody please tell me what i did wrong here? #include <iostream> using namespace std; ...
Feb 26, 2016 at 10:55pm
[8 replies] Last: Again, use code tags, otherwise I will ignore your posts since you ign... (by TarikNeaj)
Unsure about error
Going over a program in a book to learn FOR loops. Just a basic counting program. For some reason I am getting error C2065 'i': undelcared identifier/Intelli...
Feb 26, 2016 at 9:05pm
[12 replies] Last: AbstractionAnon you are probably right =) (by Psalazar2016)
Help with parse tree calculator
Hi, so i'm working on this project and i seem to keep getting a number off what it should be. I believe my problem lies in the eval function but i'm not sure. T...
Feb 26, 2016 at 8:32pm
[3 replies] Last: Line 81: You set v1-v4 left and right to null. That makes sense, but... (by AbstractionAnon)
Why is vertical tab (\v) not working?
Basically i want to output this 1 21 41 61 81 2 22 42 62 82 3 23 43 63 83 4 24 44 64 84 5 25 45 65 85 6 26 46 66 86 7 27 47 67 87 8 28 48 68 88 ...
Feb 26, 2016 at 8:15pm
[6 replies] Last: Vertical tab doesn't do what you think it does. As with most control ... (by Duthomhas)
Please help
class orderedPair { public : void setX ( double a ); void setY ( double b ); double getX (); double getY (); void print (); // Prints the ordered pair (x...
Feb 26, 2016 at 7:32pm
[9 replies] Last: a) pairPtr->setX(5); b) pairPtr->setY(7); To print just call the f... (by Thomas1965)
How do I capture the string after a space in a single line of cin?
Write your question here. I am writing a code that takes a user's full name, swaps the user's last name with another name to be entered by the user and returns...
Feb 26, 2016 at 7:25pm
[3 replies] Last: Well the function I was supposed to use looks like this: string swapLa... (by JoshuaStudent)
by jam47
Problem inserting the break statement in a do while loop.
I want the user to input any number and after that the program will tell if the number given by the user will be a positive, negative or both (0/zero). User can...
Feb 26, 2016 at 6:46pm
[8 replies] Last: Line 7 is still bogus. (by AbstractionAnon)
I need help in creating a program to print a receipt
hello, so I am trying to create a program to print a utility bill receipt. And all the customers information is to be put into an input file with three months ...
Feb 26, 2016 at 6:30pm
[3 replies] Last: Line 31: There are three parts to a for loop statement. The initiali... (by AbstractionAnon)
February 2016 Pages: 1... 45678... 46
  Archived months: [jan2016] [mar2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.