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 person which is in this case 'X' in an array of 10x10 ... so this...
[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; result = (a > b) ? a : b; return result; } On the li...
[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() { string s ("1300000000000900000000100006548"); int arr...
[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 assigned to a variable. Then the process repeats for every lin...
[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 understand loops too well... i need to capture the amount of days...
[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 from that file up to the break point. #include <iostre...
[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 decclared in this scope I just can't understand what the error m...
[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 the last 8 hours, can someone please tell me what I'm doing wr...
[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 two-dimensional array initialized with short values, where eac...
[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. Matrix must be N x N. Matrix values are not important. After...
[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 point P1 on the perimeter of circle i and a point P2 on the...
[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 is registered, the Data of previous user is gone.. Any sol...
[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 ganz gut zurecht, nur habe ich Probleme mit der Objektorient...
[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 professor for c++ gave us a 7 part project and I need help i...
[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 Mean of the first 2 element(s): 3 Mean of the first 3 elemen...
[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. There are two functions, a set and get function to retrieve 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 data1; float data2; public: void function1() { data1 ...
[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.