General C++ Programming (Page 10)

Help on Arrays program...
How would I sort the grades from lowest to highest? haven't been able to figure that out yet. Thi...
[4 replies] Last: When you post code, please use code tags. Highlight your posted code ... (by doug4)
How to sort a two dimensional array's string which is a part of a structure?
Hey so this is kind of a beginner question, sorry for posting here, but I wasn't able to get an answ...
[9 replies] Last: One issue is that you still haven't told us - in either thread - what ... (by MikeyBoy)
by stav
Derived class to take arg that is also derived
Hi i have a base class with a pure virtual function called "add" that takes in a ref to a "base_str...
[3 replies] Last: From the parent class' perspective, why does the child need to have an... (by doug4)
Does #include <bits/stdc++.h> slow your program ?
[5 replies] Last: More importantly, "#include <bits/stdc++.h>" means you're no longer u... (by FurryGuy)
I have a class which uses "fopen" , "fread" and isdigit. But I dont include cstdio or cctype , I us...
[1 reply] : This generally happens due to header chaining. Something of yours inc... (by jonnin)
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)
Pages: 1... 89101112... 28
  Archived months: [feb2018]

Cannot post in this page. To post a new message, go to the first page.