Intro_function
Functions
main.cpp File Reference
#include "mylib.h"
#include <cassert>
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 10 of file main.cpp.

11 {
12  float varC, varF; // declaration of variables (not initialize/defined)
13  cout << "Hello world!" << endl;
14  cout << " Grad Celsius = ";
15 
16  cin >> varC; // Input from terminal
17  float varK = c2k(varC); // call function
18 
19  cout << " Kelvin : " << varK << endl;
20  cout << "####################\n";
21 
22  c2kf(varC, varK, varF); // call function
23 
24  cout << " Kelvin : " << varK << endl;
25  cout << " Fahrenheit: " << varF << endl;
26 
27  return 0;
28 }
float c2k(float const grad_C)
Definition: mylib.cpp:5
void c2kf(float const grad_C, float &grad_K, float &grad_F)
Definition: mylib.cpp:14