Answers for "main.cpp:7:4: error: ‘string’ was not declared in this scope"

C++
2

cout was not declared in this scope

#include<iostream>
using namespace std; //use this
int main(){
    char t = 'f';
    char *t1;
    char **t2;
    cout<<t;        
    return 0;
}
Posted by: Guest on July-28-2020

Code answers related to "main.cpp:7:4: error: &lsquo;string&rsquo; was not declared in this scope"

Browse Popular Code Answers by Language