Beginners - April 2012 (Page 33)

Streamsize, setprecision - Accelerated C++
 
Could someone explain the following bit of code as I'm still a bit unsure... I get the jist of it but the following need further explanation (in terms of what ...
[1 reply] : // get the current setting of precision in cout (without changing it... (by JLBorges)
Startup project
 
Hi all! I'm a 3D artist trying to learn C++ and I have som general understand of C++ now, at least on a basic level. Now I need a simple project to start...
[no replies]
Problems with a simple menu
 
Good evening, I am new to C++ and I'm having a bit of trouble with a simple menu I'm trying to generate a menu with two options; one is used to calculate the a...
[no replies]
by cjw92
Reading in an equation from a stream
 
If I have a stream that has coordinates of a point that are being added together, is there any way I can read in the doubles in the stream into specific variabl...
[4 replies] Last: I only mentioned cin and cout to say "hey maybe you have worked with s... (by Lowest0ne)
i need help with two confusing errors
 
The first one i have no idea whats wrong cout<<"Please Enter Student Name: "<<endl; cin>>student_name ; error C2678: binary '>>' : no operator fou...
[4 replies] Last: All your code is a mess :S double Num_Ans = cal1+cal2+cal3+cal4+cal5... (by Shinigami)
please help (1,2)
 
Hello I'm a student in an intro to C++ class. I have a homework assignment on arrays and am seriously stumped. I've googled and searched through this site and c...
[32 replies] Last: This line declares an array of 20 characters. char student_answers ;... (by vin)
Multiple math problems
 
Hi i'm trying to get the result of one math equation to go over and be inserted into another equation. Is there a way to do that? I mainly want a user inputed n...
[no replies]
Need help to fix coding
 
Hi, I'm new to programming and I came accross this code online. But when I complied it, and enter, eg. 100, the program will keep continuing until i manually cl...
[1 reply] : It works OK for input <=55. It doesn't work for 56 and above. For 56... (by vin)
Temperature Converter; first little project
 
I'm a high school student going into programming classes next year so I wanted to get a hang for C++. I had some prior knowledge of the program but this is my f...
[2 replies] Last: Thank you very much for the quick and useful response! :D It works gre... (by Mike1013)
Loopy with Loops
 
So there is an error in my loops :/ basically the code is for a mastermind game, if you can see my error before I find it feel free to help me out! I will be po...
[6 replies] Last: Thank you so much cire. That version seems to work perfectly, and you ... (by elleNEO)
homework from university about C++
 
did somebody can help me to show the source code of this result??? this is my homework... please help me... 1 12 123 1234 123...
[1 reply] : Alright, now I'm only a beginner, but here is what I have so far... #... (by drawingkid1313)
bool program (doubling pennies to a million)
 
So I need to write a program that shows how many weeks it will take to double a weekly one penny allowance until the banked amount equals a million dollars. So...
[10 replies] Last: @CJC - Thanks, that worked! Any good reference material anyone can li... (by chirrrs)
by hvigil
text to array
 
Hello Im trying to send these text intergers into my array the Numbers are: 9 -3 45 -90 400 -20 -123 -67 98. I am having alot of difficulty trying to do...
[3 replies] Last: it will get 50 numbers. you could also try int i = 0; while(infile >... (by ui uiho)
Calculator
 
Hello I am somewhat new to c++ so im not sure why this is happening this is what I have so far #include "stdafx.h" #include <iostream> using namespace std;...
[10 replies] Last: Switch statements can be faster than if statements, for example: sw... (by Lowest0ne)
No overloaded function takes 6 arguments error
 
Im getting the a error that reads *Error 1 error C2661: 'StudentInfo::StudentInfo' : no overloaded function takes 6 arguments This is my code in my .h file...
[6 replies] Last: Wow, it was as simple as that! Thanks very much. (by RookieOfTheYear)
Functions
 
EDIT: I managed to fix all the former errors but now when I run the program the soFar doesn't update with the guessed letter. It tells you the letter is correct...
[2 replies] Last: Edited (by Praetorx)
term does not evaluate to a function taking X arguments
 
Can someone help me figure out what I'm doing wrong that's causing this error on lines 34 & 35 (function lines 70-80)? I'm only just beginning to understand ab...
[2 replies] Last: Thank you!! (by pstchnt)
Doubly Linked List compiler errors - All over!?
 
(No #includes or 'using' of any kind allowed) So I have a dlist.h and dlist.cpp... My first line of code is (I have 160ish lines all together) //Make...
[3 replies] Last: #include "dlist.h" although, that results in recursion. It really ... (by cire)
by hvigil
Help with txt file to array
 
Hello, Im trying to pass values in the txt file to my array. But my program is not able to do that. It gets an error about break or something like that. I would...
[4 replies] Last: Thanx JCaselles it works now!! (by hvigil)
by skarla
programm in c++ (1,2,3)
 
hi i am new in c++ and my dream is to create a good programm ,like game or something else!!! i am 15 and i am learnign c++ about 15 days(1 hour per day),so i w...
[42 replies] Last: First learn C++: http://cplusplus.com/doc/tutorial/ Second, develop yo... (by BHX)
April 2012 Pages: 1... 3132333435... 66
  Archived months: [mar2012] [may2012]

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