General C++ Programming - November 2017 (Page 5)

virtual inheritance
 
Greetings People! Is there any difference or meaning in the code below? class A{ public: v...
[1 reply] : Is there any difference No. (by mbozzi)
member selector(.) versus (->)
 
I guess this is a heap/stack question: At the outset,should I write the code so an object is instant...
[5 replies] Last: Write your code for strict correctness and readability, and your pro... (by technologist)
delete pPos pointer crashing program. Other similar ptrs ok
 
If I uncomment 'delete pPos' the program crashes on close otherwise it closes normally. namespace...
[5 replies] Last: Altogether still a learning moment. memory that pointer is pointing ... (by technologist)
Parsing through a file
 
How could I read a file like this: Category ID Description 1 Pay Check...
[4 replies] Last: string trim( string s ) // Remove leading/trailing blanks { ... (by lastchance)
dna to rna do not understand the question
 
DNA is made up from 4 different bases (nucleotides), adenine (A), thymine (T), guanine (G) and cyto...
[4 replies] Last: thanks (by mattpanda)
need help on arrays
 
Hello, so I've started learning C++ and came across this example on arrays. Can anyone explain how w...
[1 reply] : http://www.cplusplus.com/forum/beginner/225426/ (by helios)
Need help adding and reducing fractions
 
#include"hw3functions.hpp" #include<iostream> #include<string> #include<cstdlib> using namespace...
[2 replies] Last: std::gcd () (by jonnin)
3D ball moving forwards and backwards forever problem
 
hi i just wanted to know how to make a ball go forward and backwards forever and also change the spe...
[2 replies] Last: sorry, do you want it to go on forever or want it to go forward, back,... (by jonnin)
I've never seen this syntax before. What is it?
 
Hey all. I have not done much C++ in the past 20 years or so. A lot has changed since my college da...
[2 replies] Last: Yep, ok... I feel dumb now. I've done C# for so long that I've forgot... (by RickBlacker)
by roaa
something understandless
 
how i can display the temperature data in this question and the what the problem in this function...
[1 reply] : Where do you read data from file? If function is for reading, then th... (by keskiverto)
Zybooks won't run this?
 
#include <iostream> #include <string> #include <sstream> using namespace std; int main() { strin...
[4 replies] Last: Hello! Thank you for the assistance, it is exactly because I didn't pu... (by verdantgale)
Working with std::algorithm functions
 
Hi, Here is the drills of chapter 21 of the book Programming Principles and Practice Using C++ 2nd...
[14 replies] Last: Thanks for the explanation. (by Frank14)
Which is faster? std::function or a C-style function pointer?
 
Hello, I stumbled across this forum discussion: http://www.cplusplus.com/forum/general/181817/#msg8...
[2 replies] Last: My two cents: A few months ago I tested a complete CPU-bound applicati... (by helios)
by recuva
Ta
 
Hi guys, today I got program for homework to write and I need help with it. I will try to explain wh...
[1 reply] : I sort of see where you're trying to go with this, you're iterating wi... (by Ganado)
by Kiyani
Help with Operator overloading
 
Hello I'm trying to use operator overloading to add the values stored in two objects. I'm trying add...
[6 replies] Last: Worked thank you for your help everyone. (by Kiyani)
Linked List Union and Intersection problem
 
I am working on a program that will have several sets of data (in files) and will have to evaluate o...
[4 replies] Last: It probably would be, but I am having trouble figuring out how to do t... (by Metalman488)
can't access instantiated class member
 
why cant it find orientation.xrot below after instatiation? namespace FPS_cam { class orie...
[8 replies] Last: Is this set of definitions (lines 2 - 14) in a header file? If so, yo... (by doug4)
processor,memory and all hardware
 
Hi guys so to begin I would like to say this will be a fairly long post so whoever reads this thanks...
[5 replies] Last: assembly language is really just a human readable form of machine lang... (by jonnin)
Hello, how can I place the ñ after age?,and will not let me put another name example "Diego Alex"
 
/* Autor:Diego Definicion;Primer algoritmo*/ #include <stdio.h> #include <conio.h> int main...
[2 replies] Last: about gets() [quote=cplusplus]The most recent revision of the C standa... (by ne555)
Polymorphisme: vecteur contenant différents objets
 
Bonjour à tous, je souhaite creer un vecteur contenant différents objets ayant tous des att...
[1 reply] : Bonjour, I hope you are okay with using Google Translate. You don't s... (by Ganado)
November 2017 Pages: 1... 34567... 16
  Archived months: [oct2017] [dec2017]

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