
please wait
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 to create a nested loop for a lumber yard the base sizes fo... |
Jun 15, 2012 at 3:43am
[2 replies] Last: Something so small, yet so significant.. Works perfectly now thanks (by djru)
|
by Windwhistles
Copy Constructor stringstream
|
Hi, I defined my own copy constructor, and one of the data members has type stringstream. I cannot figure out how to copy the stringstream. inline Market::M... |
Jun 15, 2012 at 2:10am
[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> using namespace std; struct Person { string name; int age; ... |
Jun 14, 2012 at 11:44pm
[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 looked at sample code. What I read said to declare headers in t... |
Jun 14, 2012 at 11:20pm
[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 realized I don't know how to use it in my existing project. So ... |
Jun 14, 2012 at 11:12pm
[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 anyone can help me, i need a program with two function definit... |
Jun 14, 2012 at 11:09pm
[7 replies] Last: Relax, disch. I wrote it in gedit and just tested it with gcc and its... (by SmallTock)
|
by curscascis
Ordering numbers inside of arrays
|
Hi guys, I was wondering lets say I have an array---actually let me show you int main() { const int numberOfPeople = 10; int pancakesEaten ; for(int i... |
Jun 14, 2012 at 9:42pm
[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 load it back into a program. Would you have to make 2 differen... |
Jun 14, 2012 at 9:22pm
[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() function still runs. where is this copy() function located si... |
Jun 14, 2012 at 8:53pm
[7 replies] Last: Usually every header faile has guard as for example // algorithm stan... (by vlad from moscow)
|
by AandR2024
Question about organization
|
Alright, is there a way to organize words into categories. Like classify "good", "well", "fine" as Positive. And "bad", "not good", "terrible" as Negative. I kn... |
Jun 14, 2012 at 8:31pm
[5 replies] Last: You could drop strings and try something like this (warning: I didn't ... (by doug4)
|
by Raistlin121
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 wish it to only take valid numbers, and ignore letters. At ... |
Jun 14, 2012 at 8:24pm
[6 replies] Last: Thanks for the help :) That's really cleared some of my questions up! (by Raistlin121)
|
by Skyboarder
if (argv[4]<argv[3])
|
Hi, knowing that my main program starts with int main(int argc, char *argv ) and that my arguments are decimal numbers , how can I easily ( without enterin... |
Jun 14, 2012 at 8:18pm
[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 question is, is it better to use a bunch of these, or better ... |
Jun 14, 2012 at 7:44pm
[16 replies] Last: I actually hate ternary operators because they are so slick. I will u... (by doug4)
|
by Swizzler
Static vector declarations
|
Hello :) I was wondering if you could help me. I am following a tutorial where in a class a static vector of a pointer to that class is declared something ... |
Jun 14, 2012 at 7:14pm
[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 something. Is there any built-in function XXX in C++ th... |
Jun 14, 2012 at 6:58pm
[4 replies] Last: I am not sure whether it has to do anything with the subject of this p... (by Fransje)
|
by anindyasd
proccess of this boolean operation
|
hey guys. can you explain to me the proccess of this boolean operation? thanks in advance ^^ bool swapped = false; do { // 1 pass of the... |
Jun 14, 2012 at 6:39pm
[6 replies] Last: Thanks, I needed an idea for how to sort some things in an array. :D t... (by curscascis)
|
by Fransje
Constructor | Deconstructor
|
Hi people, I am doing the tutorial from this website, and I did the part of classes, but there is one thing that I don't understand: what is the use of const... |
Jun 14, 2012 at 6:18pm
[4 replies] Last: Thanks! I'm starting to get it :) but could you give an example of a s... (by Fransje)
|
by rebel1999
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 set up, but it does not work, please tell me when I am doing ... |
Jun 14, 2012 at 5:07pm
[23 replies] Last: I answered you other thread to show how you might be able to fix the c... (by htirwin)
|
by omarkb93
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 running into a lot of very basic problems just getting star... |
Jun 14, 2012 at 3:23pm
[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 two different constructors defined and I do the following: ... |
Jun 14, 2012 at 3:00pm
[3 replies] Last: This is correct: DUMMY * mydummy; mydummy = new DUMMY(); delete mydum... (by moorecm)
|