#include “stdafx.h”
#include <windows.h>
#include <fstream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
wifstream fs……继续阅读 »
9年前 (2016-04-03) 3444浏览
0个赞
大家好,请看以下代码:
#include<iostream>
using namespace std;
class Point
{
public:
Point(int xx,int yy);
Point(const Point &p);
Point& operator = (const Point &p);
i……继续阅读 »
9年前 (2016-04-03) 1336浏览
0个赞
函数调用
f(1,2,3)
算是一个expression吗? 看起来函数调用是能产生一个result,并且可以把函数调用作为参数进一步传给其他的函数来使用。
不确定… …
解决方案
8
是… 这些东西明明书上都会写啊
8
函数调用是一个表达式属于后缀表达式
8
一直以来。C,C++函数调用,就是表达式
包括
1)函数名调……继续阅读 »
9年前 (2016-04-03) 1358浏览
0个赞
class Query_result;
class Text_query {
public:
using line_no = vector<std::string>::size_type;
Text_query(ifstream&);
Query_result query(const string&) c……继续阅读 »
9年前 (2016-04-03) 1104浏览
0个赞
int *p;
p = new int;
*p = 3600;
cout << *p << endl;
cout << p << endl;
cout << &p << endl;
cout << "删除指针之后 \n";
delete p;
c……继续阅读 »
9年前 (2016-04-03) 1604浏览
0个赞
怎么样用while 和 for语句做出如下编程
‘b” is char(“a”+1), “c” is char(“a”+2), use a loop to write out a table of characters with their corresponding int……继续阅读 »
9年前 (2016-04-03) 1477浏览
0个赞
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <queue>
#include <vector>
using std::vector;
using std……继续阅读 »
9年前 (2016-04-03) 1977浏览
0个赞
就是抛出异常的时候将调用栈堆记录下来以保证能快速找到出错的原因,像调试器就都用这样的功能
解决方案
10
在http://www.codeproject.com搜“stack trace”
10
出错时先转储 各个寄存器的值, 加载的其他 so 的基地址, 再按需要转储当前堆栈 数据, 一般转储个 256K 就够了, 按这样的格式输出
00 01 ……继续阅读 »
9年前 (2016-04-03) 2120浏览
0个赞
#include<iostream>
using namespace std;
class test
{
public:
test();
~test(){};
private:
int i;
};
test::test()
{
i = 25;
for(int ctr = 0; ctr < 10; c……继续阅读 »
9年前 (2016-04-03) 1200浏览
0个赞