Beginners - July 2011 (Page 46)

Class Destructors
 
I was a bit doubtful about how do Destructors work. Can someone please explain what do they actually do.
[2 replies] Last: Also worth mentioning is that Destructors are called at the end of the... (by Computergeek01)
issues in reading a file
 
hi, the input file string is as follows : x ( 21 22 3 4); its assigning a = ' ' instead o...
[2 replies] Last: i'm currently doing it using the extraction operator (>>) ... (by raffu2129)
Using ! to evaluate boolan function results
 
I'm stuck on a function call: bool confirmThis(string response); int main() string response = ""; cout << "Please enter a number: "; getline(cin, re...
[2 replies] Last: Thanks! That worked. (by joatmon)
Iterating through a map with possible deletions?
 
Hey everyone, If I'm looping through all the elements in the map, and at a certain spot I need to stop and remove the element then continue, what's the best ...
[11 replies] Last: OH WOOPS. Wow I'm dumb. Yea I did it your way now and it works great. ... (by zeromeus)
cout << ?
 
i cant seem to get any form of cout statement to work what am i doing wrong here is my code im using bloodshed dev c++ if i take the cout and cin statements out...
[2 replies] Last: ty (by sqoobie)
please guide me as to why this code isn't workong
 
here's the code: #include<iostream> #include<string.h> #include<fstream> using namespace std; int main() { const int size = 50; char string ; cout<<...
[2 replies] Last: okay the problem with this is that whenever you enter a string ...and ... (by shekhartanwar)
Guessing game - setting levels
 
Hi! i was trying to write a guessing game and i had more or less finished it. but then i decided that i need an option for the user to choose a difficulty level...
[2 replies] Last: great! it worked! thanks :) will have to look into this topic because... (by KrixisLV)
If Statement problem
 
I have been programming for 2 days i have run in too a problem that i can not solve. It has put my learning on halt for hours. I have an if statement and i am g...
[3 replies] Last: also, nobody wants to type their choice as text, it's better to put ju... (by muratagenc)
by RAshy
Help With Caesar Cipher!
 
Hi, I have been working on this program all day. It encrypts strings of 3 letters but thats it. And when I reach x it starts to give symbols instead of starting...
[3 replies] Last: thanks for the help! (by RAshy)
Clearing a String
 
I have a chunk of code I want to repeat three times dependent on a (y or n), but it's giving me errors because i didn't tell it to empty out the strings at the ...
[4 replies] Last: OP, you should put cin.ignore(500, '\n'); right after each call to ... (by shacktar)
Getting a resource
 
Hey Guys ... I am trying to include a resource to my program but unfortunately I couldn't here is the code... hRsrc = FindResource(NULL, MAKEINTRESOU...
[3 replies] Last: any help ?? (by the storm)
by eidge
#include file -> Multiple definitions
 
I've created a Fraction class and it works fine. Then I was trying to move it to a diferent file, so that I could use whenever I needed it. This is the class ...
[10 replies] Last: I heard that a new standard is coming out, so I'm waiting to buy a new... (by eidge)
Polymorphism
 
I read the tutorial on polymorphism in this site. But I could imagine nothing that would actually become easier if I used Polymorphism. So what is the point i...
[3 replies] Last: one more... lets say there existed two classes... #include <iostrea... (by writetonsharma)
How to write and read to/from a text file simultaneosly ?? (1,2)
 
Hi everybody! I i'm trying to open a file (NEWFILE).Then i have to get the lines from two other files (FILE1 and FILE2) and write this lines on NEWFILE. After ...
[21 replies] Last: Thank you writetonsharma! Now it's almost done :) (by alendrex)
running total help
 
Having alot of trouble with part C of my project. It says Calculate montly interest. monthly int is annual int div by 12. Then Multiply monthly int by balance. ...
[4 replies] Last: I finally got it Mos and thanks for your help. The biggest problem im ... (by KingDreGo)
by elmay4
Pass-by-reference
 
For my C++ homework I am asked the following questions, all of which I am absolutely clueless about: 1. Complete the mySum1 function that takes two intege...
[9 replies] Last: if you can't do the assignment, what are you gonna do with the midterm... (by muratagenc)
carriage return causing cout not to display
 
Hi everyone, I am running ubuntu with code::blocks, and am trying to create an indicator that tells me about the progress of my function: if (last_disp != ti...
[4 replies] Last: fyi: it works on my computer.... #include <iostream> using namespac... (by muratagenc)
Random Number Generation
 
Hi all. I want to make my program to generate a random number and then add that number to a variable. Could you show me how it's done if I want my number to be ...
[4 replies] Last: could you explain those long int? long int 'what ever you want'... (by KrixisLV)
Multi-dimensional null-character arrays
 
I wanted to know if you can have a multi-dimensional null-character array and how you would go about assigning strings to them. i know how to convert null-chara...
[2 replies] Last: Thank you L B. that was helpful :) (by Affinity4 Code)
by adn258
Creating images on your computer?
 
Ok so I think people misunderstand the question I'm about to ask and maybe it's not possible. So I understand input output for creating text files. In other w...
[16 replies] Last: It's probably the way I laid out the steps. It was half-English/half-p... (by shacktar)
July 2011 Pages: 1... 4445464748... 54
  Archived months: [jun2011] [aug2011]

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