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 requires all strings and doubles within the array be initialize...
[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 last reference? Or other simply memory leaking example with m...
[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 in the variables. If its a letter it goes onto one stack and...
[no replies]
Abstract class,interface
 
Hello. I have some problem. I have interface with 2 function class Convert{ virtual string ob_to_str(Convert *)=0; virtual Convert* str_to_ob(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 yearly salaries of an employee. Here's what i have so far. ...
[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 file. The two input files contain integers in any order. Eachi...
[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 1224.56 420.32 -3.54 -87.56 500.00 -87.25 2...
[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 ticketing system ( I can add own logo ) which includes: Event Nam...
[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 myclass{ public: myclass(); ~myclass(); double & opera...
[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: //other codes virtual void ShowData(){} } class Electronic...
[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 dont care if he is pro or noob bu i need one. :D (lates...
[no replies]
ternaru operator, ostream
 
Hi. How does the C++ compiler evaluate int i=-1; cout<<(i<0)?getch():getch(); ostream_obj?getch():getch(); ?Thanks in advance!
[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{ //Абстрактный класс public:virtual void pr...
[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 long. It contains lots of functions. (About 100) I always...
[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: ctor, copy ctor, three member functions. What does the co...
[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 the program ignores my or statements. When I just type if...
[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 converting functions to and from the "one parameter per line" style...
[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 tutorials. But, I'm afraid my code is a mess. So many errors...
[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 (vertexes) with input and output ports. Each ouput port could ...
[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.