General C++ Programming - April 2018 (Page 13)

C++ ifstream/private variable/classes
 
Classes.cpp: #include "Classes.h" Car::Car() { } int Car::GetYear() { return year; ...
[1 reply] : Hello Im new to this. Im having trouble trying to use set and get meth... (by Thetersures)
Vector going out of bounds without giving error when triying to display
 
When i run this program, i create a vector succesfully, but in the next loop the program stops worki...
[2 replies] Last: To improve readability use code tags: [co de] Your code [/co de] Rea... (by coder777)
C++ STL-like doubly linked list with constant time splicing
 
Hey, I'm looking for a C++ implementation of a doubly linked list with constant time splicing. To...
[1 reply] : I'm not aware of such an implementation but it probably wouldn't be to... (by dhayden)
how use a split complex?
 
template<typename Out> void split(const std::string &s, Out result) { std::stringstream ss(s...
[7 replies] Last: thank you so much. fixed like i need. #include <iostream> #include <s... (by Cambalinho)
How to retrieve the last node in a linked list?
 
Class EmployeeList javascript:tx( 'string employeeList::searchLastEmployee (nodeType<employeeIn...
[3 replies] Last: Actually, I believe that std::list maintains a pointer to the last i... (by dhayden)
recursive functions(c++)
 
I want to present you a very short and easy for most of you recursive function, I think that if you ...
[no replies]
Binary Tree : leaves and post order
 
I am having trouble getting my # of leaves method working, with leaves being defined as a node whose...
[5 replies] Last: When you say post order is not working, what do you mean? What incorr... (by doug4)
by KB93
Solve Sudoku Puzzle Using Backtracking
 
Hello everyone, like the title says I'm trying to finish implementing a solve function to solve a Su...
[1 reply] : Use bits in an integer to gather the values currently in the row or co... (by dhayden)
about for_each and functions objects
 
the for_each and functions objects are only for STL?
[2 replies] Last: i see. thank you so much for all (by Cambalinho)
by jfet97
real_array: new class template
 
Hi to everyone, I've created a new class template to replace arrays (it's only an exercise, nothing ...
[5 replies] Last: Ops I've I completely misunderstood your hint...thanks for this explan... (by jfet97)
Arrays with structure
 
I'm studying for my finals that's at the end of the month. There is a question that goes: Constru...
[2 replies] Last: CarInfo details; // THIS LINE MAKES NO SENSE. WHY IS IT HERE? cout ... (by Repeater)
Evaluating arithmetic expressions using recursive descent parser
 
#include <sstream> #include <iostream> using namespace std; using namespace std; //const c...
[7 replies] Last: [quote=dhayden]But that isn't the advice you gave: I wasn't refering t... (by coder777)
how to clear stl::set constructed using placement new
 
I noticed when constructing std::set using placement new,like this std::set<int> *pSet = (std::s...
[8 replies] Last: You attempt to "optimize" those small stubs with your placements. Is t... (by shadowofwind7)
by nether
non-os dependent sockets
 
Is there a way to create non-os dependent sockets in c++ and if so how would I go about doing it? Or...
[11 replies] Last: thanks for the input @Repeater and kbw ill take a look and ZeroMQ (by nether)
by faeory
c++ programm
 
i need urgent help programming this project ! i would be very thankful if you help me...! "Develo...
[1 reply] : o Input file (in.txt) has instructions, as shown in the below table o... (by zaphraud)
vector of pointers to objects
 
Hi, guys, I am doing a simulation about solar system. The simplest scenario is that containing only ...
[4 replies] Last: Thank you very much! I am still learning and thank you for your reply! (by ZhixiangZhang)
Class: Non-Standard Syntax
 
I am a newbie when it comes to classes in C++, and I have to create a program that uses a class invo...
[2 replies] Last: Wow, I cannot believe I forgot those! I feel so dumb haha. Thank you s... (by datboi97)
how use array inicializations on constructor?
 
see these constructor: template<typename TypeID> class array2 { private: TypeID *arr=NULL;...
[9 replies] Last: C++ is not Visual Basic. You have to unlearn what you learned in VB. (by closed account E0p9LyTq)
It statement
 
#include <iostream> #include <iomanip> using namespace std; int main() { int i, rows = 0, row_n...
[1 reply] : How many threads have you already created about this one program/probl... (by keskiverto)
by awad
learn by coding
 
hi guys , i need some kind of active group of learners so we can work on some projects
[2 replies] Last: any project mbozzi to apply what we learn (by awad)
April 2018 Pages: 1... 1112131415... 17
  Archived months: [mar2018] [may2018]

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