General C++ Programming - February 2010 (Page 8)

Recursion
 
Can I get some sample program codes on Recursion . Thank U
[2 replies] Last: i nt f (int n) {if(n<2)return n; else return f(n-1)+ f(n-2); } BT... (by buffbill)
How to have an array with negative indices ?
 
Hi it may be a trivial question for experts but I am in trouble to implement it. My question is fo...
[2 replies] Last: EDIT: sorry helios you got there before me. C++ identifies its array ... (by buffbill)
Finding the digits within a number
 
For example, if I have the number 142, how do I know it contains the digit 1, 4, and 2? So far, I...
[1 reply] : yeah try getting the remainder 142 % 10 = 2 142 / 10 = 14 (integer... (by pyschoder)
What C++ books are you using... (1,2)
 
May I know the author and the book title you are using in C++ if there's any. I will buy a C++ bo...
[28 replies] Last: Microsoft Visual C++ windows applications by example stefan bjorn... (by olredixsis)
Overloading typecasts
 
Hello everyone! I am currently writing a program that adds and subtracts vectors, by overloading the...
[13 replies] Last: Yea thanks for all your help! (by ohsnap1319)
Extract all particular strings by splitting a string
 
Hi All I am new to c++ in my work i want to grab a particular string in a stream of string like exam...
[5 replies] Last: hi farooq, sorry was busy so dint replied.Anyways you can use the sam... (by somshekhar)
Arctan formula
 
Does anyone know how to code the arctan of a number in C++??
[2 replies] Last: thanks! (by ohsnap1319)
Operator Overloading
 
Hello everyone! I am currently writing some code in order to add and subtract vectors. However, I...
[2 replies] Last: thanks for the help! (by ohsnap1319)
AVL trees
 
Can anyone post me C++ implementation of AVL tress with insert and delete operation in C++ without u...
[1 reply] : hmmm...no work in progress....begging for code.....pressed for time...... (by closed account 1yR4jE8b)
pseudocode that merges two sorted lists
 
Can someone please write me pseudocode that merges two sorted lists into a new third sorted list by ...
[4 replies] Last: haha thanks, me too! (by kyleg033)
Inventory PRoject
 
Well For my fundamentals of programming we have to do a Fantasy RPG invetory FlowChart,Pseudocode ...
[7 replies] Last: This is more or less C programming style. I suggest you to use C++ st... (by olredixsis)
C++ Doubt
 
Hi i have weird doubt. My assingment is C++ program to insert and delete elements in Binary Search T...
[5 replies] Last: What do you mean you can't display the pipes? It looked like you were ... (by Zhuge)
by NGen
A Virtual Static Member
 
I have a system where I have a class called BObj which is inherited by multiple other classes. These...
[3 replies] Last: No way around it. Each derived class needs to have its own object, so... (by Disch)
by rvnath
how to implement thread-safe destructor for reference counted smart pointer
 
Hi friends, For my project, I am implementing a class which is reference counted. - The instance...
[1 reply] : Something like this? Mutex* mutex = your_ptr->mutex; LockMute... (by Disch)
3D Graphics with C++
 
I'm working on a project using OpenGL and QT with some fellow students. We are designing a game. I'm...
[4 replies] Last: If Qt allows you to draw triangles individually, you would get the dat... (by NGen)
Multiple std::list or std::vector and how to print them out with printf
 
Hello cpluscplus First time writing a question on this site, :) I will try and illustrate my q...
[3 replies] Last: Thank you, Disch Your solution and excellent code was spot on :) ... (by dbstudio)
Relocatable object code.
 
Can someone explain me what do we exactly mean by relocatable object code ? I know that it is used b...
[1 reply] : When code is compiled and linked into a runnable unit, addresses are a... (by kbw)
Many macro levels
 
I need to write something like that in VS2008 C++ Compiler #define g <iostream> #include g so...
[6 replies] Last: How about using namespaces rather than changing the names of the class... (by moorecm)
using 3rd party library in C++
 
hey everyone! i was askd to develop a program to add , subtract, Divide and multiple two numbers but...
[3 replies] Last: well its like a homework question so we can learn how to work on using... (by neverdies1991)
constructor overloading and new operator
 
hello, i'd like to implement an memory management with a wrapper-reference class, that counts refer...
[4 replies] Last: well, i got it: thanks for the hint firedraco! reference(); ... (by tecuhtli)
February 2010 Pages: 1... 678910... 21
  Archived months: [jan2010] [mar2010]

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