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...
Feb 23, 2016 at 11:24pm
[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 ...
Feb 23, 2016 at 11:14pm
[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...
Feb 23, 2016 at 11:08pm
[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...
Feb 23, 2016 at 10:24pm
[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...
Feb 23, 2016 at 9:57pm
[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 ($), ...
Feb 23, 2016 at 9:46pm
[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 '...
Feb 23, 2016 at 9:43pm
[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 ...
Feb 23, 2016 at 9:42pm
[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...
Feb 23, 2016 at 8:44pm
[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?
Feb 23, 2016 at 7:41pm
[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...
Feb 23, 2016 at 7:33pm
[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 ***** ******* ********* *********** *********** ********...
Feb 23, 2016 at 7:23pm
[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'...
Feb 23, 2016 at 7:13pm
[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> ...
Feb 23, 2016 at 6:52pm
[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...
Feb 23, 2016 at 6:25pm
[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...
Feb 23, 2016 at 6:20pm
[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...
Feb 23, 2016 at 5:30pm
[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 ...
Feb 23, 2016 at 4:44pm
[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...
Feb 23, 2016 at 4:00pm
[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...
Feb 23, 2016 at 3:47pm
[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.
Registered users can post in this forum.