Reputation: 131
String class not working in my computer ? This is my code, i hate to create a project over it , is there any syntax error, my book has used exactly like this, whats the problem ?
#include <string>
#ifndef LAB_PROJECT_H
#define LAB_PROJECT_H
struct Node
{
Node* nextptr;
Node* prevptr;
string student_name;
string father_name;
int registration;
string section;
string major;
string area;
};
Upvotes: 1
Views: 55
Reputation: 206616
You need to use fully qualified name for string
for example.
std::string student_name;
Upvotes: 5