General C++ Programming (Page 2)

Mutexes vs Atomic Operations
Hi everyone Thanks for all your previous help. I am actually looking at writing a float value in th...
[14 replies] Last: @ Computergeek01 I am not sure of what kernels and API's are but I am... (by mcprakash)
by Ownie
Error using std::string std::bad_alloc
1: Unhandled exception at at 0x75151D4D in Game.exe: Microsoft C++ exception: std::bad_alloc at memo...
[5 replies] Last: > Here is more of the code then (by ne555)
templates to be defined explicitly
Do we need to define templates explicitly for each function/class like template<class X> myfu...
[no replies]
Converting floats (1,2)
Hello How do you convert a number float in a range of -10.0f to 17.0f to a eqivalent number in th...
[22 replies] Last: This requires some further investigation maybe on the compiler/linker ... (by vivienneanthony)
sqlite3 problem?
Hi, I have a problem with sqlite3. The database locks its self when in use this is a problem for m...
[6 replies] Last: Could you further explain this please? (by danielmccarthy)
by abc1
destructor of class
I have typed the program as:- class test { int x; public:test(int a) { x=a; } void p...
[6 replies] Last: int main() // <- main must return int, not void { { // <- limi... (by Disch)
// Password Input #include <iostream> #include <windows.h> #include <conio.h> #include <str...
[9 replies] Last: @vendetta2014 Your main problem was that you were entering chars, but... (by whitenite1)
Am I handling bad allocations well?
I've never been taught a specified way of how to handle bad allocations of dynamically allocated var...
[11 replies] Last: 4) If you don't know how big an array needs to be until run-time. Tec... (by helios)
Does my code look nice? (1,2)
Hey, Just curious if I have coded this nicely. Its a small snippet of some code that works with m...
[26 replies] Last: > I've seen excellent programmers with more than 10 years of experien... (by JLBorges)
One thing to clear about dynamic binding?
For example: If I have the base class class cell_c { public: virtual void calculateStep1...
[5 replies] Last: Line 12, 19, 28, 37: Needs virtual keyword. virtual ~cell_c(); ... (by AbstractionAnon)
by ameneh
Prove a random generated number is uniform distributed
Given a random number generator to generate a number between [0,N), how to prove this number is unif...
[1 reply] : Checkout the Chi Square Test for Uniformity . It's a measure of how ... (by kbw)
accessing headers
what does this mean and does it depend on OS? $g++ -I/usr/local/include main.cpp
[3 replies] Last: thanks (by csstudent123)
Can anyone give a link to download the solution of object oriented programming with c++ by balagurus...
[1 reply] : (by giblit)
Monthly/yearly Appointment calendar
I have been looking for *with no success) a calendar library for C++. I am in the process of making ...
[5 replies] Last: Maybe you could just have each day be represented by a sequence of app... (by Zhuge)
by tmason
Calling a defined function pointer from another pointer to a class object......
Hello, I am attempting to implement function pointers and I am having a bit of a problem. See ...
[10 replies] Last: Makes sense; then you would create over-ridable functions for the upda... (by tmason)
error C1075: end of file found before the left brace '{'
//Header file section #include<iostream> using namespace std; template <class T> class SimpleV...
[1 reply] : You're missing some closing }. If you can edit your post, highlight... (by wildblue)
I need to finish this by tomorrow, PLZ HELP!!!
Could someone convert this code into one where you can input the file directory from the console? ...
[2 replies] Last: The new program is: #define WIN32_LEAN_AND_MEAN // prevent windows.h ... (by jasonwynn10)
I'm trying to do a simple compare and it's not working. Const char *
Hi Here is part of a simple function. The simple testing of equality doesn't work Even if the cons...
[3 replies] Last: Thank you. It's resolved. (by vivienneanthony)
Multi-threaded programming
Hi I am having two threads in my program. First thread (lets name Thread A) increments the value ...
[4 replies] Last: @mcprakash while Peter is busy, (by Cubbi)
Learning more of C++
Right, I think I am putting this in the right place, if not I am sorry. I'm looking to learn more o...
[4 replies] Last: OK thanks for you help Computergeek01 , I think i will progress faste... (by MasterGeek)
Pages: 1234... 42
  Archived months: [jun2014]

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