General C++ Programming - August 2014 (Page 11)

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 uniform distributed. Any suggestion?
[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 balaguruswamy. Urgent need. Please help. I need all review question ...
[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 an appointment scheduler basically as doctors or anyone in s...
[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 the code example below; what I want to be able to do is call...
[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 SimpleVector { private: T *aptr; //To point to the allocated ...
[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? #define WIN32_LEAN_AND_MEAN // prevent windows.h from incl...
[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 const char * inputfile is "generate". It stills fails. Vivienne...
[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 of global variable count(=0,1,...) and the second thread (sa...
[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 of C++, however I am struggling turning the information I kno...
[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 program that reads the scores from the file and displays all th...
[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 Neighbors Pointer virtual bool calculateFD(numeric_t &...
[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 user its name,gender,passport no,age, destination, and travel ...
[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 are the same. Then why int and short int are used? only...
[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 namespace std; int main (){ PlaySound("C:\Documents and S...
[5 replies] Last: I think I fixed it... #define WIN32_LEAN_AND_MEAN // prevent windows... (by jasonwynn10)
by Crogn
Summing two Matrices
 
Hey, I am very new at C++ and I am trying to figure out what the problem is with my code. I am just trying to get it to add two Matrices. // add Matric...
[2 replies] Last: Thank you, What is the correct way to get it to print out the matrix v... (by Crogn)
Scale floats -7.8f/24.1f to range like 0.0f/1.0f. Example problem.
 
Hello I'm trying to scale the output of the diamond nose maker to values to 0.0f to 1.0f. From any pair of mininumY to maximumY. I was able to get it to partial...
[no replies]
Ceres solver compiling problems?
 
Hello. I am a beginner in C++ and Ceres solver. So, I tried to solve this problem but I couldn't. This is my code, #pragma comment ( lib, "ceres.lib" ) #pra...
[3 replies] Last: Alas, I am not going to install ceres on my PC, so I cannot help you m... (by Duthomhas)
error: expected template-name before ‘<’ token
 
Hello: I am writing a derived class, where I have to specify a virtual member function of the base class. The definitions of the member functions of the derived...
[9 replies] Last: sorry helious for the inconsistency, the modified error message: mSet... (by Rahal1813)
Custom Typecasts
 
Hey there, I'm interested to know how this c++ code works internally: (int)32 // or.. (char)32 // or.. (float)32 I'm interested in this typecasting o...
[4 replies] Last: Okay cool, Thank you very much. (by SixTsevN)
August 2014 Pages: 1... 910111213... 25
  Archived months: [jul2014] [sep2014]

This is an archived page. To post a new message, go to the current page.