直接用=赋值就可以了。举例如下: //#include "stdafx.h"//If the vc++6.0, with this line.#include #include using namespace std;int main(void){ string s; s="ABC"; cout