/*Header.h file*/
#include <iostream>
using namespace std;
int main(){
    /*Menu*/
    /*case1:
        int x;
        cout << "Input ammount:";
        cin >> x
        sugarcake(x)*/
    /*case2:
       something else
    */
}
/*sugarcake.cpp file*/
#include <iostream>
#include "Header.h"
using namespace std;
void sugarcake(int x) {
    cout << (x * 0.75) << "st egg" << endl;
    cout << (x * 0.75) << "dl sugar" << endl;
    cout << (x * 0.5) << "tsk vanillasugar" << endl;
    cout << (x * 0.5) << "tsk blabla" << endl;
    cout << (x * 0.75) << "dl wheatflour" << endl;
    cout << (x * 18.75) << "gram butter" << endl;
    cout << (x * 0.25) << "dl water" << endl;
}
How do i make this work or have i understood it completely wrong? (Started out with C++ yesterday so please be kind and i haven't been able to find any clear answer that works for me elsewhere)
TL DR: Call the function sugarcake(int x) in sugarcake.cpp inside the Header.h
 
     
    