Beginners - September 2008 (Page 5)

sorted and shuffled vectors
 
hi i"m new to c++ and became a program to insert some stuff. there is a class called Cluster those clusters appear mostly as vector<Cluster> if i define ...
[2 replies] Last: thanks a lot. i'll try this out and see how far i can get. (by kohline)
I get about 100 errors when i compile this program
 
#include <iostream> #include "rational.h" using namespace std; #ifndef MIXEDNUMBER #define MIXEDNUMBER class MixedNumber{ private: int left;...
[1 reply] : I think it would be best if you posted the errors, or at least used an... (by helios)
Ok. I don't understand why this quits!
 
I am writing a program just for fun, that you have to know the word "pi" in order to be able to close the program while it is running. I got the code running bu...
[5 replies] Last: Thank you! The Sleep formula is quite helpful! And yes that would make... (by spy4hearts)
Strange thing whit for loop...
 
There is the strangest thing happening on this piece of code... #include <iostream> #include <vector> using namespace std; vector<int>deck; int main...
[2 replies] Last: Oooh. Thanks I made to variables one for the push_back and another for... (by ccsdude)
Bizarre problem with goto and do/while loop
 
This is an extract from my code: Test: cout<<endl; cout<<" Enter the Host Team : "<<endl; cin.getline(a,29); cout<<" Enter the Away Team : "<<en...
[1 reply] : It's reading the newline from when you type "Y" and press ENTER. You ... (by jsmith)
Writing a card program without arrays?
 
Hey everyone, So looking through my book and going over some exercises to prepare me for the next test, I came across a problem that I have no idea how to do...
[8 replies] Last: What exactly is in your case the definition of an array? Is a string a... (by jmc)
paint program etc
 
Okay I've just on started learning java programming.. i know this forum isnt about java.... anyway after i've learnt java programming i will be moving onto c++ ...
[5 replies] Last: As I said you can make (almost) everything with C++. Almost? You... (by Zaita)
timer/counter
 
hi, i want to use a timer in my program that you can set on a certain time and that it wil count down to zero with exact milliseconds. I'd like to use the li...
[1 reply] : Timers are not 100% accurate. But should be sufficient for millisecond... (by Zaita)
looking for 2 things
 
I am looking for complete solutions of programs that a beginner can learn from. Where/how can I find these. I have already done 'Hello world'. where can I ...
[1 reply] : This forum have a very comprehensive tutorial section: http://www.cplu... (by LacViet)
Problems running the Debug in C++
 
Hello Everyone! I'd appreciate any help anyone can give me in this very frustrating problem I'm having in using the debugger in Visual Studio Express Edition...
[15 replies] Last: What Screenshots? I still don't quite understand why it works now, bu... (by closed account zvMoizwU)
Maps
 
I am writing a program that reads in from a txt file using cin NOT fstream, assignment guidelines. It takes the words and separates any punctuation marks. The ...
[no replies]
error C1010: unexpected end of file while looking for precompiled header.
 
Hello!I tried out a program on constructors in VC++ 2008 Express Edition and Turbo C++.On compilation both of them showed 0 errors and 0 warnings.But while runn...
[4 replies] Last: Oh! Thanks a lot! It worked!!! (by paushali)
How BOOL works?
 
Can anyone explain how the bool data type works? Please include a sample program (just a simple one) and the explanation on how it works. Thanks!
[4 replies] Last: Thanks! I understand it now... (by ponki d monkey)
by anhi
C++ compiler
 
Hi there.Tell me please which compiler should I install for practising c++.I'm novice in this respect.I installed Microsoft visual C++ Express Edition 2008 bu...
[3 replies] Last: 1. Microsoft Visual Studio 6.0 2. Carbide C++ 12/1.3 (by dudhaniss)
by ike
Block code
 
Greeting I have not yet understood how to use block code, can someone help me with this one? I also would like to know if I can create a window with c++?
[5 replies] Last: Since when do we answer users' questions? This should be asked in the... (by helios)
Reading a CSV file
 
Hi All, i am a novice just learning c++. I am trying to automate a email response time, for which i have to read a excel csv file and use some string func t...
[1 reply] : Hi, just thought my Q might not be comprehensive, hence updating it ... (by John2416)
finding e to the power of a value
 
I am in a hole here, I guess this is more of a basic math question more than anything, but I have a program that at one point needs to find the value of e to th...
[4 replies] Last: e has a value (from wikipedia e = 2.71828182845904523536, to 20 decima... (by thalo)
What do you do to prevent 1/0?
 
Hi guys. Just a general question, what do you guys normally do to prevent 1/0? I am writting a calculator program, and it crashes everytime someone enter 1/0. I...
[9 replies] Last: #define ZERO 1e-10 #define isZero(A) ( (A < ZERO) && (A > -ZERO)... (by Zaita)
never use globals?
 
I was reading some old threads about extern keyword and found "never use globals, unless their constant". http://www.cplusplus.com/forum/beginner/2079/ I dont...
[5 replies] Last: I dont understand whats wrong with globals and how to avoid them. Sho... (by Zaita)
A strange output using arrays
 
I am currently required for my laboratory to write a program that will convert a base 10 integer to a different base, beginning with the letter b, between 2 and...
[1 reply] : I don't see how any of this will help you convert a number to a differ... (by helios)
September 2008 Pages: 1... 34567... 16
  Archived months: [aug2008] [oct2008]

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