General C++ Programming - October 2011 (Page 9)

by DeJunk
Else if problem! Help!
 
#include <cstdlib> #include <iostream> #include <cmath> #include <string> using namespace std...
[2 replies] Last: Worked like a charm! Thanks! (by DeJunk)
stochastic differential eqn in c++
 
Dear all, I have a simple stochastic differential eqn that I am working with: dx/dt = (1/gamma...
[3 replies] Last: Going back to my original message I have now attempted to write some p... (by qwertyu1234)
Need some help plz...
 
I have to write a program that allows users to enter a number that is greater than 3 and less than o...
[3 replies] Last: I figured it out... My head was clearly stuck firmly somewhere when I ... (by Loganash)
Simple pthreads question
 
I'm trying to parallelize a simple task using pthreads but I'm not entirely sure how to do the imple...
[1 reply] : (Queue is a thread-safe queue type.) void thread(Queue<job> *q){ ... (by helios)
by ascii
Floating Point Exception
 
Hey, can anyone tell me why I'm getting a floating point exception in the following C program? The ...
[6 replies] Last: Hmm... What exactly is controlling the recursion here? For example, if... (by helios)
Quicksort
 
Hi everybody, i just need some help with the quicksort program. I have to write a quicksort program ...
[6 replies] Last: Seems your new design is worse than your old design because 2 more ove... (by EricDu)
Creating a 2 dimensional Vector and accessing it
 
I've been trying to make a 2-d vector that would be a 10x10 and i could fill the vector(called nest)...
[5 replies] Last: For example, if you define "vector<MyClass> aaa(2);", then aaa will co... (by EricDu)
Need Advice in File Handling
 
Hi. Recently I got a Task by my Teacher. He created a Simple PDF file named "myfile.pdf" and then pr...
[no replies]
Help writing code
 
I need a code that allows the user to specify the outer loop's ending value and increment value. the...
[6 replies] Last: Do you know how for loops work? for( initialize; loop_condition;... (by Disch)
Wirting/executing file
 
I want to make a program that shuts down my computer after a user-specified alloted time. I can't f...
[8 replies] Last: After returning from your function calls in your main() function, you ... (by Computergeek01)
by Pyrius
How would I insert a 2D array into a std::vector?
 
The reason I'm using a std::vector of 2D arrays instead of a 3D vector is that the 2D array is a gri...
[2 replies] Last: Hm, too bad there isn't an easier way. At least it's possible, though.... (by Pyrius)
Passing values of a two dimensional vector
 
I want to be able to have a function which passes the value of the vector, one column at a time. In ...
[no replies]
by proLab
Program class inproper use!?
 
fPlayers .Player(tmp1Name, 'X'); this line is erroring... i have all the appropriate header files...
[7 replies] Last: Another option: Player fPlayers = { Player(tmp1Name, 'X'),... (by Disch)
Palindrome without the usage of strings
 
This is code to find a palindrome within 10 tries by reversing the initial input and adding it to it...
[no replies]
by ToniAz
Header/Static Lib/Dynamic Lib Dilemma
 
Hello Everyone! It's about time I started a fresh thread about this, it's been troubling me. Can ...
[4 replies] Last: @Athar Could you suggest a reading that would clear all the ambigui... (by ToniAz)
conversion programm
 
im having trouble with the hex 2 dec conversion ... all the others work heres my code // bianar...
[no replies]
Take a file with numbers and output the average?
 
Hi, I'm working on a practice project where I have to take the input from the files type double a...
[5 replies] Last: [quote=Algorithms]I have to take the input from the files type double ... (by Mathhead200)
HOW TO INSERT A VALUE IN AN ARRAY
 
I need to insert a value in an already filled array, say index array . I've tried using two for loop...
[5 replies] Last: Then Moschops' solution is perfect for your needs! (by Gaminic)
Bool Array(Hashing)
 
Hey, I've got a code that calculates the amount of unique moves in a game of naughts & crosses but I...
[4 replies] Last: If bd is declared as an int , then 'bd' is a pointer, not an int. b... (by Gaminic)
Error: A nonstatic member reference must be relative to a specific object
 
That is what I get whenever I call any function within the SI class. what am I doing wrong? Here is ...
[4 replies] Last: Thanks! It worked! (by scrat101)
October 2011 Pages: 1... 7891011... 36
  Archived months: [sep2011] [nov2011]

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