Beginners - July 2009 (Page 7)

Find and replace duplicates in an array
 
Here's what I am trying to do. I need to load an array with random integers, however, the numbers need to be unique. The size of the array can vary based ...
[7 replies] Last: Bazzy, That worked, you are my new best friend. :-) Thank you f... (by cableguy414)
3 questions?
 
1- How to clear the black console screen? and how can i clear a single line? 2- How to add colours? 3- How to make a single hash symbol move across the screen...
[1 reply] : 1- http://www.cplusplus.com/forum/articles/10515/ 2/3 - use the curse... (by Bazzy)
by kfex
How to read a file again
 
How do i read this file again after it reached the end. The last statement doesn't take the file back to the begining. #include <iostream> #include <fstre...
[1 reply] : after the loop of lines 17-18 the stream won't be good as file.get wou... (by Bazzy)
Problem using 2D arrays (matrix)
 
can someone help me? i have problem in using two dimensional arrays. X = 2 3 4 5 6 7 2 1 2 Y = 12 13 14 15 16 17 ...
[7 replies] Last: use loops to initialize the 2 dimensional arrays You just used lo... (by wmheric)
Compilers?
 
Hey I need to know about compilers. I'm gonna start learning C++ but I dont have any money to spend so the compiler I use needs to be free. I dont want one that...
[2 replies] Last: ty for link Bazzy helped a tonn (by eLing2C)
char getyorn function
 
need help...i have to write a function char getyorn - this function asks the user for a 'y' or an 'n' (also uppercase) and rejects any other input with an error...
[3 replies] Last: http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.4 shoul... (by smilodon)
by wretch
C++ string overloaded for "operator+"
 
http://www.cplusplus.com/reference/string/string/ I was looking at the above reference, and it does not mention overloading the addition operator (operator+)...
[3 replies] Last: My test above was indeed done using MinGW. VC++ does complains about ... (by helios)
Stream I/O
 
#include<iostream> #include<cstdlib> #include<iomanip> #include<fstream> #include<string> using namespace std; ifstream in_stream; ofstream ou...
[17 replies] Last: strtod or atof, it is in cstdlib (by smilodon)
by garcia
need ppl to solve my prob on the space bar and esc hit.
 
wad i need help is that if u press space bar it will stop at the line u r printing and repeat it again and again unless u press space bar again to continue from...
[10 replies] Last: http://www.phpbb.com/community/faq.php?mode=bbcode You're not actua... (by helios)
C++ Testing
 
Hey guys only a quick one. Does anyone have any ideas on how to go about testing a single class in the program I have written?? their are two classes altoget...
[5 replies] Last: Excellent, I shall get cracking thanks alot for your help guys (by DragonKnight)
Establishing size
 
Hello, im new to C++ and still learning C++ basics, and i've come across a lesson that teaches 'Establishing size', to data types. Which include statements suc...
[3 replies] Last: Thanx, that helped me understand that much better! :) (by XxGunMastaxX)
How do you use five questions in a quiz game for two players
 
#include <iostream> # include <string> # include <fstream> bool validQuestion(char Question1); using namespace std; { char response; //Get respo...
[4 replies] Last: Look, put your code in between the [co de] tags. Like this: #incl... (by chrisname)
by Nelo87
string does not name a type
 
I already searched in google on how to fix this problem, but I still get the error. I was using "using namespace std;" at first. I changed that for the foll...
[6 replies] Last: Thank you everybody. I went to sleep early yesterday as I was very ... (by Nelo87)
by Claymz
'operator <<' is ambiguous
 
hi, i get this error: error C2593: 'operator <<' is ambiguous code: #include <iostream> #include "Fraction.h" using namespace std; std::istream...
[19 replies] Last: heres the main.cpp, if youll maybe find something that ive made wrong.... (by Claymz)
Code needed plzzz!!!
 
Problem statement: Derive a class from long_int class and add a member function "multiply" in the derived class to multiply two long_ints using the add member ...
[3 replies] Last: lol (by Return 0)
been working all day and heres my issue....
 
Ok, been working all day on this. im on my deal function and im getting this same problem over and over again. i cant figure out 1) why my deal keeps giving 2 h...
[5 replies] Last: I dont know much about casino BJ, but i think you need to (except all ... (by johnkravetzki)
Why enum?
 
enum can be used to give a "name" a value. like enum { keyUp, // gives "keyUp" the value 0 keyDown, // gives "keyDown" the value 1 key...
[5 replies] Last: ohh, it became clear now. Thank you so much. (by NoobsDeSroobs)
whats this error all about?
 
this is somewhat confusign to me. ive made my deck of cards and tried to just run a cout to make sure that everything is set correctly in my deck. everytime i r...
[5 replies] Last: random_shuffle needs random access iterators, and pointers fit the b... (by jsmith)
writing a blackjack program and could use a little assistance...
 
Im working on a program (of which i will post in just a bit), to write blackjack. Im in my first c++ (and programing for that matter), class, and so im very ne...
[1 reply] : (of which i will post in just a bit) don't unless there is a bu... (by smilodon)
July 2009 Pages: 1... 56789... 20
  Archived months: [jun2009] [aug2009]

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