General C++ Programming - August 2013 (Page 17)

Need Help For Understanding C++ Pointer Usage
 
I know what are pointer's and how to you them but there is one point i am not able to understand. Below is the example code I understand everything in the be...
[3 replies] Last: Thanks ne555 and Nafnlaus, for both of you for replying to this questi... (by Muhammad Faizan Hanif)
generic stack
 
I'm trying to create a generic stack with the help of union. I get some kind of error with "some" not defined!! #include<iostream> using namespace std; ...
[5 replies] Last: I think you meant something as class stack { int size; int top; ... (by vlad from moscow)
by n8c
Friend class from separate headers
 
Hello world! I was wondering if when one class from one header declares another class from a different header as a friend does the class prototype go befor o...
[4 replies] Last: But can you say if the forward declaration should come befor or after... (by andywestken)
by cniper
binary calculator problem
 
i am writing a program for binary calculator. here is my code: #include<iostream> #include<string> using namespace std; string decimalToBinary(unsigned c...
[8 replies] Last: okay thanks a lot. here is my final code: #include<iostream> #includ... (by cniper)
by frnick
C++
 
Hi, I need some help with this understanding. Write the following funtion that eturns the maximum value among the first n elements of the given array. flo...
[2 replies] Last: They want just what they said. Look at the first n elements. Find th... (by Nafnlaus)
Zero padding
 
Hi i want a C program to convert 2.3 to 0002.3.Please give me any idae.Any in built function is there for this conversion?
[10 replies] Last: It works because he's (erroneously) incrementing pBuf to step past the... (by kbw)
by cjj
policy class
 
practice how to make policy class. Homedepot (HD) hires two furniture factories: ChineseFurnitureFactory and SpanishFurnitureFactory to make doors and floor...
[4 replies] Last: Yes, thanks for the link. In the link, inheritance is used between th... (by cjj)
dictionary project in c++ .. need help asap !
 
i am currently in class 12th. i am supposed to make my c++ project on dictionary. basically datafile handling is to be used in it. can anyon help me in making i...
[2 replies] Last: What exactly are you going to do. Is it like you search for a word and... (by MrTrollFace)
C++ program for a School Project
 
Hi, I am in high school and this is my last year. We have been told to create a C++ program to be submitted as an annual project. Now I want to make something u...
[4 replies] Last: [quote=MrTrollFace]I've already made one which destroys the computer b... (by closed account N36fSL3A)
How to start?
 
https://icpcarchive.ecs.baylor.edu/external/20/2029.pdf 1. How to write a code to describe the adjacent? its all different with different side length
[2 replies] Last: is that what you're asking ? I don't think so. I think he's asking... (by ajh32)
by u1234
hand detection 3d hand
 
Hello I have a hand in c + + code detection. But I want him detecterd my hand and he will display a 3d model of my hand. And he also sees when I move a finger...
[6 replies] Last: You haven't even told us what the problem is. Okay we know what you wa... (by qZanity)
a bundled function as template parameter
 
I am trying to template 2 function pointers typedef float (*AnimationFunc)( float ); float Linear( float p ){ return p; } float InverseLinear( float p...
[6 replies] Last: A function object is a bit confusing (~_~) template< typename T > T... (by rmxhaha)
Adding content to window using ncurses
 
Hi all! I'm makeing a card game with ncurses. I have all the card and player objects in order but i'm stuck trying to get the gui to work. I'm using multi...
[3 replies] Last: Why declare them as a dynamiclly allocated memory when you can do it a... (by rmxhaha)
Towers of hanoi iterative solution C++
 
I created an iterative solution for towers of hanoi problem, i want to know if can i do simpler my code, without queues, arrays or vectors. There are not much ...
[no replies]
I need to manipulate bits of all types for storing
 
I need a translate (in both directions) all primitive types, into char (will be stored in string) I understand how to manipulate integral types with bits an...
[7 replies] Last: I'm sure it will on Windows, because from what I know, Windows is alwa... (by S G H)
recursion! help!
 
hey :) I've to use recoursion function that return if the string has a same letters: for example: - fff = true - fFf = false I did this b...
[3 replies] Last: It seems I did not understand you correctly. You want to check that al... (by vlad from moscow)
problem with class compile
 
I have created these classes and used code::block to compile them but there is a "undefined reference Rectangle::setWid()" "undefined reference Rectangle::setLe...
[3 replies] Last: You have no implementation for Rectangle::getArea(). That would you w... (by AbstractionAnon)
Big Integer Implementation
 
I was trying to implement Big Integer Implementation. I wanted to start with the basic operation of addition. I am having some problems with operator overloadin...
[9 replies] Last: Thanks a lot guys. I was able to modify it further and include the abo... (by funprogrammer)
Could not find a match
 
this source code work well with visual studio 2008 and compiled but with visual studio 2010 and upper or c++builder xe4 not work and not compiled. please help ...
[6 replies] Last: very very tanks work fine and compiled with c++ 2012 and c++builder x... (by vahidch)
by Hertz
Setting up SFML with Eclipse CDT
 
I am having trouble setting up SFML 2.1 to run with the eclipse IDE for c++ development. I use MinGW for my compiler. When I link my include folder, lib fol...
[2 replies] Last: Yes, that was my problem, thanks so much for the help. (by Hertz)
August 2013 Pages: 1... 1516171819... 28
  Archived months: [jul2013] [sep2013]

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