Beginners - March 2019 (Page 5)

100 objects
 
Hello I have two files Principal.cpp and Individuo.h, I want to create a hundred objects of Individu...
[6 replies] Last: Every individuo have random sctrings of fact and strings ... Is tha... (by keskiverto)
Pointer Problem
 
Hello. I have a problem with some pointers. I basically have two classes: DLLNode and SortedMap. W...
[1 reply] : All you have at the moment are pointers to local variables. You need ... (by salem c)
by kenken
Runtime error. Terminate called after throwing an instance of std::length_error
 
I get a Runtime error which i can't understand. Please help! class A { private: string ...
[2 replies] Last: Thank you Jonnin. I made the function CreateA() as a void function and... (by kenken)
Iterators
 
I have just started working on iterators, and I assume this is very basic... why does not the follo...
[14 replies] Last: If you are looking to insert elements, that takes a little more work.... (by dhayden)
isspace issue
 
Need is space to detect space from single input characters and print out the responses below. seems...
[3 replies] Last: Thank you both, was so simple i cant belive i overlooked it. :) (by blackstar)
by ramp00
Problems with "||" operator
 
I'm doing a conversion between units, but when I try to check if the user enters the right input, I ...
[5 replies] Last: #include <iostream> #include <vector> #include <algorithm> using name... (by lastchance)
by JayGln
Dynamic array access violation
 
I am working on a program that replicates the plinko game on the price is right. however my issue i...
[12 replies] Last: There's also no point in resetting values after something is destructe... (by Ganado)
by Alb13G
trouble with sub/add negation function
 
I'm having trouble with the negation part of this Write a function that accepts two input parameters...
[3 replies] Last: Thanks Guys Got it! Appreciate the help (by Alb13G)
"VectorName" was not declared in this scope..?
 
Closed, pasting the error here helped me notice the issue. I missed one lowercase letter. And now I...
[1 reply] : Closed. ... Missed one case letter. :P (by PiggiesGoSqueal)
reading text file to vector os objects
 
Hello i'm having trouble while reading the contents of a text file to a vector of objects. the file...
[5 replies] Last: hi! thanks everybody for the answers! so, then i noticed that the err... (by Stauricus)
Won't output to file
 
Input to be read from file. Main to call functions. Program compiles and runs, but not correctly. O...
[11 replies] Last: Thanks for the input! This gets me going in the right direction (by ames1951)
Cannot Read & Store Data From File
 
Please Note: This is for a homework assignment, however , the due date has already passed. I'm doin...
[7 replies] Last: Thanks for your reply @ne555! Sorry for my late reply. > ‘readFil... (by PiggiesGoSqueal)
Segmentation fault
 
#include<iostream> #include<cstdlib> using namespace std; /* Implements a divide-and-c...
[15 replies] Last: It looks like the OP's code is a direct port of the Pascal program in ... (by dhayden)
illuminating use of destructors
 
I stumbled over CABrouwer's post (http://www.cplusplus.com/forum/general/251463/#msg1107166), and th...
[5 replies] Last: > Yea, if Derived has a virtual dtor, it would be called. wrong if Ba... (by ne555)
Not work
 
please help ------------------------------------------------- Intel
[1 reply] : You seemed to already have a thread on the same program: http://www.cp... (by keskiverto)
Sleep alternatives
 
Hi, i'm new to this forum and i had a question. Are there any Sleep() alternatives? Because to m...
[6 replies] Last: Use the <thread> libraries to do it, as salem c and Furry Guy poin... (by Duthomhas)
by wuwy
How to return struct array from function
 
Been browsing various forums, can't find anything that would explain on how could I return struct ar...
[5 replies] Last: With object parameters one has by value and by reference (&): voi... (by keskiverto)
by cash
overload operaror <<
 
I'm confused about how to use overload operator, My assignment is: You should use the overload opera...
[2 replies] Last: You should use the overload operator << so that the printing of the v... (by keskiverto)
Counting Sort
 
Hello guys! I'm using a count sort algorithm to sort certain number in the range of 0 to 50. Then d...
[16 replies] Last: @Duthomhas. Thank you very much for your solution. This solutions ar... (by FreeSocks)
Function overloading
 
Hello, I would really like a fresh set of eyes on my code and see what I am doing wrong. I feel l...
[3 replies] Last: Tiny mistake. On line 37, I said to use "while(choice > 0 && choice < ... (by zapshe)
March 2019 Pages: 1... 34567... 25
  Archived months: [feb2019] [apr2019]

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