C:\Users\Nick\Desktop\test\test.cpp(16) : error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (or there is no acceptable co
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<iostream.h>
#include<string>
using namespace std;
int main(int argc, char* argv[])
{
string s;
cout<<"Name : ";
cin>>s;
printf("Hello World!\n");
return 0;
}

New Topic/Question
Reply




MultiQuote







|