Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 7

5 Posted Topics

Member Avatar for vinochick

[CODE]#include <iostream> #include <iomanip> using namespace std; //function prototypes void getFahrenheit(int); void calcCelsius(int, double); void displayCelsius(double); int main() { //declare variables int fahrenheit = 0; double celsius = 0.0; //get input item getFahrenheit(fahrenheit); //calculate Celsius calcCelsius(fahrenheit, celsius); //display output item cout << fixed << setprecision(0); displayCelsius(celsius); return 0; } //end …

Member Avatar for Andreas5
0
1K
Member Avatar for aukeebler

There's no error. The code just stops after you enter the fahrenheit [CODE]#include <iostream> #include <iomanip> using namespace std; //function prototypes void getFahrenheit(int &); void calcCelsius(int, double &); void displayCelsius(double); int main() { //declare variables int fahrenheit = 0; double celsius = 0.0; //get input item getFahrenheit(fahrenheit); //calculate Celsius calcCelsius(fahrenheit, …

Member Avatar for sfuo
0
139
Member Avatar for aukeebler

What did I do wrong? It won't does not work for my choices... [CODE]#include <iostream> using namespace std; //function prototypes void displayMonthly (double[]); void displayTotal (double[]); int main() { //declare variables and array int choice = 0; double rainfall[12] = {0.0}; //get rainfall amounts for (int x = 0; x …

Member Avatar for PatrixCR
0
78
Member Avatar for aukeebler

Error 1 error LNK2019: unresolved external symbol "void __cdecl calcCelsius(double)" (?calcCelsius@@YAXN@Z) referenced in function _main

Member Avatar for aukeebler
0
87
Member Avatar for aukeebler

For a function protoype header can one be double while the other one is void? I'm trying to make the void displayPayment function work, but am a little lost. Should I turn the carPrice, Rebate, ect.. into void functions in the prototype, or can they work without doing that? Thanks …

Member Avatar for WolfPack
0
210

The End.