class file
Main function
In the main function, when I execute cout, the string, number, doesn't have a value although it is being set in that function being called above it. Because of this, I'm guessing the string that bo.big makes doesn't return to the main function because when I put the cout in the big function it works. Is there a way to return a string from a function in a different class file back to the main function?
Code
#include "Numbertostring.h"
#include <windows.h>
#include <string.h>
#include <iostream>
using namespace std;
Numbertostring::Numbertostring()
{
}
Numbertostring::big(string number) {
number = "hey";
}Code
#include <iostream>
#include <windows.h>
#include <string.h>
#include "Hey.h"
#include <math.h>
#include "Numbertostring.h"
using namespace std;
int main()
{
Numbertostring bo;
int remainder;
string number,bi,rande;
bo.big(number);
cout << number << endl;
}

