Beginners - November 2013 (Page 33)

Am i missing something?
 
it's not compiling but i'm not spotting the bug. it is a simple code but i don't know if i am missing a small detail. #include <iostream> #include <fstre...
[1 reply] : 1) You need to escape all of your backslashes. (Remember, backslash is... (by long double main)
Question about Array,functions, and random- Lotto Numbers
 
The code works up to the input of the 7th number and after that it stops. I then tried switching the order of the functions being called and noticed it was the ...
[no replies]
Segmentation fault (core dumped)
 
My program compiles fine but for some reason i get this error "Segmentation fault (core dumped)" when I try to run it. When I reduce the number of objects from ...
[3 replies] Last: thank you so much friends! (by MarketAnarchist)
Help with flowcharts.
 
Hello everyone! I am having a bit of trouble in my online c++ class and I need some help drawing a flowchart for my design work. I already did the program witho...
[3 replies] Last: basically condition's are like this _____________ |some condition| --... (by giblit)
Vectored Pairs: unclear on bits of concept
 
Hi I'm self-testing to see what I understand of C++ thus far, in particular Vectors and Pairs. (I'm trying to incorporate the use of a Vector comprised of P...
[no replies]
SFML Extremely Confusing
 
The version I was using was SFML 2.1 for visual C++ 2012 64-bit for windows. I deleted that and am now using a 32-bit. When I debug it, it says it can't find th...
[1 reply] : where did you extract the sfml archieve, are you sure you configure th... (by nvrmnd)
Finding the Max Character Problem
 
Hello! I just have a quick question about a program I am writing. So first, here is the code: #include <iostream> #include <cstring> using namespace std; v...
[2 replies] Last: Thank you very much! The code works perfectly now. :) (by chelseaR)
Perfect number program question - help in printing out in a different format
 
I'm working on a program to find perfect numbers but have run into a roadblock in printing the results. How do I change the cout part so that the lines print o...
[5 replies] Last: AH HA! I figured it out. Thank you long double main! Your suggestio... (by newlearn33)
by Ratham
Won't Compile, Didnt Touch Anything (Classes)
 
I had this working completely fine earlier and now ever since I reopened my project it doesnt compile anymore and I have no idea why. I'm using Netbeans and hav...
[2 replies] Last: Got it, ty :) (by Ratham)
by Grea
linked list only showing first and last nodes
 
M linked list class is only showing the first and last elements of my list. I think the issue has to be in the pushBack,or the << overload in the linked-list im...
[4 replies] Last: just figured it out had to change the insert function to this Node<E... (by Grea)
loop troubles
 
this loop I have in the main function wont break out even when it's control varriable is the correct value when the loop checks it (used debugger to check it) c...
[2 replies] Last: I see now, I was thinking logical or meant if one or the other were tr... (by Tiawulf)
Decimal to Binary
 
How to convert a decimal into a binary number? I have come up with this code, but it prints the binary in reverse order, how do I get the correct order? ...
[2 replies] Last: store your remainder in a string before you cout them (by wwwiii)
Create Class Object dynamically through cin
 
Hi guys, I have a class called Account with variables called Balance and Status. The Member Name is given by the User through cin and represents an the Accou...
[7 replies] Last: It's best to create an array or vector of accounts rather than creatin... (by AbstractionAnon)
by mv81
While loop
 
Need help trying to figure out why my program wont terminate when I enter -1 #include <iostream> using namespace std; int main() { int Coffee=...
[2 replies] Last: wow i completely missed that thanks for the help (by mv81)
Looping Code not working
 
I have to have a looping code that does what the first part with the choices does and it was working until i moved onto adding the loop for the specific date pa...
[1 reply] : OK you have lots of {} issues going on you need to look over them an... (by mobotus)
Program Always Returning Zero
 
This program is giving me a major headache, while it should be very simple. It will only return 0 each time I run it. I have pulled the program apart and run ea...
[11 replies] Last: What do you mean by returning 0 as a whole program? Do you mean that t... (by TheBeardedQuack)
opening a file
 
I'm trying to read data from a file, but my code is not working. What is wrong with the code? And, I followed a book by Tony Gaddis. #include<iostream> #i...
[2 replies] Last: Can anyone tell me what is wrong with my code here: void InterpretBa... (by calebta)
Compiler Not Recognizing Function Calls
 
#include <iostream> using namespace std; void input(int& feet, int& inches); void chopin(int& feet, int& inches, int& meters, double& centimeters); v...
[1 reply] : Maybe this message would be clearer foo.cpp: In function ‘int main(... (by ne555)
fstream
 
I am writing a program that turns infix expressions into postfix. And I have to either output to a file provide or output to the screen. The is the program. ...
[no replies]
accessing arrays from functions
 
I have a hero structure. In the createHero function, I allow the user to enter how many heroes they want (for an array) and set the attributes. In other functio...
[no replies]
November 2013 Pages: 1... 3132333435... 80
  Archived months: [oct2013] [dec2013]

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