Beginners - June 2012 (Page 28)

by djru
nested loop not testing all the way through
 
Okay i've finally figured out this whole nested loop thing , well kind of, for this program I needed...
[2 replies] Last: Something so small, yet so significant.. Works perfectly now thanks (by djru)
Copy Constructor stringstream
 
Hi, I defined my own copy constructor, and one of the data members has type stringstream. I cannot...
[1 reply] : stringstream objects are not copyable. Why not just store the receipt ... (by Zhuge)
by Senjai
Why do I have to dereference my vector iterator? What does it mean?
 
I wrote this code to test: #include <iostream> #include <string> #include <vector> usin...
[10 replies] Last: @vlad pointers do a LOT more than act as random-access iterators into ... (by Cubbi)
header file declaration
 
are header files declared in the .h or .cpp file? I searched and read that about headers, and loo...
[1 reply] : Headers can be included in both header files and source files. Include... (by Peter87)
How do you use libraries?
 
I downloaded WildMagic from http://www.geometrictools.com/Downloads/Downloads.html and then I realiz...
[4 replies] Last: Great feedback so far. I'm on a Windows machine using Code::Blocks. I ... (by SpectreNectar)
by Yocomp
HELPPP! SUMMATIVE!
 
Hi, my summative is due tomorrow and the program i was doing is just totally messed. So please if an...
[7 replies] Last: Relax, disch. I wrote it in gedit and just tested it with gcc and its... (by SmallTock)
Ordering numbers inside of arrays
 
Hi guys, I was wondering lets say I have an array---actually let me show you int main() { cons...
[8 replies] Last: @curscascis numberOfPeople is a constant Variable, so the loop woul... (by vlad from moscow)
Getting input data and saving it for next time program runs
 
I would like to know how you could get data from a user and then save it to a .txt file, and then lo...
[4 replies] Last: P.S how do you make it look like code? (by MildewyTester)
by AARGH
where is copy() algorithm located (what header file)?
 
the code compiles and runs. but i commented out the #include <iterator> purposely and the copy() fu...
[7 replies] Last: Usually every header faile has guard as for example // algorithm stan... (by vlad from moscow)
Question about organization
 
Alright, is there a way to organize words into categories. Like classify "good", "well", "fine" as P...
[5 replies] Last: You could drop strings and try something like this (warning: I didn't ... (by doug4)
Preventing a user from entering too large an integer
 
I have a program that takes a users input for an int (in this case to use as a grid reference) and I...
[6 replies] Last: Thanks for the help :) That's really cleared some of my questions up! (by Raistlin121)
if (argv[4]<argv[3])
 
Hi, knowing that my main program starts with int main(int argc, char *argv ) and that my argumen...
[4 replies] Last: You probably need something like this (sans appropriate headers): i... (by doug4)
Ternary Conditions
 
I've been doing some work with my menu class and I'm a big fan of using the ternary conditions. My q...
[16 replies] Last: I actually hate ternary operators because they are so slick. I will u... (by doug4)
Static vector declarations
 
Hello :) I was wondering if you could help me. I am following a tutorial where in a class a sta...
[4 replies] Last: Ah yes of course! Thank you very much for all your help! (by Swizzler)
A C++ function that could read the name of a variable?
 
Hello guys, Suppose I have defined two variables, say, int dollar, cents; dollar=5; cents=3 or ...
[4 replies] Last: I am not sure whether it has to do anything with the subject of this p... (by Fransje)
proccess of this boolean operation
 
hey guys. can you explain to me the proccess of this boolean operation? thanks in advance ^^ bo...
[6 replies] Last: Thanks, I needed an idea for how to sort some things in an array. :D t... (by curscascis)
Constructor | Deconstructor
 
Hi people, I am doing the tutorial from this website, and I did the part of classes, but there is...
[4 replies] Last: Thanks! I'm starting to get it :) but could you give an example of a s... (by Fransje)
Please help me with this peice of code (1,2)
 
I am trying to make a program that can perform basic strategy in blackjack, I have all the numbers s...
[23 replies] Last: I answered you other thread to show how you might be able to fix the c... (by htirwin)
Very Basic C++ Problems, Installation and Hello World
 
Hello, I am trying to learn some basic C++ over the summer for school next semester. However, I am...
[9 replies] Last: @RandomStuff I didn't say that your program didn't work, I'm saying th... (by Volatile Pulse)
by paul t
redefining a class pointer - memory leak?
 
This may be a simple question but I'm unsure of the answer. Suppose I have a class "DUMMY" which has...
[3 replies] Last: This is correct: DUMMY * mydummy; mydummy = new DUMMY(); delete mydum... (by moorecm)
June 2012 Pages: 1... 2627282930... 51
  Archived months: [may2012] [jul2012]

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