#include <iostream>
#include <string>
using FText = std::string;
using Print = std::cout;
int main()
{
FText Submission1 = 0;
FText Submission2 = 0;
FText Operator = "";
return 0;
}
As you can see, I did:
using FText = std::string;
Why can I not make a substitution for std::cout
? The error I get from the above code is: "No type named 'cout' in namespace 'std'"
.
I am a beginner and I do not like typing all of std::cout
. I managed to create an alias for std::string
, but cout
is not working.
I am using Xcode.