General C++ Programming (Page 7)

I need a hand in some C++ codes :(
1- Using the switch statement, write a program that allows the user to convert either from degrees ...
[2 replies] Last: it too simple... try to do it switch() if().... (by nightmaregiba)
Linked List adding nodes..
Ok so I am having difficulty adding nodes to my linked list.... Can someone give me an example of...
[1 reply] : can someone please help me out. (by novelloff)
Finishing Parking Garage program
I'm stuck on an assignment, and I don't understand how to finish implementation. I've been told tha...
[2 replies] Last: You may want to consider another class. Something like GarageEvent . ... (by booradley60)
by Ceset
include Macro
Hi guys. Everytime i create a class header like #IFNDEF BLAH_H #DEFINE BLAH_H #include "foo" #inc...
[4 replies] Last: So simply put, there is no way :) Thanks for all the answers anyway. ... (by Ceset)
by meesa
[Discussion] Dealing with signed unsigned mismatc
There are many questions on the web on how to fix a specific signed/unsigned mismatch, and the solut...
[13 replies] Last: Yes, as debugging aid. Not as only check. My statement Its only use i... (by MiiNiPaa)
constructor in inheritance
#include <iostream> using namespace std; class a { int b; protected: a() ...
[10 replies] Last: ok thanks my friend (by sajid dayer)
by Glaven
Finding Smallest Number in Array Help!
Hi , I was assigned to create a program that has a 10 x 8 two dimensional array and fill it with ran...
[2 replies] Last: how would u do that? would mind showing me in my code? (by Glaven)
by Agent
Template function specialization with default template arguments within template class
I'm getting the following error on Visual Studio: error C2783: 'R TestClass<char>::foo(void) const'...
[1 reply] : If you're writing a function template, prefer to write it as a single... (by JLBorges)
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)
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)
Pages: 1... 56789... 56
  Archived months: [aug2014]

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