Beginners - October 2012 (Page 45)

by unit56
Not sure whats wrong
 
I may be derping, and yes i know this is not the most efficient way to write this program but it has to be done this way as requested, anyway basically the user...
[2 replies] Last: I will give you a special equation: int inputInHours, days, hours; i... (by Moeljbcp)
Having a Blonde moment
 
I keep getting parse errors before else and return. I've tried indenting and also switching to if/else statements. Any clues? #include <iostream> #includ...
[4 replies] Last: Knew it was a blonde moment. Thank You. (by Badeskimoz)
invalid initializer
 
I have an error in line 11, "invalid initializer". Any suggestions? #include <iostream> #include <cstdlib> using namespace std; int main() { int...
[4 replies] Last: Awesome! You've been a big help man. /solutesloppy (by ProductFailure)
by Tate
How to insert an "endl" at a certain place in my program?
 
I'm trying to figure out how to insert a new line at a certain place in my program. I'd like to have a line inserted after the last pledge is entered and befor...
[2 replies] Last: Doh! Such a simple solution. My bad. Thank you for your input, Abst... (by Tate)
Just plain stuck
 
I have been working on this program for 3 days and keep getting the same one error code, I was hoping some fresh eyes could give my code a look and maybe give s...
[1 reply] : Line 13: You have a forward declaration for the function displayChar w... (by AbstractionAnon)
by Magikk
Need help with array's and storing SSN's.
 
In this assignment, you are going to write a program that keeps track of the social security numbers (SSN) of customers of a bank. Please notice that we are go...
[1 reply] : You are probably going to want a function to add records. Your assign... (by AbstractionAnon)
Is this ok?
 
I wanted to create a function that simply opens a url. previously i tried shellexecute() which worked great for me and most of those that were using my progr...
[no replies]
getArea function is only returning 0
 
I'm doing an assignment where i need to have a user create a triangle and I have a separate .cpp file which contains my triangle class and methods used to find ...
[11 replies] Last: That would explain it. You could try using a more precise value for PI... (by Chervil)
C++ Question Function Overloading
 
Thanks, Vlad for helping me solve this!
[9 replies] Last: Thank you both! (by Fulslion)
Only adding odd numbers
 
So I have got these integers to add up and give the sum but I'm not sure how to place it so that only odd numbers can be added in and they can only input 10 odd...
[1 reply] : #include <iostream> using namespace std; int main() { int i; i... (by freddy92)
by Ryusko
Creating vector of objects
 
So I'm teaching myself c++ after having learned Java, and I'm making a basic rpg type game to do so. I'm having a hang up when trying to create a vector of Char...
[3 replies] Last: That worked, thanks, overlooked that vectors were part of the standard... (by Ryusko)
by mm87
I'm having C++ problems on college work?
 
I have a college assignment where i have to create a program in a lesson but when trying at home i am find errors constantly. ," the program does not need to...
[1 reply] : #include <iostream> #include <string> using namespace std; int m... (by freddy92)
Loop not working in Polynomial Class
 
I have a polynomial class. This function adds two polynomials together by inserting the terms of the second polynomial into the first one. If the second polynom...
[no replies]
passing vector as a function
 
I'm creating a function in which a vector is being passed. In the .cpp file I have the following code SignalChangedEvent(theSimulation.time + delay, outpu...
[3 replies] Last: When you will call the function you specify the required element of th... (by vlad from moscow)
SOS
 
This is driving me nuts! I finally got the box to output but now I have the problem that nothing is being showing up. It's like there is something wrong with m...
[3 replies] Last: Hey thanks I have fixed and moved on to a new problem which is LOOPS! ... (by jlillie89)
for Loop with a false value
 
I was wondering if there was a better way for me to have addressed a user puttin in a value that was not valid. I've got it working.. just wondering if it was ...
[2 replies] Last: I haven't learned arrays yet.. but will definitely keep in mind for th... (by BrooklynMommy)
by fmdub
Can't seem to get headers to work. Using Visual C++ 2008
 
I'm trying to write a basic program using class/function header files and can't seem to get this to work/link together. It might just be the order that I'm d...
[3 replies] Last: #1 you don't have to include <iostream> in header.h, but it does mak... (by andywestken)
what is the most simple as possible program you could build that uses this evil '<-' bastard
 
im gonna go for the graduation in the beginner exercises on this forum http://www.cplusplus.com/forum/articles/12974/ (i shud get a trophy if i succeed) i just ...
[12 replies] Last: ooh shiny, i like that, wish i found that in the dev tutorials...could... (by devonrevenge)
One small problem (very simple fix, but I don't know how) -
 
#include <iostream> using namespace std; void main() { double x; double y; double z; char yn; double tt; double bs; cout << "Welcome to x...
[5 replies] Last: But, as long as you don't need exhaustive floating-point precision, I... (by Disch)
by skarla
SDL
 
Is anyone who learning sdl at this moment too? If yes he can give his skype so help each other.
[no replies]
October 2012 Pages: 1... 4344454647... 84
  Archived months: [sep2012] [nov2012]

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