//求助帖,求助帖,练习c++时的一个错误

//使用vs2015,是学生党的一个练习

//这是inputcardNo.h中的代码

bool inputcardNo(string);

//这是inputcardNo.cpp中的代码

#include<iostream>
#include"stdafx.h"
using namespace std;
bool inputcardNo(string card_num)
{
    string str;
    char choice;
    for (;;)
    {
        cout << "请输入卡号(1~17位):";
        cin >> str;
        cin.clear();
        cin.sync();
        if (str.length() >= 17)
        {
            cout << endl << "超出卡号位数限制!" << endl;
            for (;;)
            {
                cout << "是否重新输入卡号(y/n):";
                cin >> choice;
                if (choice != 'y'&&choice != 'n')
                    cout << "命令有误!" << endl;
                else
                    break;
            }
            if (choice == 'n')
                return false;
        }
        else
        {
            card_num = str;
            break;
        }
    }
}
//stdafx.h文件
#include "targetver.h"

#include <stdio.h>
#include <tchar.h>
#include<string>

#include"menu.h"
#include"service.h"
#include"inputcardNO.h"

出现的问题提示是这样的

严重性   代码             说明          项目   文件   行
错误  C2065   “string”: 未声明的标识符 AMS e:\study2\综合实验\ams\ams\inputcardno.h    2   

我搞不懂为啥会出现这种情况,求帮助谢谢啦

在inputcardNo.h包含头文件 #include string 括弧加不上