Beginners - November 2011 (Page 43)

Wstring, wcin, wcout?
 
What do these mean? Before you say google.. everything I google comes up with the standard "cout" "cin" and "string" but not the wcout, wcin, or wstring. I ...
[6 replies] Last: Well, I personally went to bitlord and just downloaded every possible ... (by WilliamW1979)
Question about copy constructors and overloading =
 
From my understanding the only time you would need a copy constructor and an overloaded assignment operator is if you were to have dynamic variables. However, a...
[1 reply] : Strings are actually more related to deque<char> or vector<char> then ... (by WilliamW1979)
Cannot convert double to double?
 
It seems like all of my doubles are written exactly the same, but only my first double (3rd argument) is coming up with an error when I call my calcStats functi...
[6 replies] Last: line 67 need to capitalize the "s" void "calcstats" should be "void ... (by kanooter)
by deapee
What would ones ability be after a book
 
Just curious. Let's say someone completely understands a book like "C++ PRIMER," for example. Could that person effectively perform at a job that requires kno...
[2 replies] Last: Yeah, I feel that. My mind thinks like a programmer. I've always tho... (by deapee)
How to make strings equal a certain number
 
I need this understanding because I am doing a slot machine exercise, and for whatever random number between 0 and 3. How would I code it so that if a cer...
[1 reply] : Well, I am guessing you are trying to output to the screen which for t... (by WilliamW1979)
by M987
Inheritance and Polymorphism
 
I am working on a project that require us to use inheritance and polymorphism. The program is not complete, this is what I have got so far, but I am not sure w...
[4 replies] Last: I got it thank you. (by M987)
trouble with a simple loop
 
Good evening! I have been having some trouble getting my code to compile. The task was to write a program that asked for a customers account number, balance, ch...
[3 replies] Last: Awesome! Thanks for the quick replies and she's running great. It's fu... (by newbprogrammer)
Need a fresh pair of eyes.
 
Anyone see how I can fix this? Everything is running together now. #include <iostream> #include <cmath> using namespace std; int findRoots (double a, do...
[5 replies] Last: Ok, but before you can do that you must understand how functions work ... (by WilliamW1979)
Can someone help me interpret this code in C? (Tell me whats going on)
 
Can someone interpret this code for me? I dont understand whats going on. This code is supposed to take a number n that is inputted and show all the numbers bel...
[12 replies] Last: I love the explanation here, the code is crap, the coder is not your f... (by WilliamW1979)
using ceil and floor (1,2)
 
Hello can anyone help me on using ceil and floor. For example, when the grade is 85.678 it will round up to 86 or if its 85.324 it will round down to 85? I'm h...
[22 replies] Last: #include <iostream> #include <cmath> using std::cout; using std::e... (by Moschops)
by sman
for loop help
 
can anyone suggest how to turn this into a for loop? I know that for a for loop, you have to (initialize it; set up a counter; and increment the counter). I'm ...
[2 replies] Last: Thanks for that great reply. I was desk-checking the while and saw tha... (by sman)
Problem with an array
 
I am writing a program that is supposed to take in integers and add them to an array only if they are not repeat numbers. I created the following code: ...
[3 replies] Last: I re-wrote the program above. As of right now, I can read the first in... (by rinnamorato)
Returning functions (bool and Image)
 
So right now I have two big problems. I am trying to create a slot machine. There are 4 images I can have. Obviously if all 3 images are the same, I win, if the...
[no replies]
Trouble loading saved data
 
Never mind, figured it out. told it to only use 4 array indexes when it needed 5 I am making a text game and am breaking it up into small sections. But i ...
[no replies]
Stand alone function!
 
I have this program written to calculate the real roots of a quadratic equation. How can I and what steps do I need to take to switch it to a stand alone funct...
[5 replies] Last: No, you just don't understand how to use a function. No worries, here'... (by Moschops)
Help in console
 
I'm trying to make a simple console app that asks for your age and replies differently deppending on the awnser. here is my code so far. #include <iostream>...
[3 replies] Last: Next time, do this: 999 == iAge (by Moschops)
use of an object
 
If you have a library that only has functions, and no real variable declarations what's the point of creating an object just to be able to call a function? lol
[14 replies] Last: Say a function was within a library, a use could implement them functi... (by InterFiction)
Which C++?
 
I have developed some simulations in C++ in the old Borland 3.0 version. They involve only simple mathematics. I need to develop some graphics for them. I need...
[2 replies] Last: Yeah I have to agree that visual studio has a really nice IDE. Very pr... (by InterFiction)
by denZer
Adding char to an array variable (1,2)
 
When I get a user's input of their char, how can I add it to an array variable? For instance: #define S 20 #include <stdio.h> char var; char var...
[21 replies] Last: If you want to input a string from the user and then output, you'd be ... (by Moschops)
by hbjgd
Infinite Loop
 
The code I have so far causes an infinite loop. I have both my code and the input from the file. Ignore the Quit Function. It's not done yet. Can anyone see whe...
[3 replies] Last: Stewbond is 100% correct but i wanted to explain why. I want to point ... (by WilliamW1979)
November 2011 Pages: 1... 4142434445... 65
  Archived months: [oct2011] [dec2011]

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