首页 新闻 会员 周边
1
回答数

已解决问题 5 toupper()的参数只能是整型?

#include<iostream> #include<string> #include<vector> #include<cctype> int main() { std::vector<std::
2
回答数

已解决问题 5 为什么文件里会出现一些奇怪的字符?代码如下

#include<iostream>//设计一个测试seekg()的程序 #include<fstream> #include<string> class Chih { std::ifstream i
1
回答数

已解决问题 20 新手问路:in.get()应该放while(){}里边还是外边?代码如下

void A::upwords() { char ch; while (!i.eof())//在stack overflow 上说用eof()不好,why? { i.get(ch); if (ch==
1
回答数

已解决问题 20 文本的里边有换行,大写变小写的时候换行就一起给变了(0-0)!

#include<iostream> #include<fstream> #include<string> using namespace std; class chih { }; int main(
1
回答数

已解决问题 5 求高人帮我看看下面这段代码啊

#include<iostream> #include<string> using namespace std; class student { public: student(float numbe
0
回答数

已关闭问题 5 新手求解,子对象可以输出吗?如何输出?代码如下:

#include<iostream> using namespace std; class B { public: B(int i) { x = i; cout << "Constructor of
1
回答数

已解决问题 10 编程新手想问各路大神下面程序哪里有问题,为什么结果是一个奇葩数?

#include<iostream> using namespace std; class point { public: point(double a, double b,double c,doub