General C++ Programming (Page 7)

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...
[6 replies] Last: I feel really silly right now. Accumulating the sum is actually easie... (by doug4)
c++, inheritance , virtual
#include<iostream> using namespace std; class a { public: virtual void add() { cout<<"in a ...
[2 replies] Last: Because c and d classes does not overload add() function, so latest ov... (by MiiNiPaa)
Tic Tac Toe
We all know the game of TicTacToe. It’s easy, quick and fun. In this assignment, you will implem...
[2 replies] Last: Rofl- (by Esslercuffi)
by tmason
Accessing and working with std::vector from multiple threads ...
Hello, I have a vector that I would like to access and work with from multiple threads. I have crea...
[1 reply] : You need to put a mutex around access to the vector. See http://www.cp... (by dhayden)
String comparison
#include <iostream> #include <iomanip> #include <cstdlib> #include <string> #include <cstring> ...
[7 replies] Last: Thanks. I appreciate your help, and everyone else as well. (by VibeNFlow)
Bitset Limitation
Is bitset limited to 32 bits?
[3 replies] Last: How do I make Borland C++ Builder compile using the C+11 standards? (by jrfrago)
Nested For Loop: Vertical (*) Triangles
I can't figure this out. I have to place two asterisk triangles on top of each other BUT only using ...
[7 replies] Last: That was what Albatross had suggested. This is what Darkmaster had su... (by JLBorges)
256 bit integer
Is there any header file that supports 256 bit integer?
[4 replies] Last: Thanks. That is impressive. (by jrfrago)
Singly Linked List problem
Hi i am trying to figure out how to make a singly linked list class. I am having trouble with some o...
[7 replies] Last: The header file in your original post has // size of the list int ... (by dhayden)
by yo2xia
how do I get non-singular matrix using C++ Eigen QR decomposition
Here is the code I run in C++ using Eigen library ColPivHouseholderQR decomposition, and I have got ...
[no replies]
Visual Studio 2013 - Force C89
Is there a way I can force Visual Studio 2013 to only compile C89 compliant C?
[4 replies] Last: The llvm toolchain can be used from Visual Studio; it integrates quite... (by JLBorges)
Math and caves
I need to randomly draw caves... I have written a program which does the opposite of what I need it ...
[3 replies] Last: Never mind, I don't need the solution anymore, I'll draw something els... (by RealGiganitris)
Newton Raphson for finding square roots
I am trying to use the newton raphson method for finding square roots. Considering the function f(x)...
[1 reply] : That isn't the Newton-Raphson formula for finding roots. Step 1: take... (by Duoas)
help with function
My cdrw_terminate () function is not working properly. So the arrival() function generates process a...
[7 replies] Last: I'm having issues with crdw_terminate() function, the problem is after... (by Stephanie)
string functions
need help implementing these duties : s – search This option will allow the user to search for...
[5 replies] Last: for this assignment i have to stick to c strings. here is what i hav... (by NicoFlowProductions)
Dice Game help
I have a really simple issue and I can't seem to get it. My only issue is getting it to print out a...
[no replies]
please anyone just tell me how to right this litttle function??!!
function next_garde to generates 20 random exam grades (between 20 and 100 , and 60 is the passing ...
[8 replies] Last: When there is an operating system (which is most cases), where does a ... (by pheininger)
Using virtual functions in base classes
I recall when I first started playing with C++ I was told that you should never use virtual function...
[9 replies] Last: By the way, another thing that changed since the 90s is the amount of ... (by Cubbi)
basic polymorphism help
I am making a very basic parent/child class based program that shows polymorphism. It does not compi...
[4 replies] Last: Pretty much sums it all up. Thanks poteto. (by dub1987)
Please help me with this function!!!!
I've been trying to make a sorted list with x random numbers (the user chooses how many random numbe...
[no replies]
Pages: 1... 56789... 58
  Archived months: [aug2014]

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