小编Joe*_*Joe的帖子

C++错误C3867

我收到了followint错误:

错误C3867:'std :: basic_string <_Elem,_Traits,_Ax> :: c_str':函数调用缺少参数列表; 使用'&std :: basic_string <_Elem,_Traits,_Ax> :: c_str'创建指向成员的指针

#include "stdafx.h"
#include <iostream>
#include <Windows.h>
#using <System.dll>
#include <sstream>
#include <string>
using namespace System::Net;
using namespace std;

int main(array<System::String ^> ^args)
{
int input;
cout << "Welcome to the prize draw!!" << endl;
cout << "Please enter your age - ";
cin >> input;
cin.ignore(); 
if (input < 13){
    cout << "You must be 13 or over to enter" << endl;
}
else
{
    cout << …
Run Code Online (Sandbox Code Playgroud)

c++ string webclient system

-1
推荐指数
1
解决办法
3403
查看次数

标签 统计

c++ ×1

string ×1

system ×1

webclient ×1