• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
What happens to memory if you terminate a program
 
Does the OS free all the memory?
[2 replies] Last: With (most?) modern operating systems, the answer is yes. On any O/S... (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...
[10 replies] Last: Ok, I think I am doing something wrong, I kept getting errors when com... (by h0404)
CStack Class
 
In this code: // A push-down stack to store Box objects #pragma once class CBox; ...
[2 replies] Last: Perhaps " CStack " is intended to be a base-class of some sort? Who kn... (by Framework)
Compiler outputting wrong size (1,2,3)
 
Main: // Ex9_01.cpp // Using a derived class #include <iostream> // For stream ...
[43 replies] Last: When [quote=JLBorges]You already have the information that is needed ... (by cire)
by naz
error here plz find out i need help
 
int main() { //Create contituency and start flow Contituency* con = new Contituency(); ...
[3 replies] Last: I suggest you to change compiler. Looks like you current compiler doe... (by MiiNiPaa)
Nested Classes
 
From my book: "A nested class has free access to all the static members of the enclosing class. All...
[4 replies] Last: So you can always use it inside member functions? Just not as a member... (by Anmol444)
parent and child objects
 
class a { // something something }; class b : public a { // something something };...
[3 replies] Last: It creates single entity which consists of two parts: a part and b par... (by MiiNiPaa)
Having trouble printing out list using OOP
 
#include <iostream> using std::cout; using std::cin; using std::endl; using std::ios; #include...
[9 replies] Last: Note that p is not a pointer, it's an iterator. How are iterators and... (by andywestken)
A pointer to base class
 
A pointer to base class, if assigned to a derived class, only points to the base part right? So you ...
[8 replies] Last: I am sure you know much more about this than me I wouldn't say that.... (by naraku9333)
Extracting file name from path
 
Hello everyone, I have a string like this const char *filename = "C:/Qt/progetti/worlds/fasr....
[6 replies] Last: Or you could use boost for a more portable solution. (The code is nea... (by cire)
Pure Virtual Functions
 
From my book: "Because you have declared Volume() as const, its implementation in any derived clas...
[11 replies] Last: @Cire Alright that makes sense. Btw sorry, its just that you left me... (by Anmol444)
Pointers to automatically null when object is deleted
 
Say I have an object and 10 pointers to it in several other objects of varying class types. if the o...
[1 reply] : Maybe http://en.cppreference.com/w/cpp/memory/weak_ptr (by naraku9333)
References to Base class
 
box.h // Box.h in Ex9_09 #pragma once #include <iostream> class CBox ...
[2 replies] Last: I know I figured it out xD (by Anmol444)
Including cocoa (objective C) in a C++ program
 
Hello, I am running OS X Lion 10.7.5 and trying to include cocoa. #include <iostream> #include <...
[4 replies] Last: Well, I've still gotten nowhere. Even when I use the exact code exampl... (by Blackavar)
by labeeb
Recording keystroke in C++
 
I want to record keystrokes as user press a key.Problem with cin is that it will not do this after h...
[1 reply] : If you want to create a game, read this: http://www.cplusplus.com/foru... (by MiiNiPaa)
Calling C++ from FORTRAN
 
I know it is possible to call C++ from FORTRAN (extern C) Basically, I need to access C++ class ...
[no replies]
convert image to number
 
hi everybody, i want to convert image to number. any suggestions. thanks.
[9 replies] Last: Assuming by "set of numbers" you're referring to color components of i... (by Cubbi)
I need help. The parentheses of an expression.
 
EDIT: No one's responding, maybe cus of lack of documentation? #include <vector> #include <string...
[1 reply] : Just be clear, the problem isn't obtaining the parentheses. The proble... (by IndieExe)
Block Cipher (File Handling) - Error: malloc.c
 
Hi, First of all, sorry about somewhat long code (~400) lines. Relevant bits should be small. I ...
[no replies]
Pages: 123... 83
  Archived months: [mar2013]