General C++ Programming - November 2012 (Page 28)

Initializing a structure array
 
Hello all, this is my first post and I am new to C++ so please be gentle, lol. The assignment req...
[5 replies] Last: Anytime! Constructors are functions you define in a struct or class t... (by Thumper)
Memory leak then releasing memory
 
Hello, maybe someone could to say example of memory leak where is releasing memory before removing l...
[4 replies] Last: Hey, I'm all about the fun. All. About. It. (by Moschops)
Stacks and Precedence
 
Im having trouble wrapping my head around this concept. My current mindset is have a string to read ...
[no replies]
Abstract class,interface
 
Hello. I have some problem. I have interface with 2 function class Convert{ virtual string ...
[2 replies] Last: struct Object { Object(std::string s) { //instantiate... (by LB)
Need help with this assisgnment
 
The instructions are for me to develop a program that calculates the hourly, weekly, monthly and yea...
[2 replies] Last: Thank you for the reply and the Input as said on my paper "The input w... (by a411411c)
Using I/O Streams and Arrays.
 
Write a program that: 1. Ask the user for names of the two iput files and a name of an output fi...
[2 replies] Last: #include <iostream> #include <cmath> #include <cstdlib> #include <fstr... (by Arthur13)
by abera1
he**p read file from data and add
 
my assignment is to read transaction and add deposit and withdrowal and provide closing statement 1...
[1 reply] : also how cout<<dposit;//add positive num cout<<withdrowal;add just ne... (by abera1)
Help Needed!! Ticketing System
 
Heya, I was wondering whether anyone would be able to make a script for me? I need to make a ticket...
[2 replies] Last: Put this in the jobs forum. You're not going to get that much work do... (by cnoeval)
by fil
"no match for 'operator='", even if it is there
 
Dear all, I have a strange problem that I don't figure out. myclass is the following: class m...
[5 replies] Last: zombie, thanks. copy paste problem (by fil)
by yauri
Cannot call child's method
 
I have 1 parent (Item) and 3 child classes (Electronic, Book, Other) class Item{ public: //ot...
[8 replies] Last: You're welcome :) (by MikeyBoy)
by skarla
sdl work
 
Is anyone interested to work together with me in SDL? I am making games with it. I need a mate. I...
[no replies]
ternaru operator, ostream
 
Hi. How does the C++ compiler evaluate int i=-1; cout<<(i<0)?getch():getch(); ostream_obj?getch...
[6 replies] Last: It is interesting to note that before the C++ 2011 there is no convers... (by vlad from moscow)
Polimorphic function
 
Hi! I need to create Polimorphic function which takes abstract class as argument. class Abstract{...
[5 replies] Last: i understood. it is my bag=) i must write print(&a) Thank you! (by Kostya Khuta)
Multiple calls !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
Hi and I got trouble about my class. No problem, no crash errors, but code style. Maybe it's too ...
[8 replies] Last: Oh. So many answer. Thanks everyone who replied me! About unusual id... (by Imadatobanisa)
Classes and instances
 
Hello! When I create a class , lets say Person which includes: private: Id and name. public: ...
[5 replies] Last: Got it. thank you very much. (by evolver)
How can this be achieved?
 
struct atom{unsigned char hex : 4;}; An ideas? I want an array of 4 bits?
[5 replies] Last: @Jackson Marie you didn't get the bit operations at all. Unfortunatel... (by coder777)
Help with Or statements in If loop
 
Hi, I am doing a pig latin converting program. I'm trying to check for vowels, but for some reason t...
[2 replies] Last: IdeasMan is correct. In more detail, what you are doing in your origi... (by MikeyBoy)
by konan
Auto-formatting C/C++ code...
 
I am in the process of refactoring a large project, and one problem that seems to come up is convert...
[6 replies] Last: Checkout gnu indent with the bfda flag http://www.gnu.org/software/ind... (by Vick)
by noo1
my first attempt at writing code using classes - please help (1,2)
 
This is my very first attempt at using classes. I've read the primer chapters and several online tu...
[32 replies] Last: @noo1 I forgot to mention there is a red herring in the banking code ... (by TheIdeasMan)
BGL graph
 
Hi! I'm trying to create some specific structure with Boost Graph Library. I need to have nodes (v...
[1 reply] : Look at the visitor concept: http://www.boost.org/doc/libs/1_52_0/lib... (by coder777)
November 2012 Pages: 1... 2627282930... 51
  Archived months: [oct2012] [dec2012]

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