General C++ Programming (Page 4)

by Nebur
Compare function on sets
Hello, How can I declare a set of strings that i want to be ordered by a boolean function Comp? L...
[4 replies] Last: Most people here lacking mind reading abilities, so text of that error... (by MiiNiPaa)
by arezu
#include<iostream> #include<cmath> using namespace std; int main() { int count=1; int diviso...
[3 replies] Last: Yep, that wasn't his only problem though... (by tmason)
virtual function in c++ and inheritance
#include <iostream> using namespace std; class a { public: virtual void add() { c...
[3 replies] Last: @JLBorges i understand thanks (by sajid dayer)
Confused with threading in classes
Hello, I'm quite new to c++, but not to programming. I recently wrote a small program demonstrati...
[2 replies] Last: Thanks for your answer. (by Turakar)
want some good quick ,easy to follow reference
Can someone point me to a good quick ,easy to follow reference with examples on the following- 1....
[3 replies] Last: No such thing as "C++ in ten seconds"... (by tmason)
by tmason
Weird "HEAP CORRUPTION DETECTED: after Normal block" error when attempting to delete array...
Hello, I posted a yesterday about creating and deleting arrays but my example program worked fine w...
[3 replies] Last: At first glance at the code given, I see nothing wrong. It must be a c... (by Ganado)
a class of polynomials, errors
hey there, i wanna write a class for polynomials, but there are some bugs in my code and since im a...
[4 replies] Last: hey doug4. Thank you for your patience with me! I tried it with maps... (by xiaoshitourasputin)
Hi every one i have problem with regex file input.txt have structure like this: [A-Z]o Hel...
[no replies]
by yo2xia
Residuals Sum of Squares calculation of regression in C++ Eigen
I want to work out RSS of Matrix Formulation of Multiple Regression, and Y=Xb+e; Here is the code i ...
[no replies]
by tmason
Simple array with access violation errors.
Hello, I have a rather large project which uses a float array for OpenGL but I believe I am repro...
[2 replies] Last: You are right, changing that line allowed the array to be created and ... (by tmason)
header file help
if I have this in header file: can I do this in the .cpp file?:
[16 replies] Last: I'm not sure exactly what you are trying to do since you removed your ... (by giblit)
BitMaps in the console
Before anyone says anything: YES this is very out-dated code YES i am aware that there...
[no replies]
Overloading Operator+ won't take both sides
So I'm trying to add two objects of a class i made called NaturalNumber, however when i try to add t...
[2 replies] Last: Main.cpp #include <iostream> #include <string> #include "Classes.h" u... (by Kerchnasty)
by tmason
"Vector Subscript Out of Range" even with item in container...
Hello, I will try my best to describe this problem I am having because I am not sure if I can rep...
[4 replies] Last: I think I found the issue; it has to do with something completely diff... (by tmason)
Creating a 2D array within a class using a constant
I've been given specific instructions to create an array inside a Class Matrix using a constant n. T...
[4 replies] Last: Thanks for the help. I ended up using Keene's approach until I can get... (by Adam223)
Display a pattern using loops
I have spent at least an hour trying to display this pattern and I am not getting anywhere. Patte...
[4 replies] Last: Do the loop backward: for (int j = i; j > 0 ; --j) (by MiiNiPaa)
Urgent C++ string related
Alright I was able to code a factor that starts at 1 and goes up the length of the string: uint64_t...
[1 reply] : Do you mean, replace line 7 with this? uint64_t factor = length - i;... (by doug4)
by segav
Adding 2 large integers as a list
I'm supposed to write a program that would add 2 integers of up to 300 digits. I implemented the use...
[no replies]
Need help! (for loops/random number generator)
I'm having trouble with running for loops inside for loops. For my assignment I have a bunch of calc...
[no replies]
//Big.h class Big{ private: int k; public: //.... .... }; // Small.h class Small:...
[3 replies] Last: Can you add accessor functions to the base class? ... protected: ... (by doug4)
Pages: 123456... 52
  Archived months: [aug2014]

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