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 <strin...
[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--; ...
[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 let...
[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...
[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...
[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 follow...
[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 trans...
[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 compi...
[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 woul...
[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 comm...
[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....
[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 ...
[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 ...
[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 t...
[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...
[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...
[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 impleme...
[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 ...
[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...
[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. ...
[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.