Beginners - November 2011 (Page 7)

Plz explain this pitfall
 
Seriously,this is from my book : ITERATORS AND REMOVING ELEMENTS Adding or removing an element to or from a container can affect other iterators. In genera...
[4 replies] Last: Thank you ! (by hentaiw)
Please, please please help!
 
I need to create a c++ program that asks for ten numbers and outputs the minimum, maximum, average and sum of the numbers. I need to use basic basic coding, so ...
[9 replies] Last: So here's what you do. In the loop where you're taking input, store th... (by Caprico)
Query as I have heard of.
 
I have a structure that holds name, age and other information for different student of a class in a array which holds students. * now i want the user to ente...
[1 reply] : What exactly is the user entering? Is he entering a string as his quer... (by Caprico)
error C2062: type 'void' unexpected
 
Hey guys, I looked around a bit on google for a way to fix this error, but came up with nothing so I figured I'd ask some people that know what they're talking ...
[11 replies] Last: Ooooh I see what I did wrong. Fixed it and it works. Thanks a ton dud... (by Demesthones)
never mind.
 
Never mind
[no replies]
Sorting by comparing characters problem
 
My program accept the name, grade, age and so on of the students and stores them in a structure called student. Students are in a array named array names grad...
[16 replies] Last: for makesmall, do this: { if (chr >= 'A' && chr <= 'Z') ... (by Caprico)
Please help if you can! (1,2)
 
First, I would like to introduce myself. I am an absolute Beginner in C++, and I am taking an Online Intro Course to learn it. I have a background in Computer A...
[24 replies] Last: Actually, abiyek, I have been working on this since I read Moschops la... (by emets31)
Intermittent Error in Function
 
I've spent the last 6 hours trying to trace down the problem here, with no luck. This is for an "Intro to C++" class. The function randomly selects a quote fro...
[6 replies] Last: I'm looking forward to trying it, thanks. (by AARRGGHHH)
decryption program - error
 
I'm writing a program to implement a simple encryption(shift of 3 units). The encrypt function works perfectly , however the decrypt is not decrypting the encry...
[11 replies] Last: No worries! Jim (by jim80y)
Genetic algorithm in C++
 
I am beginner of C++. I want to use genetic algorithm using C++ to solve Scheduling problems. But I am very much confused to start with representing genetic alg...
[no replies]
Approximate-equal-to value
 
Hey everyone. I'm new here so please excuse me if I'm posting this in the wrong place. I was wondering if there was an "approximately equal to" operator in C++....
[2 replies] Last: No there isn't, and the reason is simply that there is no absolute def... (by ausairman)
by jlake
sorting names and numbers
 
im trying to figure out how to sort a list of names and phone numbers in alphabetical order. the numbers are already sorted but the names need to be put in alph...
[1 reply] : If you know how to use arrays this should help. http://www.learncpp.... (by kidd106)
Error message "name lookup of 't' changed for ISO 'for' scoping"??
 
Here is the code that causes it: for (int t = _T_START; t != _T_END; t++) { // error cout <<t; } where _T_START and _T_END are #defined. removin...
[4 replies] Last: This is one of the reasons why you should prefer const for constants... (by Peter87)
Destructing objects using base class pointer
 
Hello I want to know if it it safe to destroy an object using a pointer of its base class type, for example, would this free all memory? class a1 { ...
[5 replies] Last: Ok then, thanks for your time (by ShiroAisu)
by doilin
Key Combinations
 
How do you do key combinations in C++? I know that backspace is '\b' and enter is '\r', but how would you go with key combinations using 'alt' or 'Ctrl'?
[1 reply] : There is no standard way to handle key presses. Have a look in the man... (by Peter87)
Trouble with classes and inheritance
 
I'm currently a DeVry University student studying Game Simulation and Programming and my assignment, for this week, has me stumped. I have a number of questions...
[4 replies] Last: I realized and fixed that mistake. I fixed it in the above but my next... (by Walter Butler)
by jls36
Hash Table
 
Im creating a Hash Table with chaining with an array of STL list(s). My getNext function works but after calling the first function then getNext it gives me the...
[no replies]
by Aetoc
My Program
 
Well this is one of the first few programs i have tried to write and i was wondering what's wrong with it, i know it may be a very obvious problem but i'm new t...
[3 replies] Last: Oh i see now, much appreciated. (by Aetoc)
by Onatu
"Ant with food on a board" Program Issue
 
So I've been working on this program in class for some time, adding to it little by little for every week's assignment (we'll be adding linked lists soon enough...
[1 reply] : Character limit was reached, so this is to add on: Header Document: ... (by Onatu)
Which is faster?
 
My friend's friend made a function for inputing unsigned integers. It's faster than scanf and much faster than cin. But I made a small change and I think it's a...
[6 replies] Last: @airman9519 Yes, helios is right - I should have made it clear that th... (by jim80y)
November 2011 Pages: 1... 56789... 65
  Archived months: [oct2011] [dec2011]

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