General C++ Programming - December 2010 (Page 20)

a class to describe what is a binary number
 
any one can assist on this? what is there to describe? im kinda stuck here. all i know is: a binary number is simply just 1 and/or 0. <-.. is there sti...
[3 replies] Last: what are you asking is to give a definition of a binary number in a cl... (by yoslick11)
by CLnoob
My array program is spitting out symbols!?!?
 
Hey all, I've been going back and forth to my books for array help; but I need something more to figure this out. While probably simple errors to you guys, ...
[3 replies] Last: K. Thank you both for the input. I'm going to make these changes and... (by CLnoob)
I need Advice to finish my C++ prog.
 
Hello everyone, My Name is Dave.. : )) New to programming in C++. Well I have a program that I need to complete, however I'm having some trouble with my (I...
[4 replies] Last: if statements don't work like that. Also that while loop will loop con... (by yoslick11)
dynamic arrays in cpp(and comparison with matlab)
 
hello, my problem is that i have a code in matlab and i want to rewrite it in cpp in the matlab code i have dynamic arrays with that i mean that too man...
[9 replies] Last: oik thank you very much!! (by vagelis)
template classes deconstructor without knowing type
 
Hi, i've written a class template (varList) that takes one type as a template argument. The class basically allocates a vector of that class. I then have an...
[8 replies] Last: The type erasure technique would work for this. http://www.cplusplu... (by jsmith)
Function BTree
 
please help me complete BTree::RemoveNode(Node*node) to delete a node #pragma once class BTree { private: class Node { public: Node *left,...
[2 replies] Last: Although i haven't understood clearly. thank "Hamsterman" very much... (by tuandt5)
program is working but it does not go back to the main menu
 
Guys, I really really need a hand on this simple problem that I think, for me, is a really really big problem. I'm using the compiler turbo C. I have all the c...
[1 reply] : I do not see where you initialize your loop boundary (numbers), and wh... (by jimc)
vector calculations without floats
 
Hi, Is there any way to perform vector calculations without using floats? I thought it might be possible by scaling up an int by 1000 times before performing...
[12 replies] Last: In general, there is no reason to go through the extra work required... (by jimc)
problem!!!
 
Read the Voting results from the file which contains all the votes of the election happened inside the whole world, it includes let’s say 50 countries, in eve...
[2 replies] Last: i have done this far!!!! #include<iostream> #include<fstream> usi... (by Ali Sher)
binomial distribution
 
hello again, i want to receive the binomial result for n times and probability p how can i do that in cpp??
[1 reply] : you mean C k n * p k * (1-p) n-k ? well, if you can write a funct... (by hamsterman)
FIND MAX AND MINIMUM ( INSERT NODE )
 
I NEED THAT WRITE A C++ CODE TO INSERT NODE INTO BST AND ASLO TO FIND THE MINIMUM AND MAXIMUM IN THE TREE...???
[3 replies] Last: @dnambembe, that's a list and he wanted a binary tree. Though you shou... (by hamsterman)
by Zaixu
Run-Time Check Failure #2 - Stack around the variable.
 
I keep getting this error. "Run-Time Check Failure #2 - Stack around the variable 'temperatureArray' was corrupted." But i have another one programmed nearly li...
[1 reply] : Both versions are incorrect. char pulsDataArray =""; creates a char ... (by Athar)
using regular expression to change to uppercase, how to?
 
I want to use regular expression to change some string to its standard, for example: " tran dinh thang " -> "Tran Dinh Thang" It means, I mu...
[4 replies] Last: i hope this code helps you. i try running it is ok good luck. ... (by tuandt5)
Problem with allocation
 
I got this program about farm: CCow.h class CBo : public CAnimal { public: virtual void Input(); virtual void Output(); virtual ~CCow(); ...
[6 replies] Last: I think about a vector too, but I don't know how to put it in my code.... (by nndung179)
Design Problem
 
I'm having some trouble with design at the moment. I guess one of my questions is: Can a problem always be solved using object oriented design? Let me explain t...
[5 replies] Last: I'm happy to help =) (by Disch)
What am I supposed to return here?
 
Hey all. Here is the declaration of my thread function: unsigned __stdcall aquireData(void * param); I'm not returning anything from the function, but t...
[3 replies] Last: I guess I should chime in here... unsigned is just a shorter way ... (by Disch)
Still Need Advice : (
 
I've changed it to what you see below. It's still not working.. help : ( Thanks #include <iostream> using namespace std; // Arrays & Functions Dec...
[3 replies] Last: Aside the infinite loop that ne555 pointed out if (k =0; k <10; k =k... (by Thumper)
Using copy constructor for overload operator=
 
I am working on a overlaoding the operator=. Can anyone tell me why this doesn't work if my copy constructor works fine? template <class T> Stack<T> Stac...
[1 reply] : Your assignment operator doesn't change 'this'. Remember that 'this' ... (by Disch)
by ag2013
Test
 
/* Project #6 CSCE 206 */ /* CSCE 206 - Project 6 Arithmetic operations on fractions To use this program you need to provide input ...
[12 replies] Last: well if you have any luck with the project keep me posted and ill do t... (by lilserna27)
counting values in array
 
I have to write a program that generates 100 random integers between 0 and 9 stored into an array. Pass the array 10 different times to a function that traverse...
[4 replies] Last: Then you should mark this thread as solved. (by Athar)
December 2010 Pages: 1... 1819202122... 24
  Archived months: [nov2010] [jan2011]

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