gcc是C编译器;g++是C++编译器;linux下cc一般是一个符号连接,指向gcc;gcc和g++都是GUN(组织)的编译器。而CC则一般是makefile里面的一个名字,即宏定义,嘿,因为Linux/Unix都是大小写敏感的系统,这点一定要注意。cc是Unix系统的C
Compiler,而gc...
分类:
其他好文 时间:
2014-06-09 22:57:58
阅读次数:
268
首先,WCF和WebService一些区别1,WCF支持多中通信协议,http/https
tcp/udp/msmq.命名管道,对等网,消息可达性,事物流等.2,WCF可以与ASP.NET集成,共享同一个上下文(HttpContext)3,WCF支持多种消息传输格式,如text,binary,mto...
分类:
其他好文 时间:
2014-06-09 00:37:03
阅读次数:
255
下载安装后 启动的时候提示
GLIBCXX_3.4.15,发现libstdc++.so.6的版本过,在安装qt-creator的时候运行这个IDE就出现了这个问题,是由于libstdc++.so.6的版本过低,需要下载个新的重新建立软连接。我这里是
更新里 gcc 版本到 4.8 解决的,更新之后做...
分类:
其他好文 时间:
2014-06-08 21:48:54
阅读次数:
352
原题地址:https://oj.leetcode.com/problems/add-binary/题意:Given
two binary strings, return their sum (also a binary string).For example,a ="11"b
="1"Return"...
分类:
编程语言 时间:
2014-06-08 20:28:04
阅读次数:
300
题目链接题意: 给定一棵二叉树, 判断是否为平衡二叉树, 这里的平衡二叉树指的是:每个结点的左右子树的深度之差不超过1。附上代码:
1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * ...
分类:
其他好文 时间:
2014-06-08 18:58:35
阅读次数:
194
题目链接求二叉树最小深度,最小深度指的是:从根节点走到最近的叶子结点的最短长度附上代码: 1 /**
2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode
*left; 6...
分类:
其他好文 时间:
2014-06-08 18:43:48
阅读次数:
220
Description:Given a binary tree, flatten it to
a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The...
分类:
其他好文 时间:
2014-06-08 18:34:52
阅读次数:
214
题目
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ \...
分类:
其他好文 时间:
2014-06-08 16:38:02
阅读次数:
194
1.安装编译环境gcc
使用yum install gcc在线安装
2.安装ruby开发环境
先下载linux版安装文件:ruby-1.8.6-p111.tar.gz
执行
tar -zxvf ruby-1.8.6-p111.tar.gz
cd ruby-1.8.6-p111
./configure --prefix=/usr/local/ruby
ma...
分类:
系统相关 时间:
2014-06-08 05:01:48
阅读次数:
445
作者:disappearedgod
文章出处:http://blog.csdn.net/disappearedgod/article/details/23621903
时间:2014-6-7
题目
Minimum Depth of Binary Tree
Total Accepted: 14139 Total
Submissions: 48728My S...
分类:
其他好文 时间:
2014-06-08 04:15:57
阅读次数:
236