General C++ Programming - October 2015 (Page 10)

by belat
libgsl-0.dll is missing
 
Hi all, i am using certain optimization functions of the GNU Scientific Library (GSL) 1.15, 64-bit Windows and i currently have an issue with some missing dll a...
[2 replies] Last: It does exist, i can see a file with the same name in the binaries fol... (by belat)
Gillespie algorithm -- where's the glitch?
 
Hello All, I am very new to c++ and I've been trying to write a simple stochastic algorithm (aka Gillespie algorithm). I know what the answer should be, but ...
[1 reply] : PLEASE USE CODE TAGS (the <> formatting button) when posting code. It... (by chicofeo)
add something that I'm missing
 
I need calculate the highest charge but it comes out to be 0. I have the output shown. Does anyone see what i have to add? #include <iostream> #include <fstre...
[2 replies] Last: please assign some value to highestCharge variable (by Akarsh)
problem in "expected primary expressions"--- can't identify it. please help
 
#include<iostream> #include<string.h> using namespace std; class person { private: string lastname; string firstname; char gender; p...
[1 reply] : Hi, To help us out, always use code tags: http://www.cplusplus.com/... (by TheIdeasMan)
Need Help C++ Coding
 
1. Write code that will request the length and width of a rectangle until 0 is entered for either the length or the width. Print the area and perimeter for each...
[4 replies] Last: There's a few ways of writing this, but it looks like your topic is th... (by YFGHNG)
by Zanies
Ragged Arrays! (Need Help)
 
Hi guys, for this program I have been struggling with it for couple of days trying to read it from file by using pointers. Can you guys help me out on how I sho...
[6 replies] Last: Thank you JLBorges! This helped a lot (by Zanies)
Need help with do-while loop assignment!
 
This is my first post, and I am new to programming, so please bear with me. I missed a few days in class, and have been going over my notes but I am very stumpe...
[3 replies] Last: Thanks guys! I think I have it somewhat figured out. I am still confus... (by KISSfan1993)
by Chubby
opengl Moving sphere to center
 
Hello, How can I move sphere the near plan? [
[no replies]
Nearest neighbour using voronoi
 
Hi everyone, I implement Shane o Sullivan (http://www.skynet.ie/~sos/mapviewer/voronoi.php) code to generate voronoi diagram from a set of points and store t...
[4 replies] Last: hi coder777, I check the link, however I couldn't find what i'm looki... (by hidayat)
Using for statements to read from a file
 
Hello, I'm pretty new to c++ and was wondering if anyone could help me out! I have to read multiple students data from a file using the for loop and the output ...
[4 replies] Last: I don't really understand the file format because ... Before I get in... (by kbw)
Whats wrong with my code, keep getting errors?
 
void main() { float input1; float input2; // Print request for first number, the read it in. cout << "Enter first number: "; cin << input1; // Print r...
[5 replies] Last: <iostream.h> is not a valid C++ header. It used to be decades ago, b... (by LB)
Why is there no else + loop statements in C++?
 
I find logical occurances all over the place for things like if(condition) else while(condition is true) Yet instead I have to waste time and do If(condition ...
[2 replies] Last: re: if(condition1) else if(condition2) while(condition2) You are ... (by Duthomhas)
by JNW
pointers problems
 
/*************************************************************************/ /* Dear all i am having troubles storing or printing out the value stored*/ /* at ...
[2 replies] Last: you are reading like if it was a 1d array, but is 2d . it is different... (by Ericool)
Need Dev C++ Help
 
How would you write this code using a recursive function? #include <stdio.h> double power(double a, int b); int main() { double x, powr; int n; prin...
[5 replies] Last: #include <stdio.h> double power(double a, unsigned int b); // *** un... (by JLBorges)
implementing lamda syntax
 
I've been staring at the syntax for implementing a lambda for quite a while and I'm hoping that someone can point out what I'm doing wrong. The line that is ...
[8 replies] Last: O. That makes sense. Thank you very much for the help and insight. (by kalistibot)
Finding multiple lowest numbers
 
Im creating a programme to find the lowest paid performer. Below is the function that allows me to carry out this task. How can I improve it to include multipl...
[3 replies] Last: Hi, Just go with this for a minute: Initialise the highestPay and ... (by TheIdeasMan)
Need Help (Election program without array)
 
This is what ive made so far i cant add the total votes and display the names tho :( #include <iostream> #include <list> #include <string> using namespace s...
[4 replies] Last: I don't see arrays, perhaps you refer to vectors? You could use deque,... (by fcantoro)
moving window and resize bottom flickers
 
I am trying to make a kind of popup notification window that slides out of the task bar. At the moment I am only trying to get it to work if the taskbar is on ...
[no replies]
Whats wrong with my code?
 
The following codes are able to run and all functions are working fine except for the maxPay function. My end goal is to find the person with the maxPay but in ...
[3 replies] Last: Just realised the problem with my programme lies in menu 1 which I did... (by windeclipse)
Arithmetic Problem Solve
 
Suppose we have digits 1 2 3 4 5 6 7 8 9 and arithmetic operators +, -, and *. Write a program that finds a formula that evaluates to 100 by inserting operat...
[1 reply] : Double post. And I gave you the hints: http://www.cplusplus.com/forum/... (by ats15)
October 2015 Pages: 1... 89101112... 27
  Archived months: [sep2015] [nov2015]

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