Beginners - October 2010 (Page 25)

How this is working?
 
Hello to everyone ,i found the following code somewhere and i can understant how this is working? ...
[3 replies] Last: Ok got it,thanks!!! (by kikirikou)
by ZondaR
getline command
 
The second getline in my code doesn't seem to be working. The first get line reads the input fine bu...
[2 replies] Last: You are mixing formatted (<<) and unformatted (getline) input. Don't d... (by Duthomhas)
class instance error
 
hi everybody; I have a prob. with declaring a class instance can someone get me help here is the...
[no replies]
by ARWA
the base class is not found!
 
hi every one im working with some exersies which include inheretence every thing is fine except tha...
[10 replies] Last: ok ^_^ thanks its working now.. (by ARWA)
The case of the mysterious disappearing stringstream...
 
I'm getting a very strange output from a function of mine. The idea is for it to format string infor...
[no replies]
Getting the next element in a set without incrementing the iterator?
 
Hi all. I'm trying to do something like this: std::set<int> mySet; //********* //insert som...
[5 replies] Last: Does not first++ CHANGE what first points to? No, a correct impleme... (by Athar)
binary files
 
Hi guys, I'm feeling confused on random access binary files. When creating a random access binar...
[3 replies] Last: Actually for binary files, write byte by byte to the file in binary wr... (by sohguanh)
Simple class program
 
I'm having a bit of trouble here with this class program. I've tried inputting the prototype for the...
[13 replies] Last: Also line 18. t1.mileage is a function not a variable. If you want it... (by MaxT)
how do you use char for multiple charector input
 
i've been trieng to use char for multiple charector input, but it wont work! someone please help
[6 replies] Last: I think that was the problem though, 2 characters were needed for his ... (by AlphaBravo)
by ender2
STL List insertion and retrieval?
 
Without getting too in depth, I’m reading lines from a file and creating the object “com” whic...
[1 reply] : committeeClass com; ... while (!fil.eof()) { ... p = committee... (by sohguanh)
Why this prints Garbage?
 
I'm going over an exercise from a book, which basically says the following: Write a program that...
[4 replies] Last: However I have one more doubt.. Is the delete statement delete *iter;... (by sohguanh)
by Yitzu
std::cin.get();
 
I just made a little program and to stop it before ending it i used the code system ("PAUSE"); and i...
[1 reply] : Try this instead; cin.ignore().get(); That always worked for m... (by AlphaBravo)
countdown();
 
Im trying to create a countdown function after I drew the numbers using DrawLine from 9 to 0. The nu...
[no replies]
simple/short code wont work (char and if)
 
#include <iostream> #include <math.h> #include <string> using namespace std; int main() { c...
[2 replies] Last: if same string strcmpt(string1,string2)==0 and else strcmpt(stri... (by dandy)
What am I doing wrong?
 
I am trying to write a simple program that asks a user to enter a year, and the program will take th...
[1 reply] : #include <cstdio> #include <cstdlib> void getyear(int y); int ma... (by dandy)
by ToniAz
Inputing into a double vector
 
Hello everyone! I have posted something on this yesterday, I was hoping that finding the flow in ...
[19 replies] Last: Dear Galik, The program finally worked smoothly, and correctly ...... (by ToniAz)
Do you have any methods to speed up the dynamic array?
 
I am using the library of boost to create a 2D dimensions array and compare about their speed ...
[4 replies] Last: Thanks a lot, maybe express edition never do the totally optimizatio... (by stereoMatching)
How do you round numbers?
 
I've been writing a program that looks through a set of data and chooses the value that is the highe...
[2 replies] Last: That truncates. 32.5 --> (int)32, not 33. I wrote an article on thi... (by Duthomhas)
by zimz
if statement being skipped after validation
 
Hi Below is a copy of my code for a homework assignment. I need to validate the input of hours. ...
[1 reply] : Much of what you did was repeated. For instance, inside each of the ca... (by AlphaBravo)
multi character char?
 
Hi everyone! Im new here to the forums so im gonna give this a try. Im taking an intro class to c+...
[9 replies] Last: Yes, I agree that switch and case are cleaner -- which is why I gave y... (by Duthomhas)
October 2010 Pages: 1... 2324252627... 42
  Archived months: [sep2010] [nov2010]

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