General C++ Programming - September 2015 (Page 15)

Update file
 
Hey guy! I have 4 data in file like below ID Name Sex Phone Salary 1 example example example example 2 example ex...
[3 replies] Last: Thanks guy i done it. (by rathpanha)
Modular Programming
 
I fixed all the obvious errors that it gave me, now i have 3 errors that i do not know how to solve. ERRORS Severity Code Description Project File Line 1....
[2 replies] Last: Oh wow! how could i not have caught that! yes i see it! (by Frankie1210)
I need help with this program. Please!!!
 
Can someone help guide me in the right direction? honestly, I have no idea where to start. Here's the question. Giving change. Implement a program that direct...
[1 reply] : here's what i have so far #include <iostream> using namespace std; ... (by POKiMONSTA)
Why is my implementation of Hoare's Partition here not working?
 
You can run what I've written down from here: http://ideone.com/uLPi8v Or refer to the snippet I've posted below: int HoarePartition(vector<int> & in){ int ...
[1 reply] : On line 10, replace <= with < (by ats15)
by Andym
Can a text file be opened by passing thru a function?
 
Why does the string for the text file name print to the screen and not the contents of the text file? // // main.cpp // GradeCalculator // // // #...
[no replies]
by Winsu
optimization program:parser
 
Hi guys, I have done a program with a hierarchy of 4 levels, and the base is virtual.I have overload operator<< and >> for each class...and I have created a ...
[1 reply] : #include <iostream> using namespace std; template<typename T> clas... (by Winsu)
Rational Numbers
 
1. Create a class called Rational for performing arithmetic with fractions. Use integer variables to represent the private data of the class – the numerator...
[10 replies] Last: Well your code: Rational c( 1, 3 ), d( 7, 8 ), x; instead of passin... (by mutexe)
How to write a random character generator?
 
Hi my name is weazelknievel and I'm just starting to get into programming and for my first project I want to do a random generator for league of legends I want ...
[5 replies] Last: prajesh, you are not at all answering the question the TC had. Please ... (by Zhuge)
Help correct this program.
 
Hello Everyone, I am new to this forum/site.I have done an attempt to create a error free code, but I'm getting a wrong output.Please correct me. #inclu...
[3 replies] Last: Don't use break in a if clause. It's for the switch only. No, it is n... (by MiiNiPaa)
While loop of names.
 
C++ visual studio 2013 This is what I have so far. I am getting errors I do not understand. #include <iostream> #include <iomanip> #include <string> #in...
[4 replies] Last: make sure the type of linkedListType is correct, u should post the hea... (by mjamesball9)
by JekasG
Trees - Access Violation reading location 0xFEEEFEF2 for different set of numbers
 
I have written up code for Tree with the implementation of adding and removing nodes from the tree. When I first tested the tree with a set of numbers then tryi...
[6 replies] Last: this is not smart ... int int_array = { 18, 82, 97, 16, 11, 9, 44, ... (by Ericool)
Tic Tac Toe
 
Hello! I am trying to create a tic tac toe game. I am receiving an error in both check player functions. The error message is "lvalue required as left operand a...
[2 replies] Last: @programmingisLife this is a classic mistake = vs == == is an operator... (by Ericool)
by UNNGH
how do I read Specific Data from file?
 
Say I wanted a "practice program" that prompted the user for username and password. it stores it in plain text (i know later you would add encryption and a salt...
[2 replies] Last: look at this thread for hints : http://www.cplusplus.com/forum/lounge/... (by Ericool)
by Andym
Understanding the effects of loops and such
 
I am confused.....If I comment out the getline statement in the snippet below, (the getline before the "while" statement) it changes the number of lines returne...
[3 replies] Last: the while checks the condition within its inner scope . (by Ericool)
Energy bill
 
Write a program that creates a form for an energy bill. Design your own logo. Make table headings. The columns are Date From, Date To, Energy Type, Units, Cost ...
[2 replies] Last: Okay im sorry, Im going to delete the posts :) (by smackthat1)
Need to fix some problems please.
 
Write program that prints out as follow: 1.unsigned integer 40000 left-justified in a 15-digit field. 2.12.3456 left-justified in a 15-digit field with 3 ...
[1 reply] : Please, do not double post. It clutters forums and spreads attempts to... (by MiiNiPaa)
How do you pass an array of structures by reference?
 
cpp.sh/6u2uu I'm trying to figure out how to properly pass an array of structures by reference. I want the music array to pass into the openMusicStore() fu...
[2 replies] Last: Your code has a problem: you are passing array pointer to your funtion... (by MiiNiPaa)
Do I learn STL or QT after c++ basics?
 
Hi all, 1-I have a basic understanding of c++. I mean I studied c++ basics and I want to learn more about it. I need to learn sth more than c++ basics. So w...
[15 replies] Last: Appreciate your help. Well done.............. (by omer123)
Recursion Problem
 
My problems requires me to take an input number from a text file and a base number from the text file. Then I am converting the first number to the base of the ...
[no replies]
How To Multiply Any String Variable (e.g "A") With An Integer Variable (e.g "3")
 
I have a program that prompts users to input a grade scored in a particular course e.g "A" and the equivalent of grade "A" is 5. Now, I don't know how to multi...
[4 replies] Last: Thanks #Sasauke, the Wisest; for your reply. Just that Advanced Selec... (by bellTech)
September 2015 Pages: 1... 1314151617... 21
  Archived months: [aug2015] [oct2015]

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