General C++ Programming (Page 4)

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)
HELP
 
// 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)
Help
 
Can anyone give a link to download the solution of object oriented programming with c++ by balagurus...
[1 reply] : http://lmgtfy.com/?q=c%2B%2B+by+balaguruswamy+solutions (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, http://en.cppreference.com/w/cpp/atomi... (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)
by a710h
Issues Working with txt Files
 
Okay so suppose that a text file grade.txt contains an unspecified number of scores. How would I pro...
[1 reply] : Open the file. Begin loop Read a score If end of file ... (by AbstractionAnon)
What's worng with this class with a pointer member?
 
class cell_c:public point_c { public: double p; std::vector<const cell_c *> NP;// 8 Nei...
[5 replies] Last: Ah... it was the pure virtual thing. (by Disch)
Binary files Search Problem
 
i am working on a airport reservation program and i have run into a brick wall. i want to ask the us...
[5 replies] Last: Have you tried using web search? Look for "turbo debugger" I can't r... (by kbw)
by abc1
difference between int and short int
 
size of int is 2 bytes and of short int is also 2 bytes.The range of values for int and short int ...
[4 replies] Last: Implementation defined means it depends on the compiler. (by Peter87)
.wav player problem
 
This is the code I have: #include<iostream> #include<conio.h> #include<windows.h> using names...
[5 replies] Last: I think I fixed it... #define WIN32_LEAN_AND_MEAN // prevent windows... (by jasonwynn10)
Pages: 123456... 44
  Archived months: [jun2014]

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