General C++ Programming - October 2014 (Page 15)

Strategy of handling errors in C++
 
Hi Please talk me about your strategy of handling errors What do you think about this? main.cpp #include <iostream> #include "Calculator.h" int...
[5 replies] Last: JLBorges, I will! Thank you very much! (by Observer)
allocation speed difference between vectors and arrays (1,2)
 
Hello everyone! :D One of our codes, which we will publish soon, works faster with arrays than with vectors. So, we are starting to write a paper with the bas...
[30 replies] Last: I have updated the content in our website about this topic using all t... (by ncomputersorg)
Mixing audio of different frequencies and mono/stereo?
 
I've build a mixer for mixing audio channels of different frequenties and mono/stereo samples, however in order to do that effeciently and fast I'm using one lo...
[4 replies] Last: Source of the technique used to mix (row 65-68&75-79 in the script): h... (by superfury)
[Urgent] Minimum spanning tree
 
Here is my code //input: 4 0 -3 5 2 -3 0 1 0 5 1 0 1 2 0 1 0 #include<iostream> #include<fstream> #define fin "d:\\input.txt" #define fon "...
[9 replies] Last: Hi Duoas I appreciate what you wrote. Finally i have found the err... (by nightmaregiba)
Help With Classwork?
 
I am supposed to be making a program for football tickets sales, but I am not getting the out put I should. Here is my current code: //Todd Dunaway //10/13/20...
[2 replies] Last: Use setprecision to increase the number significant digit. http://w... (by coder777)
double problem(fraction problem)
 
I have a debugging problem at this program but when i debug this program i found that instead of i=0.1 it is i=0.1000000000001 which is the core of the problem...
[2 replies] Last: http://blog.codinghorror.com/why-do-computers-suck-at-math/ http://www... (by mutexe)
a class of polynomials, errors
 
hey there, i wanna write a class for polynomials, but there are some bugs in my code and since im a beginner in programming, so i cant find it by myself. i ...
[6 replies] Last: I feel really silly right now. Accumulating the sum is actually easie... (by doug4)
c++, inheritance , virtual
 
#include<iostream> using namespace std; class a { public: virtual void add() { cout<<"in a class"; } }; class b: public a { public: void add() ...
[2 replies] Last: Because c and d classes does not overload add() function, so latest ov... (by MiiNiPaa)
Tic Tac Toe
 
We all know the game of TicTacToe. It’s easy, quick and fun. In this assignment, you will implement a computerized version of the game using a 2-dimensional...
[2 replies] Last: Rofl- (by Esslercuffi)
by tmason
Accessing and working with std::vector from multiple threads ...
 
Hello, I have a vector that I would like to access and work with from multiple threads. I have created an example below to illustrate the functionality that I ...
[1 reply] : You need to put a mutex around access to the vector. See http://www.cp... (by dhayden)
String comparison
 
#include <iostream> #include <iomanip> #include <cstdlib> #include <string> #include <cstring> using namespace std; const int size = 200; const int c ...
[7 replies] Last: Thanks. I appreciate your help, and everyone else as well. (by MazharMustapha)
Bitset Limitation
 
Is bitset limited to 32 bits?
[3 replies] Last: How do I make Borland C++ Builder compile using the C+11 standards? (by jrfrago)
Nested For Loop: Vertical (*) Triangles
 
I can't figure this out. I have to place two asterisk triangles on top of each other BUT only using 3 for statements. I have gotten the first one: for(int a...
[7 replies] Last: That was what Albatross had suggested. This is what Darkmaster had su... (by JLBorges)
256 bit integer
 
Is there any header file that supports 256 bit integer?
[4 replies] Last: Thanks. That is impressive. (by jrfrago)
Singly Linked List problem
 
Hi i am trying to figure out how to make a singly linked list class. I am having trouble with some of the function in the class. This is my attempt so far and i...
[7 replies] Last: The header file in your original post has // size of the list int ... (by dhayden)
by yo2xia
how do I get non-singular matrix using C++ Eigen QR decomposition
 
Here is the code I run in C++ using Eigen library ColPivHouseholderQR decomposition, and I have got the rank of matrix and want to get the non-singular matrix. ...
[no replies]
Visual Studio 2013 - Force C89
 
Is there a way I can force Visual Studio 2013 to only compile C89 compliant C?
[4 replies] Last: The llvm toolchain can be used from Visual Studio; it integrates quite... (by JLBorges)
Math and caves
 
I need to randomly draw caves... I have written a program which does the opposite of what I need it to do but I lost it and I have no idea how I did it. Imagine...
[3 replies] Last: Never mind, I don't need the solution anymore, I'll draw something els... (by RealGiganitris)
Newton Raphson for finding square roots
 
I am trying to use the newton raphson method for finding square roots. Considering the function f(x)= c-x^2 if we solve for f(x) =0 then x = square root of c wh...
[1 reply] : That isn't the Newton-Raphson formula for finding roots. Step 1: take... (by Duthomhas)
help with function
 
My cdrw_terminate () function is not working properly. So the arrival() function generates process at tail of ready queue. The terminate() function removes proc...
[7 replies] Last: I'm having issues with crdw_terminate() function, the problem is after... (by Stephanie)
October 2014 Pages: 1... 1314151617... 38
  Archived months: [sep2014] [nov2014]

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