General C++ Programming (Page 32)

Read data from text file
 
Hi everyone: I have to read some data from the text file : transmission number for node 1 is : 2...
[4 replies] Last: thank you very much for your Help Chervil ; now it works ;) ;) (by ayoubou)
iterator as a template type
 
Hi, I have the following type definition: template<class Key, class T> class Cache { private: ...
[1 reply] : You need to use typename to tell the compiler that std::list<CacheE... (by Peter87)
Display first letter of string from a template
 
#include <iostream> #include <string> #include <stdio.h> #include <stdlib.h> #include <sstream> ...
[2 replies] Last: no not at all. thank you (by BigWeel)
my program display 0 after run after i enter the loan money, rates and year
 
my program display 0 after run after i enter the loan money, rates and year thank you for your help...
[13 replies] Last: You do say that this code: double loan::setloanAmount( double amount ... (by keskiverto)
by norcal
Help with void function
 
So for this homework assignment I have to ask 3 questions and output whether their correct or not. T...
[1 reply] : Here are the bare bones for your project: #include <iostream> #inclu... (by xismn)
by nap 93
classes
 
Any help writing all the parts for this program would be greatly appreciated. I am completely lost a...
[no replies]
GPA program
 
hey is there anyone able to help me? I'm to write a program that would use a student id number, name...
[1 reply] : What exactly are you having problems with? Can you post what code you ... (by edge6768)
Linear Search using Arrays
 
The purpose of this program is to read in string of student answers from a test, and compare those t...
[1 reply] : You haven't initialized the test_scores array. Additionally, why did y... (by edge6768)
pass by address without the &
 
Am studying passing by address: fx foo(&value) uses the argument address(&) to pass to function para...
[4 replies] Last: Yes Thx That was the missing piece. (by technologist)
How to display the beginning balance read from the data file?
 
Okay so everytime i run the code and creates an infinite loop, but within that infinite loop the bal...
[no replies]
by hago77
C++ Tasks
 
Hello, I started learning C++ about a week ago and I got two tasks that I cannot do. I see them real...
[7 replies] Last: What is it doing that you don't expect it to? What isn't it doing tha... (by cire)
Multiple header includes in form application error
 
Hi, I have a form application that has two header includes, such as... #pragma once #include "Co...
[2 replies] Last: http://stackoverflow.com/questions/625799/resolve-circular-dependencie... (by cire)
Why isn't "BoarHitPoints" reducing the way I think it should?
 
Hey, guys. I'm doing some exercises on classes in between semesters and I'm attempting to create a C...
[5 replies] Last: You are setting values in the boar object named object, but your func... (by Scotchdew)
Urgent need of help!
 
Hello! Today I stepped on a brick of lego. While coding, "new" and "delete" both got greyed out. ...
[5 replies] Last: I was just dumb. It's all fixed now! Thanks to all anyway! (by qvazmir)
use of evaluate as a term
 
I have been reviewing vocabulary lately for c++.I have found most of what I needed but not so much w...
[3 replies] Last: Evaluation of an expression includes both (optional) value computat... (by JLBorges)
When to use decltype(auto) versus auto?
 
Hi, When and why is it necessary or convenient to use decltype(auto) on return types or type de...
[5 replies] Last: auto foo() { int x = 0 ; return (x) ; // fine } decltype(aut... (by JLBorges)
Adding digits of a number than dividing by 9
 
Write your question here. An integer is divisible by 9 if the sum of its digits is divisible by 9. ...
[10 replies] Last: > Could you help me make my code more modular? Write many small funct... (by JLBorges)
Code to ouput mean, max and min values of an array is returning wrong values
 
This code is supposed to print out mean, max and min value of an array in a structure but it is retu...
[3 replies] Last: See where you get the mean value from inside the struct, like this: a... (by Moschops)
Number of paramaters
 
ERROR CHECK 1: NUMBER OF PARAMETERS: NB: the name of the program counts as the 1st pa...
[2 replies] Last: case 4: cout << "P" << endl; This is not correct. If the number of ... (by Thomas1965)
simple ques operator precedence
 
Hi I was reviewing precedence order way back and I couldn't remember/understand why the following e...
[3 replies] Last: Thx, I've got the operator precedence down. The trick was reviewing t... (by technologist)
Pages: 1... 3031323334... 39
  Archived months: [mar2016]

Cannot post in this page. To post a new message, go to the first page.