Showing results 1 to 6 of 6
Search took 0.01 seconds.
Posts Made By: ElectroBoy
Forum: C++ May 6th, 2004
Replies: 3
Views: 5,137
Posted By ElectroBoy
Re: Function that returns void

I understand the error I am making and it makes sense. Its funny how once something clicks in your head it seems so simple. My understanding was incomplete. Thank you for helping me get this point...
Forum: C++ May 5th, 2004
Replies: 3
Views: 5,137
Posted By ElectroBoy
Function that returns void

I am struggling with creating a function that is void. I can write the code inline without a function as follows :

#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>

using...
Forum: C++ Apr 6th, 2004
Replies: 8
Views: 25,604
Posted By ElectroBoy
Re: Pounds to Grams Conversion

It did help. Plus I got further in the text. A large part of my confusion came from having examples in the book showing functions that appeared to execute BEFORE the main () that used variables that...
Forum: C++ Mar 30th, 2004
Replies: 8
Views: 25,604
Posted By ElectroBoy
Re: Pounds to Grams Conversion

Why can't I declare :

double massGram = (GRAM*massPounds); // Weight in grams
double massKilo = (KILO*massPounds); // Weight in kilo

along with the massPounds? Why can't this global variable...
Forum: C++ Mar 30th, 2004
Replies: 8
Views: 25,604
Posted By ElectroBoy
Re: Pounds to Grams Conversion

Look at the assignment it is a week one beginners assignment. I am in chapter three of my book and I did write the code. Thanks for the kind words of encouragement and support.
My lack of...
Forum: C++ Mar 30th, 2004
Replies: 8
Views: 25,604
Posted By ElectroBoy
Pounds to Grams Conversion

Please help me. I just need an explanation and its really simple! I promise! Here is the assignment and COMPLETED WORKING CODE!

// Description : Write a program to read in an object's mass (in...
Showing results 1 to 6 of 6

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:51 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC