General C++ Programming - September 2016 (Page 10)

by dietzj
Looping function?
 
I'm new to C++ and currently taking an intro to programming class in school and am currently struggling to do what my professor is asking. We have to create the...
[4 replies] Last: If you're going to use limits , don't forget to do the same thing for... (by mbozzi)
My class with overloaded constr requires default constructor while second donesn't
 
My class Game with overloaded constructor Game(std::string); doesn't require default constructor. While second class Object with overloaded constructor Object::...
[2 replies] Last: Thank you! (by Putarda)
Need Help With Single Peg Hanoi Tower
 
So I'm working on a program that uses a single peg and has disks on it with different diameters, much like the Tower of Hanoi, however it has only a single peg,...
[5 replies] Last: You have it return nothing sensible now. The a and b are uninitializ... (by keskiverto)
by ayraj
Merge Sorting with Linked list
 
I done my project to add subjects and sort them.Im trying to sort them with merge sort but still its complicated for me. Pls help me with this. This is my str...
[2 replies] Last: Look at the code sample under " The behavior of this function template... (by keskiverto)
Value returning function issues
 
I have been going around-and-around with this and can't seem to figure out what I'm doing wrong. I'm a beginner and have a lot of difficulty with functions tha...
[8 replies] Last: I have finally got this fixed and working properly. Another question ... (by joekamel12)
Strings/search for chars/separator
 
Write a program that allows a user to type in tabular data similar to a CSV file, but instead of using commas a separator, you should try to detect valid sepa...
[2 replies] Last: Thank you, I've been away, but I took inspiration from your post while... (by Willo123)
Helpp!!!
 
hey everyone, so i need help. we're suppose to write a program that reads a file of odd values and another of even values and calculte the mean and median of e...
[5 replies] Last: Thank you, i had to rewrite everything. (by tweaktwe)
Multidimensional array sorting
 
// Plokstumoje duoda N tasku pagal Y kordinate reikia surikiuoti #include <iostream> #include <fstream> using namespace std; int main() { in...
[3 replies] Last: Thank you both, it did work and im glad i asked for help :) (by Tomheza)
Table test.no_such_table doesn't exist
 
Hello everyone. Please help me to solve my problem with MySQL. I get mysql error message: Table test.no_such_table doesn't exist How to stop it? Please sug...
[5 replies] Last: Did your SQL problem resolved? what did you do? (by shadder)
by kidush
Help with vectors!!
 
Hi guys, I really need help. I need to print in the screen from my file input.txt the students names, their grades, and calculate the highest grade and lowest g...
[2 replies] Last: It could be like this: #include <vector> #include <iostream> #include... (by fcantoro)
by m7md65
checking code
 
#include "stdafx.h" #include <iostream> #include <string> using namespace std; int main() { int number = 0; char choice = 0; cout << "Enter a numbe...
[10 replies] Last: Is this correct? 1. Does the code look correct? 2. Does the code com... (by Chervil)
Help with fstream into an array of structs
 
Hello, I've been working on a program to collect data from a txt file into an array of structs. I think that I can figure out how to fill the array of stru...
[2 replies] Last: the number initial int is only reading the 3 not the proceeding 2 0s ... (by Chervil)
Can someone please help me program this.
 
Your program will compute values of a formula that expresses y in terms of x. The formula is: 4x3 + 8x2 - 31x - 35 y = ----...
[2 replies] Last: i will i was just getting frustrated. (by marsdef12)
Using input from main function in another
 
I am trying to create a program that uses input from the main function in another function. I have a separate header file as well as another cpp file for all of...
[1 reply] : http://www.cplusplus.com/doc/tutorial/functions/ (by SamuelAdams)
How to use atexit
 
I need to use "atexit" to cleanly terminate the execution of a program in case it is aborted. My program has to run a function called "release_allocator()" at a...
[8 replies] Last: http://www.tutorialspoint.com/c_standard_library/c_function_atexit.htm (by ScottScott)
One more string and char related question
 
#include <iostream> using namespace std; int main() { //cout << "Ivesk du string tipo kintamuosius" << endl; string first = "Daily Programm...
[6 replies] Last: Have you tried typing in std::string into your favorite search engine?... (by jlb)
help with homework involving if statements
 
I'm having trouble with my homework in my intro to programming class. "Mark Daniels is a carpenter who creates personalized house signs. He wants an applicat...
[2 replies] Last: Thanks a lot AbstractionAnon. I'm glad it was a quick fix haha. I'll b... (by logdog9191)
confusion with snippet
 
Hi, I am confused about what data structure this code snippet is. Can someone disambiguate? HERE **** Cents operator+(Cents &c2, Cents &c1) { return {c2.ge...
[5 replies] Last: @ doug4 - Good catch on operator + not being a member function. I mi... (by AbstractionAnon)
Hailstone sequence
 
I cant figure out how to return the largest number in a hailstone sequence while using a loop and no recursion. My sequence is {7,22,11,34,17,52,26,13,40,20,...
[3 replies] Last: The first advice is: post a compilable code (with code tags, see http:... (by fcantoro)
program display nodes
 
Hello,i has create the program which display nodes with links,how to fix it,so i can display in with multiple nodes such as 12 13 14 15 16 27 12 mean 1 conne...
[no replies]
September 2016 Pages: 1... 89101112... 19
  Archived months: [aug2016] [oct2016]

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