Beginners - February 2016 (Page 12)

by Ik66
Crash after loading data from binary file
 
Hi everybody!, While i am continuing my learning of C++ i have to write a program to load some "employees" objects into a vector and after that save the data...
[8 replies] Last: Now i see what you mean. Employee class has no pointers...at least wri... (by Ik66)
What is the best way to program graphics?
 
I'm writing a card game for an independent study project. I have it implemented in text-mode but would like to do it as a GUI. Since it's independent study, I ...
[3 replies] Last: try https://www.youtube.com/user/VoidRealms he has a lot of tutorials ... (by rafae11)
Stuck on simple question
 
i am having trouble finding the sqrt roots for a number. my assignment is to Write a program that prompts the user for a positive number and prints out the squ...
[5 replies] Last: got it to work thanks for anyone in the future here is the correct cod... (by akanash94)
qualified-id error.
 
I'm trying to get this code to calculate the types of pizza ordered and the total cost when "again" is != y but I keep getting these two errors. qualified-id...
[14 replies] Last: I put Order::Order(){ double total = 0; } And now it runs, but i... (by jibicax)
( Help please! :) )I'm having trouble utilizing a class object within another class
 
I am trying to incorporate an object of a date class that I have created into a student class that I have created, but I am unsure how. Here are both of my clas...
[3 replies] Last: I don't understand what you mean by that statement. I don't see an im... (by AbstractionAnon)
Nested for-loop problem
 
I was given this assignment: Write a C++ program that asks the user to enter an integer N and display N lines as follows. On line i, display i dollars ($), ...
[4 replies] Last: Lines 13, 15: Your for loops are still bogus. Line 16: You're print... (by AbstractionAnon)
Need Help with a Single (Simple) Error
 
Can't figure out whats wrong but probably glazing over it. the error is: In function 'void order(double&, double&, double&)': error: expected ';' before '...
[4 replies] Last: fixed it! was a bug in saving files (by gregfifth)
Memory leak after removing word from binary tree.
 
I've made a binary tree for which I have written a function to remove a word. I change the pointers in such a way that the tree is sorted again correctly but I ...
[1 reply] : No answer yet, it must have been busy at this forum. I found the answ... (by Bram van Velzen)
Functions, using sqaureroot
 
My class assignment is to "write a program that reads three sides for a triangle and computes the area if the input is valid, otherwise displays is invalid to t...
[8 replies] Last: In a general sense, yes that's what I meant. Though the two code sampl... (by Chervil)
Help Needed!
 
need to make a program when given a month, day, and year determine the date that occurs 9 weeks later. how should I start of?
[1 reply] : First of all use three variables of course, an int month, and int day ... (by jgg2002)
Almost there!
 
Why is my code only reaching the If statements if (A, B, or C) is capitalized? #include <iostream> #include <iomanip> using namespace std; //function p...
[3 replies] Last: I found the problem. Thanks for responding though... membership = ... (by Billyin4C)
How write a program to draw curvy towers as in the sample runs below
 
Enter the height per section: 7 Enter the number of sections: 4 ***** ******* ********* *********** *********** ********...
[1 reply] : #include<string> #include<iostream> using namespace std; int main()... (by jgg2002)
Quicksort doesn't work on odd numbered arrays
 
As the title explains above I'm trying to implement Quicksort but it doesn't seems to work in odd numbered cases. I'd like for someone to see what condition I'...
[3 replies] Last: #include<iostream> using namespace std; void swapt(int i,int j, int *... (by jgg2002)
Why while loop is not working instead of for loop?
 
I am creating a pyramid in C++, and for loop is working fine but when I came to while loop, the same code is not working. Here for Loop: #include <iostream> ...
[1 reply] : You forgot to reset j to its original value before entering the inner ... (by helios)
vector program, unknown errors.
 
code to store exam scores, find average, and compute standard deviation, it has one REALLY long syntax error, i don't know what it is, please help =[ #i...
[7 replies] Last: You can't do this: fillArray(score)<<endl; displayArray(score)<<endl... (by DeathLeap)
Confused little bit at some point in C++ program.
 
I now the output is 1024 and 10, and also know that second number is base 2 log of first number, but I am still confused that how this program is working. Can y...
[4 replies] Last: Thanks All. (by ZahoorKhan)
Arrays & Arguments
 
Hey guys, I'm really new to C++ and I need to write a function that accepts an int array and the array's size as arguments. I dont really even know where to beg...
[2 replies] Last: I actually found out what to do! Here is the solution for others if th... (by hookster007)
by g3n0m3
where can I find the full name of C string functions
 
I usually find it easier to know what the full name of a C string function is then I figure it easy what the name of the function is for example when I want to ...
[1 reply] : Im sorry but could you rephrase the question? I have no idea what you ... (by TarikNeaj)
LNK2019 unresolved external symbol
 
New to C++ and have been trying to get class templates to work. Ive been getting the following errors in Visual Studio 2015: Severity Code Description Projec...
[2 replies] Last: Hi, Is the second snippet in a .cpp file? Templates and their functio... (by TheIdeasMan)
Notes Dispenser pointers needed
 
Hi all, I have just started out in C++ am trying to write up a cash dispenser code upon entered amount(assuming it as whole numbers - 100, 220 etc..) and to lis...
[6 replies] Last: Pardon me if I sounded stupid but will that be a while loop? So far I ... (by salik89)
February 2016 Pages: 1... 1011121314... 46
  Archived months: [jan2016] [mar2016]

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