文章作者 100test 发表时间 2009:05:26 18:55:47
来源 100Test.Com百考试题网
2009年下半年全国计算机四级考试时间是2009年9月19日至23日。2009年下半年全国计算机四级考试报名时间会在考前两个月开始报名!更多优质资料尽在百考试题论坛 百考试题在线题库。
//第一种方法
#include <.iostream>.
#include <.string>.
using namespace std.
int main()
{
int n = 65535.
char t[256].
string s.
sprintf(t, "%d", n).
s = t.
cout <.<. s <.<. endl.
return 0.
}
//第二种方法
#include <.iostream>.
#include <.string>.
#include <.strstream>.
using namespace std.
int main()
{
int n = 65535.
strstream ss.
string s.
ss <.<. n.
ss >.>. s.
cout <.<. s <.<. endl.
return 0.
}