qwwdezone
qwwdezone
关注数: 15
粉丝数: 74
发帖数: 985
关注贴吧数: 27
怪梦,求解。。。。 梦到杀了见过几次面的人(不熟)。 藏尸到厕所粪池里。 他的家人和警察找我麻烦,我和家人(不知道情况)掩盖过去, 因为他们找不到证据。 我担心。
谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑? 谁有第四季第六集里,DEAN 唱eye of the tiger那点的剪辑?
vector 比较两个迭代器中元素是否相等。 #include <iostream> #include <vector> using namespace std; int main() { vector<int> ivec1,ivec2; int ival; cout<<"enter ival1(-1 to end):"<<endl; cin>>ival; while(ival!=-1) {ivec1.push_back(ival); cin>>ival; } cout<<"enter ival2(-1 to end):"<<endl; cin>>ival; while(ival!=-1) {ivec2.push_back(ival); cin>>ival; } if(ivec1.size()!=ivec2.size()) {cout<<"ivec1!=ivec2"<<endl;} else if(ivec1.size()==0/*&&ivec2.size()==0*/) {cout<<"ivec1=ivec2"<<endl;} else { vector<int>::iterator ix1,ix2; ix1=ivec1.begin(); ix2=ivec2.begin(); while(*ix1==*ix2&&ix1!=ivec1.end()&&ix2!=ivec2.end())//*ix1==*ix2,这个代表什么?ix1,ix2指向的元素还是ix1,ix2指向的元素位置?改成ix1==ix2 不是也是正确的? { ++ix1; ++ix2; } if(ix1==ivec1.end()) { cout<<"ivec1==ivec2"<<endl; } else {cout<<"ivec1!=ivec2"<<endl;} } return 0; }
吧里管事的呢??? 本人最近在自学数据结构,为了方便学习。特申请入吧。 怎么申请入吧好几天了,还没进来? 吧主看完可以删掉此贴。不入此吧也一样学习。
两个问题。奇异! (C++primer 4th) 2.20 下边程序会输出什么? int i=100,sum=0; for(int i=0;i!=10;++i) sum+=i; std::cout<<i<<" "<<sum<<std::endl; 2.21 下列程序合法吗? int sum=0; for(int i=0;i!=10;++i) sum+=i; std::cout<<"sum form 0 to"<<i<<"is"<<sum<<std::endl; OK,我的问题是:2.20程序有问题,2.21的程序是对的.怎么书上说2.20有输出结果。2。21的程序是错的?
如果出蛮荒的单机RPG游戏,有人玩吗?
谁能帮忙解释下 虚函数? 用简单点的语言。别复制,粘贴过来。 来位大虾帮忙 解释下虚函数吧,指向基类的指针怎么访问派生类的?
将运算符"+"重载为适用于复数加法,重载函数不做为成员函数,放在类 #include <iostream> using namespace std; class Complex {public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} friend Complex operator+ (Complex &c1,Complex &c2); void display(); private: double real; double imag; }; Complex operator+ (Complex &c1,Complex &c2) {return Complex(c1.real+c2.real, c1.imag+c2.imag);} void Complex::display() {cout<<"("<<real<<","<<imag<<"i)"<<endl;} int main() {Complex c1(3,4),c2(5,-10),c3; c3=c1+c2; cout<<"c1="; c1.display(); cout<<"c2="; c2.display(); cout<<"c1+c2="; c3.display(); return 0; } D:\vc++bar\10-3.cpp(41) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Error executing cl.exe. 10-3.exe - 1 error(s), 0 warning(s) 请问这是什么错误??????????????????????????????
static? 1:写出输出 void fun(int i) { static int value=i++; cout<<value; } int main() { fun(0); fun(1); fun(2); } //有点不懂了,结果不是我想的结果。来个高人解说下吧。3Q!
迷指针,有过来人没有?给个指针的教程吧,我再研究下。 RT
谭浩强C++程序设计6.20的例题! #include <iostream> using namespace std; int main() {void swap(int &,int &); int i=3,j=5; swap(i,j); cout<<i<<" "<<j<<endl; return 0; } void swap(int &a,int &b) {int temp; temp=a; a=b; b=temp; } // 书上结果是错的吧? 还是我还程序都会输错? @_@
来个高手帮我下。谢谢 图上是一个32位数的加法部分程序,用紫色标记部分我不大明白/ 算法低位与低位加存在DATA3低位,高位和存在DATA3高位。 把进位放在DATA3第5位(我不能理解的地方)。
有会DIY音响的没!
段间带立即数返回指令? RET 4 设在执行上述操作前SP=B67AH,执行后SP=? 帮忙解说下,有点迷!3Q!
首页
1
2
下一页