Beginners - October 2013 (Page 60)

Distance between two coordinates help
 
Im beginning an assignment for class and am having trouble with this code. I am trying to find the square root of two points using what I know from class. What ...
[12 replies] Last: Glad to help. It's always nice to see someone who's actually willing ... (by Disch)
re-entering information.
 
ok so i'm working on a program for a class and I want to know how to make someone re-enter data if they have an invalid selection, rather than just stopping the...
[8 replies] Last: Oh, I see now, thanks for the help! (by Oalvarez)
Help Please!!!!!
 
I have a project do for a class tomarrow and i cant get it to work correctly. I need to create do/while loops that will check to make sure the input is legal. (...
[2 replies] Last: Thank so much for the help! (by Zylaphia)
Help with homework
 
Hello. I'm new to C++ I need help with my homework. here is what I have to do Develop a flowchart and then write a menu-driven C++ program that uses sever...
[1 reply] : Anytime you prepend an identifier with the keyword extern , you are e... (by xismn)
Can someone help me with this code?
 
b should be getting one added to it every 20 ticks. #include <iostream> using namespace std; int main() { int x; int b; int i; ...
[1 reply] : i never reaches 40 and the cout is out of the main while loop. Here is... (by Cronnoc)
Turbo C++
 
Hello, can any one give me a link to download turbo C++ software for windows XP, I downloaded from softpedia, but it didn't work:( Thanks a lot:) //I N...
[8 replies] Last: http://www.megaleecher.net/Download_Turbo_For_Windows (by vin)
by wolfv
Inheritance question: Use parent's function on child's data?
 
Inheritance question: How to inherit a parent's function and use it on the children's data? The example below shows what I am trying to accomplish. It does not...
[3 replies] Last: I found a way to make the parent's puts() function accesses child's da... (by wolfv)
how to read in .txt file input from user then use data in the text file
 
I need to let the user input a file name/location ex: c:/school/cs-121/labData.txt the lab data is formatted like this 149.99 3250 99.99 15587 49.99 185...
[3 replies] Last: OK I got it. I did search for a long time but I was still confused on ... (by reese959599)
Call-By-Values
 
hello, I recently just got some of the understanding of call-by-reference values. Now im trying to use a call-by-value and cannot get it to work for my life. I ...
[9 replies] Last: I figured it out, i created a new integer to equal the equation, then ... (by drzazga)
passing by reference
 
I'm trying to pass by reference. I know you have to add an ampersand to the function prototype, but im not quite sure what i am supposed to put in the function ...
[6 replies] Last: What is the book called? (by LB)
"Beginning C++ Through Game Programming"
 
I am very new to c++, and I just started reading a book called (you guessed it) "Beginning C++ Through Game Programming." I read several positive reviews of th...
[8 replies] Last: Sorry -- I should have said "You were correct, Disch." Must give cred... (by Explodey)
by jc150
convert char array to string
 
Hi, Trying to get this code to work, but keep getting junk for the ouput. const char * larray; larray="this is a test"; string strlist ...
[8 replies] Last: @coder777, Mikeyboy, and Tath --> the string str(aa); // worked f... (by jc150)
variable is being used without being initialized in for loop
 
The error I get is "The variable 'time' is being used without being initialized." #include <iostream> #include <iomanip> #include <string> using na...
[4 replies] Last: thank you! it worked! (by serrld113)
Counting words in a char array
 
I cant get my program to properly count the words in the string. Any help? //Libraries #include <iostream> #include <cstring> using namespace std...
[2 replies] Last: #include <iostream> #include <cstring> using namespace std; int main... (by Yanson)
if else not working?
 
When I put in a negative altitude it prompts me to enter a positve one but one I do the program doesnt follow through to the else if statement. How do I fix thi...
[3 replies] Last: I used a while instead of the if and an if instead of the else and it ... (by serrld113)
by asil
Polymorphism, inheritance, include files
 
Hello everybody, I'm just beginning in C++ and was wondering if somebody could help me with a concept that should be fairly simple but is frustrating a newb ...
[1 reply] : There is a good explanation here: http://www.learncpp.com/cpp-tutorial... (by norm b)
I have a couple simple questions..
 
These questions are apart of a review for a test I am going to take tonight, so it is not for a homework assignment/test but for me to understand some concepts ...
[2 replies] Last: Your solution to the picture makes much more sense to me now! Thank yo... (by bknick24)
Void Functions in C++
 
I'm learning C++ right now in class. We need to use a void function on our next project, but the only thing I understand about it is that you use it to call a v...
[5 replies] Last: Thanks everyone for the help. I just had the void in the main. :) (by drzazga)
by leo255
Need a very quick clarification on post-incrementors
 
I just need to clarify something that will be on one of my tests that is seemingly very simple. Assuming, int a = 2, b = 5, c = 0; I know that the follo...
[1 reply] : Given a = 2 , b = 5 , and c = 0 , after c = a * b++; these be... (by Josue Molina)
Distinct numbers in an array
 
Program will enter N numbers and count the number of values in the array that occurred 1 time Functions are used in this program #include<iost...
[no replies]
October 2013 Pages: 1... 5859606162... 86
  Archived months: [sep2013] [nov2013]

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