Beginners - October 2018 (Page 17)

Vector like protected attribute?
 
is there a possibility to create a vector in the base class and then inherit it?
[3 replies] Last: Well, it seems to work: #include <iostream> #include <memory> #inclu... (by Enoizat)
how to change value of array with displaying it multiple time
 
Hey guys, so i am a beginner with c++ and i am trying to write a code that will help me move a perso...
[6 replies] Last: This might work under windows. #include<iostream> #include<windows... (by lastchance)
by EP3
Syntax question "? a : b;"?
 
In the following code below. Template <typename T> T maximum(T a, T b) { T result; resu...
[1 reply] : You're referring to the ternary operator. Wikipedia has a page for it:... (by Ganado)
Need help in the optimization (1,2)
 
How fast does your code run ? How fast should it be ?
[26 replies] Last: any idea on how to do the surchess problem (by baba 32)
Convert Stirng into int array
 
I need code for this # include <iostream> # include <string> using namespace std; int main() { s...
[2 replies] Last: #include <iostream> #include <iomanip> #include <string> #include <ve... (by lastchance)
reading txt file; stringstream not advancing?
 
Im trying to read a text file that has strings separated by tab characters, each of these will be as...
[4 replies] Last: I'm bemused, @javascripty. Why don't you just do #include <iostream> ... (by lastchance)
by gjur99
Help with homework
 
Hello guys! i need some help with a hw assignment and i am kinda stuck with this since i dont unders...
[3 replies] Last: Hello gjur99, To answer your question creating another variable would... (by Handy Andy)
by jvxn21
Console seems to print everything in file up to break
 
Hello, I am trying to get specific things from a file but my program keeps getting everything fro...
[9 replies] Last: [quote=jvxn21] int ft_long = int(); double clear_price = double(); ... (by Enoizat)
by Trev
error meaning
 
would someone please try to help me understand the following error message 'window' was not decclar...
[1 reply] : Duplicate post; http://www.cplusplus.com/forum/general/244165/ (by Repeater)
Need help with assignment
 
I'm getting multiple error's on my homework assignment, and I've been trying to figure it out for th...
[6 replies] Last: Well, the first thing you did wrong which is of no help to you at all ... (by Repeater)
Need Help in Arrays
 
Write a program that demonstrates various gradebook utilities. The program should first create a tw...
[3 replies] Last: Hello rahan2121, PLEASE ALWAYS USE CODE TAGS (the <> formatting butto... (by Handy Andy)
by BJK
Matrix partition
 
Hi guys, Firstly sorry if something wrong about my English. I need a algorithm who design a matrix. ...
[1 reply] : I think you had better have another go at explaining what you want to ... (by lastchance)
Need Help
 
There are N circles in a plane. Circle i and circle j form a good pair if it is possible to choose a...
[5 replies] Last: how can we do this in O(n) or O(log n), could anyone drop a small hint... (by kanken)
by DellXT
_
 
___
[1 reply] : The error message can often be useful in telling you what is wrong. (by Peter87)
Login and Sign Up
 
In reference to this thread. http://www.cplusplus.com/forum/beginner/227412/ Whenever a New User...
[4 replies] Last: Sorry but I am unable to get you @Yolanda , Can you please explain me... (by Dharmaraj24)
Probleme mit Klassendeklaration und Methoden-implementierung
 
Hallo liebe Community, ich bin neu in C++ und komme aus dem Java-Bereich. Soweit finde ich mich ...
[3 replies] Last: When fixing errors, start with the first one. The compiler works from ... (by Repeater)
Help with c++ Homework please
 
Good evening (night time here), I am fairly new to c++, however I have little knowledge on java, my ...
[2 replies] Last: that's my last step (add a class, extra credit), I will post it tomorr... (by Psalazar2016)
I need help with a return statement from a function
 
I am trying to return a list of mean values. Something like this: Mean of the first 1 element(s): 1 ...
[1 reply] : #include <iostream> #include <vector> int get_int() { std::cout ... (by JLBorges)
Need help with OOP (Set and Get Functions).
 
Suppose I have a class called Student with private member variables and public member functions. The...
[1 reply] : You could pass the 2 test scores to setTestScores and store it in test... (by Thomas1965)
small class program
 
#include "stdafx.h" #include <iostream> using namespace std; class test { public: int dat...
[1 reply] : What kind of output do you want? Maybe something like: #include <i... (by jlb)
October 2018 Pages: 1... 1516171819... 28
  Archived months: [sep2018] [nov2018]

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