64,642
社区成员
发帖
与我相关
我的任务
分享
#ifndef _STRING
#define _STRING
#include <string>
using namespace std;
namespace a
{
class b
{
static string c(string str);
};
}
#endif
#include <iostream>
#include <string>
#include "a.h"
using namespace std;
using namespace a;
string b::c(string str)
{
string s;
int len = str.length();
for(int i = 0; i < len; i++)
{
s[i] = str[i];
}
return s;
}
int main(int argc, char* argv[])
{
return 0;
}