General C++ Programming (Page 2)

Purpose of Multimap
 
I understand what a map is and all, but what purpose does multimap serve? How can you access a s...
[8 replies] Last: So like maybe if your counting how many times a number appears in some... (by Anmol444)
NuLL root Binary Tree
 
Hello i got problem in binary tree code. below is my code. When i select pre, post or inorder, the ....
[1 reply] : Solved.. And i have another problem.. When i entering the course for e... (by aquilina)
by Jebus
Defining a Member Function
 
Hello! I've started to learn object oriented c++ recently, im trying to figure out how to print out ...
[2 replies] Last: Thanks alot! i knew i had to write something in the main, wasnt sure w... (by Jebus)
Communication between functions of class
 
Hi, I have a class as follows: class testa { public: testa_b(); ~testa_b(); testa_c(); ...
[3 replies] Last: Thanks. In case I have a lot of variables to define, I think it's bett... (by dekeenfrance)
Help with my exercise
 
I need help with this exercise, its very important for my final in two days. I have skipped alot of ...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/1/ Describe the research you ... (by MiiNiPaa)
Add two numbers as strings
 
Hi guys.I need to make a small program with a function with this prototype: void f(char *a,char *b) ...
[15 replies] Last: [quote=andywestken]And why 19 rather than 20 for getline? Because tha... (by MiiNiPaa)
Loop partly on variable names
 
Hi, I have some codes including a series of instructions like follows: ui.lineEdit_1->setTex...
[6 replies] Last: Thanks for your replies. Yes, I am doing gui with Qt but main code is ... (by dekeenfrance)
NCurses outputting vectors
 
The following code works perfectly with "normal" C++ #include <iostream> #include <vector> i...
[2 replies] Last: We don't need that vector. #include <iostream> #include <string> in... (by JLBorges)
Add value to beginning (left hand side) of string
 
This is probably a stupid question, but how do you add a value to the beginning of a string instead ...
[11 replies] Last: Another recursive version, using bits stolen from both JLBorge's and v... (by andywestken)
Stringstream to clipboard with memcpy?
 
Hi. I'm trying to, as the title suggests, copy the contents of a stringstream to the clip board. Her...
[6 replies] Last: Hmmm... I have found this Microsoft example which is using GEM_FIXED.... (by andywestken)
by h0404
Beginner help with generic dictionary
 
Hello, I am a programmer in Delphi, learning C++, I am stuck with the following code, i want to acc...
[19 replies] Last: yes, you are right, it should be int main() the MSVS 2012 is a bit ... (by h0404)
arrays and functions
 
Okay, im kinda new to this c++ program and all. One question is how do you make a 2D array(table) u...
[1 reply] : What do you have problem with? Creating data sructure? Or outputting i... (by MiiNiPaa)
parent and child objects
 
class a { // something something }; class b : public a { // something something };...
[4 replies] Last: Thanks for the answers (by tejashs)
Pure Virtual Functions
 
From my book: "Because you have declared Volume() as const, its implementation in any derived clas...
[12 replies] Last: [quote=Anmol444]What are you talking about, pointers to derived cannot... (by TheIdeasMan)
programming functions
 
Can someone please assist with how to use functions in a programme to show the names and grades of s...
[1 reply] : What have you done so far, and where are you having problems? If you ... (by Catfish4)
by mr5
MinGW: libpng won't build properly
 
So I need this libpng to be statically link with my dll to be used by my exe. This dll is already ...
[1 reply] : You need to use CMake to build zlib and libpng with MinGW on windows, ... (by modoran)
Binary tree Insert?
 
Hello everyone. I recently finished implementing a Binary search tree for a project I was working on...
[4 replies] Last: std::vector<int> nodes insert(int data){ nodes.push_back(data); }... (by ne555)
Class in Class
 
How can this code compile? #include <iostream> using std::cout; using std::endl; class CBox ...
[5 replies] Last: Oh ok thanks! (by Anmol444)
Asteroids problem?
 
So I was working on this project for class and I closed Visual studios and reopened later that day. ...
[3 replies] Last: It means you accessed a null or non existent pointer if you had the a... (by pogrady)
Infinite while loop vs for loop
 
Why is it that in a infinite while loop you must add a true but in a for loop you can leave it empty...
[2 replies] Last: Alright thanks! (by Anmol444)
Pages: 1234... 84
  Archived months: [mar2013]

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