Beginners - December 2016 (Page 8)

Polynomial Class
 
Hi folks, I need some assistance with getting the logic for my Polynomial class to work. The program is supposed to create two Polynomials and then add/subtr...
[5 replies] Last: Why is it incorrect to pass by reference and not by value I said re... (by gunnerfunner)
file in/out grade program
 
hello, I am new to c++ and need help with this code. If anyone could help it would be very much appreciated. thanks! Write a complete program to input ...
[2 replies] Last: Is your .txt file just letter grades or do the phrases 'Section-001', ... (by gunnerfunner)
by cppppc
Linked List problem!!
 
no compiling error but it crushes! struct Node{ int val; Node* nxt, *prev; };[\code] void headInsertion(Node*& head, int x) { Node* n =...
[1 reply] : Line 22: if you insert the second node, head->nxt will be NULL and h... (by coder777)
Short Beeps (windows.h Beep() function) not playing.
 
Hi guys, So, I just started learning C++ (coming from Java, primarily), and as a learning project I've built a snake game with ASCII graphics. I wanted to ad...
[2 replies] Last: Hey Andy, Thanks! After some more experimentation, I find it to be k... (by CajunCoder)
Dynamic memory and Arrays
 
Hi all, I'm working on another assignment, and I'm in need of some help with dynamic memory and arrays. As of right now I have the following: #inclu...
[9 replies] Last: I think I've run into that already a few times, where it outputs just ... (by Monte211)
Need help with my code!!!:(
 
Hi everyone, I'm stuck with some problems here with my code. My quest is to create a function that takes an int vector as in-parameter and return the average ...
[5 replies] Last: This line looks wrong total += v ; Array subscripts start from z... (by Chervil)
How to output an int as a string
 
Hello, I am new to programming and am attempting a c++ exercise. In a simple card game between 2 players each player is dealt a card in turn, the rank of w...
[6 replies] Last: Ahh I finally understand it now, thank you very much for the help and ... (by imohamme5)
Template with multiple inharitance
 
Hello, I am really new for C ++ and came hare from Java (it's not me, it's my university program) And I stopped on one task that is really hard to me to impleme...
[8 replies] Last: The if-else on std::conditional linked to the static data members of ... (by mbozzi)
Traffic light game need helps !!
 
This is what I need to do . I had goggle what is rand and srand but what i get is the rand and rand only showed random input number. But what i read fro...
[9 replies] Last: http://www.cplusplus.com/forum/beginner/204868/ (by closed account 48T7M4Gy)
Readinf from a file and storing in multiple data type variables.
 
I am writing a program that creates an address book from a text file. I have to store some things in strings and some in enums. I think I have a handle on the e...
[3 replies] Last: Having looked at this a bit more, I'm not quite sure what classes and ... (by Chervil)
Calculations for a phone call
 
I'm trying to calculate the price for a phone call under these requirements,  Price per min 4 dollars.  VAT 25%.  Between 8:00 and 18:30 you pay full p...
[7 replies] Last: Thank you! @AbstractionAnon (by markusfurst)
by Hengry
Trouble implementing a function in a class
 
I have to create a program that has a library of songs and a playlist contains songs from the library. My problem is the implementation of the Playlist class....
[10 replies] Last: I was thinking that createSong should be in the Library class ... c... (by gunnerfunner)
Finding out fastest way to find how many partitions can be made form a string with variable characters
 
So let's say I have a string, 1??0. Now I can replace the question marks with either 1 or 0. Now what's the fastest way to find out how many contiguous block...
[8 replies] Last: Are you sure that your problem is not just 1????????????????1 Can you ... (by lastchance)
read and store
 
i have a .txt file with format like this : Student 1001 25 Bedford St. New York City, N.Y. 10014 Student 1002 125 Maiden Lane, 11th Floor New York, ...
[3 replies] Last: OP: if the format of the file repeats itself throughout you can set up... (by gunnerfunner)
by xx123
How to sort a struct??
 
My assignment is to create a structs and sort all the employees by last name, first name, id number and salary. I am confused on how to compare all of their las...
[8 replies] Last: Try the example shown here: http://en.cppreference.com/w/cpp/locale/m... (by TheIdeasMan)
Do...while loop?
 
The Bored Auto Company has done it again. Some models of their cars may be difficult to drive because their wheels are not exactly round. Cars with model number...
[9 replies] Last: Thank you so much! You're a big help! (by Extinqt)
by sarisa
Searching and storing matched words from a Database
 
I need help in making algorithm that will take 3 letters in a straight line from the 2d array and then search the string database whether that word exists or ...
[1 reply] : Well the idea would be to: - go to each cell of the array - get the th... (by closed account 48T7M4Gy)
reserved words for c++
 
Write your question here. where can I find the reserved words for c++?
[1 reply] : http://en.cppreference.com/w/cpp/keyword (by mbozzi)
by WhatIf
How to find out the parent class?
 
class Animal {}; class Mammals : public Animal {}; class Birds : public Animal {}; class Aquatic : public Animal {}; class Fox: public Mammals {}; ...
[7 replies] Last: Correct but I'm not trying to check the class. I want to know if the ... (by mbozzi)
Game code issues
 
i have two problems 1. the program stops after i ask for the player to enter a name to be associated with their piece. 2. i need to have a function that will...
[2 replies] Last: i initialized the members separately in the array because i wanted the... (by CToy1008)
December 2016 Pages: 1... 678910... 28
  Archived months: [nov2016] [jan2017]

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