General C++ Programming (Page 3)

hard to find file r/w bug
 
Hello. I do not know why my file stream is reading only one record from the file. Here is the file...
[5 replies] Last: btw thanks all..it working now... but fstream do not read and write..j... (by csstudent123)
by mIXpRo
Abstract Function Object
 
How to use an abstract function object ? I mean i want to define a class that only implements oper...
[2 replies] Last: http://www.eelis.net/iso-c++/testcase.xhtml A testcase consisting of r... (by ne555)
Pointers to classes question
 
First: I don't understand Example4() : ptr(new string) {} Example4 (const string& str) : ...
[3 replies] Last: Thank you for the answer Could you check also this topic for an answe... (by helshahaby)
Pythagorean Triples
 
Okay, I'm hunting down Pythagorean triples. Both the natural ones, and the multiples. What I w...
[2 replies] Last: Your program finds all triples. The lists are just sorted differently. (by helios)
Error In passing a random number generator
 
Hi! I was running some Monte carlo simulations and I was having some trouble passing my Normal-Rando...
[6 replies] Last: What you did: http://coliru.stacked-crooked.com/a/088a05b856aa74ee Wha... (by LB)
I need quick answer for this
 
When & is used in this way SimpleMonetCarlo(const PayOff& thePayOff) what does it mean. Also like...
[8 replies] Last: thanks once again (by C wonder)
Vector of Template in Template
 
Given: #include <string> template <class T> class basic_container{ private: string name; ...
[1 reply] : is this possible Yes. (by kbw)
OOP Question
 
Hello, Suppose I have two classes: class Date { public: // Constructor goes here int...
[2 replies] Last: @Computergeek01: I would use a multimap, not a map, in this case ;) (by LB)
by it058
simplest struct code
 
#include<iostream.h> #include<conio.h> struct node{ char info; node * next; } ; no...
[8 replies] Last: Are you on Windows? http://www.microsoft.com/en-us/download/details.as... (by LB)
Templated Templates?
 
Hi, I'm wanting to write some templates that use templates. I can do this by leaving a complex obje...
[2 replies] Last: #include <iostream> #include <string> #include <set> #include <unorde... (by JLBorges)
Good performance in linux horrible performance in windows!
 
hi, in linux the app is so smooth i move the window around without any concern ! the cubes load with...
[8 replies] Last: Something else to consider along with keskiverto 's train of thought ... (by Computergeek01)
Why does the result differ?
 
My code doesn't seem coincident whenever I run it. More specifically, when I enter like <qwer,qwe...
[7 replies] Last: //code777 Ah, I understood now. The problem is the memory. It was s... (by inmybrain)
How to make a loop
 
How to make a loop so program never end, it end only by typing "EXIT"
[1 reply] : 1) Make a loop based on a condition that can never be false. The sim... (by MikeyBoy)
C++ HELP
 
This is my Script and I do not know what Is wrong with it please rewrite the script correctly #...
[9 replies] Last: Yeah that would work but comparing two arrays wouldn't like that http:... (by giblit)
by Iona
Modifying for loop to make it faster
 
Hello, I have this code which performs the analysis part of discrete wavelet transform. It works ...
[5 replies] Last: As I alluded to earlier temp_row doesn't seem to need to be a vector, ... (by jlb)
Odd Looking declarations: char a??(3??)
 
Any idea what this syntax is? Porting some CPP code from VS2005 - will not compile in VS2010 Thoug...
[4 replies] Last: Digraphs and trigraphs are planned to be removed (or disabled by defau... (by LB)
by Illuk
GetAsyncKeyState(i) == -32767 meaning ?
 
I want to know meant by GetAsyncKeyState(i)==-32767. This is a part of a simple key logger code. ...
[4 replies] Last: Thnx 4 Dish & AbstractionAnion. Actually I want to detect key pressed.... (by Illuk)
sourge engine
 
someone knows how i compile it?
[6 replies] Last: Again, by websearch of the error message: http://stackoverflow.com/que... (by keskiverto)
i think i have some errors with inheritance and templates
 
#ifndef DECK_H #define DECK_H #include <random> #include <string> #include <vector> #include ...
[2 replies] Last: http://www.cplusplus.com/forum/general/113904/#msg622073 (by ne555)
Allegro 5 - 'main' mixup
 
Hello there, I have encountered a problem with allegro 5. It says in the build output that: unr...
[1 reply] : Solved it! Turns out it was as simple as: #define ALLEGRO_NO_MAGIC_M... (by Irrelevant Elephant)
Pages: 12345... 26
  Archived months: [jul2014]

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