General C++ Programming - April 2011 (Page 29)

Please I need some help here.
 
Hi,I`m a new C++ programmer, and i`m stuck with this error: #include <iostream> #include <string> #include "order.h" #include "date.h" Order::Order(...
[8 replies] Last: There is nothing to be sorry about. Welcome to the forum. (by closed account z05DSL3A)
Conditional operator
 
Please help me and tell the o/p of following program.. int i = 11; i = (11 == i) ? i++ : i--; cout<<"i : "<<i<<endl; o/p is 11 but, as i=11 the co...
[7 replies] Last: @ Grey Wolf and imi Thanks a lot..for the help...let me know more ... (by Suraj9777)
by nogy
can anyone help me with this please im stuck!!!
 
To make telephone numbers easier to remember, some users (such as companies or individuals) use letters to show their telephone number. For example, using lett...
[3 replies] Last: Write a program that prompts the user to enter a telephone number exp... (by kbw)
using vectors to enter sutend details
 
hello i want to add details of student like age and fees. How can i do it using Vectors. i dont know how to use multidimensional vectors. For now i can input ...
[5 replies] Last: Thankyou very much for your help, but i am really not good in c++ so i... (by mansoorazeem)
Convert an array of doubles to float
 
Hello everyone I have a fairly big array of doubles that I wish to convert to float. The problem is that I can't allocate a new float array (there isn't enough...
[1 reply] : That's fine, but not optimal. The problem is that you are abusing the... (by Duthomhas)
Templates as function arguments by reference
 
Hello everybody, I have some trouble with templace structs. What I would like to do is the following : I read values from a settings file (key=value pairs)....
[7 replies] Last: You're absolutely right. Passing the argument as reference will break ... (by dextermagnific)
Modification of Count of Days Program
 
Hi, I have written a working project that takes an integer representing a day of the year and translates it to a string consisting of the month followed by day...
[3 replies] Last: flclempire If you want to help with homework, you need to find a way ... (by kbw)
by vivmen
right behaviour ?
 
i try following code int xc = 10; int * i = &xc; delete i; it works with aCC compiler , but is it valid ? how can i delete stack ?
[4 replies] Last: That's just undefined behavior. That means the program can crash, noth... (by Athar)
by FroDot
very simple code generator example?
 
I would like to attempt to write a very simple code generator. Input would be XML tags, output would be C++. Anyone have a quick reference / URL, example of...
[1 reply] : There are no predefined tags in XML. Just define your own. Did you wa... (by Mathhead200)
not taking in data
 
So after I got my pointers fixed and everything, the simple command of taking an input from the command line does not work. Below, I ask how many nodes, then...
[3 replies] Last: //Java code Object obj; //doesn't create an object obj = new Obje... (by Mathhead200)
Question about inheritance.
 
If I have a class lets call it BT. And class BST inherits BT. And then class AVL inherits class BST. Can AVL use the functionality of BST and BT? And if it can ...
[8 replies] Last: Yes he gave us the compile line to use so it should be working. (by Neb1000)
Double Stack implementation
 
So I'm working on a project that utilizes a double stack. The program will take a line of text from a file and read it in, separating upper and lower case lette...
[1 reply] : Personally, I don't see why you don't just use two separate instances ... (by closed account Lv0f92yv)
file handling problem, please help
 
I have a data file, data.txt 1 0.011070 0.5100 0.4900 1.0211 9 2 11 19 8 7 2 0.021373 0.1000 0.0870 1.1332 8 13 ...
[1 reply] : A good place to start would be this -> http://cplusplus.com/reference/... (by m4ster r0shi)
Need help with functions
 
So here are my requirements for a program - Declare a global variable named x and initialize it to zero (easy) - Declare a local integer variable within mai...
[5 replies] Last: Any loop will work. For loops that are a known length you typically u... (by Disch)
issues with Object pointers, null, 0
 
I know this has been asked many times and answered many times, but I am still very confused. I have plenty of knowledge of Java and I am now trying to pick up ...
[3 replies] Last: holy crap. Im an idiot. Thanks anyway. (by spectrem12)
by Tresky
Friendship Members
 
This entire problem is going to be theoretical. If I tried to use the example that I am experiencing the problem with it would be too long. Problem: I create...
[4 replies] Last: Oh okay I see. Let me try it. (by Tresky)
by rutski
delete this
 
Is it safe to to "delete this" from within a member function? For example, one might want to implement the release() method of a reference counted object as so:...
[5 replies] Last: Perfect guys, thanks. And yeah, I might have mentioned that what I'm ... (by rutski)
A Few Questions
 
So I have a test coming up that I'm kind of worried about. This is the study guide of the material and I put my answers to the problems. I was hoping if anyon...
[1 reply] : 1) Correct 2) Incorrect, they will run the same speed if the libraries... (by firedraco)
Class Templates - BADLY NEED A HELP
 
Hi:) I need a help with finishing my project using class templates. The problem is: I have to write a class Room that represents a room with D=10 numbere...
[5 replies] Last: @crisis025: your teacher need you to use template to create a class "R... (by b2ee)
overloading << and >> operators
 
I am trying to overload these two operations for a class, and I am getting really strange errors. I've looked at a couple guides and I can't find what I am do...
[4 replies] Last: Ahhh, that fixed it! Thank you. Boy, I feel stupid now. Weirdly, I thi... (by paperaeroplane4)
April 2011 Pages: 1... 2728293031... 37
  Archived months: [mar2011] [may2011]

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