I´m using Visual C++ Studio and when I include another .cpp file it doesn´t takes all the what have been included before.
Here is an example:
main.cpp
#include <iostream>
#include <string>
#include <sstream>
#include "readtext.cpp"
int main()
{
teste();
return 0;
}
//readtext.cpp
void text()
{
printf("teste");
}
It returns the error;
readtext: : error C3861: 'printf': identifier not found