JS中的reload有什么区别
location.reload();
Run Code Online (Sandbox Code Playgroud)
并在PHP中刷新
header("Refresh:0");
Run Code Online (Sandbox Code Playgroud) 我正在学习Visual C++ 2008中的C++编程,快速版.我的程序没有识别std::string数据类型.我已经包括了<string>图书馆.
#include "stdafx.h"
#include <iostream>
#include "TestClass.h"
#include <string>
using namespace std;
class Rectangle {
private:
int width;
int height;
double area;
string name;
public:
Rectangle()
{
width = 0;
height = 0;
}
int getWidth()
{
return width;
}
int getHeight()
{
return height;
}
void setWidth(int width)
{
this->width = width;
}
void setHeight(int height)
{
this->height= height;
}
void setArea( )
{
area = width * height;
}
double getArea( ) …Run Code Online (Sandbox Code Playgroud)