#include using namespace std;#define MAXN 4int
main(){ //char arr[MAXN] = {0}; char arr[MAXN]; memset(arr,0,MAXN); while (cin
>> arr) {...
分类:
其他好文 时间:
2014-05-14 02:32:38
阅读次数:
327
#include #include #include using namespace
std;int main(){ double x1,y1,x2,y2; double result; while
(cin>>x1>>y1>>x2>>y2) { result ...
分类:
其他好文 时间:
2014-05-14 02:02:49
阅读次数:
242
先给出通过字符型指针输出字符串的示例代码,如下:#include using
std::cout;using std::endl; int main(){ const char *pszStr = "this is a string";
// 输出字符串 cout int ma...
分类:
其他好文 时间:
2014-05-14 01:33:08
阅读次数:
247
1 #include 2 using namespace std; 3 4 int
ji(int); 5 int ou(int); 6 int main() 7 { 8 int m,n,x,y; 9 while (cin >> m
>> n)10 {11 ...
分类:
其他好文 时间:
2014-05-13 20:24:09
阅读次数:
255
1 #include 2 using namespace std; 3 char
grand(int); 4 int main() 5 { 6 int n; 7 while (cin>> n) 8 { 9 if (n>100
|| n<0)10 ...
分类:
其他好文 时间:
2014-05-13 19:58:21
阅读次数:
327
VC中头文件为:#include 这个在c中没有。是C++引进的。coutusing
namespace std;int main(){int a;cout> a;coutusing namespace std;int
main(){cout>的玩意,究竟算怎么回事呢?我一直想把它们当作关键字,可偏...
分类:
编程语言 时间:
2014-05-13 10:15:36
阅读次数:
519
序言
QBittorrent是一个新的轻量级BitTorrent客户端,可运行于Linux、windows及其他可能系统,它简单易用,漂亮的外观,功能强大,是linux下的一款比较出色的bt下载工具。然而想使用它却不简单,废了我两天时间终于搞定了,记录一下解决的过程,算是对于两天辛苦的一个总结吧!
配置信息及需要的软件
操作系统:CentOS 6.5 32位
Qt版本:Qt...
分类:
系统相关 时间:
2014-05-13 08:38:52
阅读次数:
471
理解二级指针,关键是理解指针的存储方式和意义。
这里以指向int型指针的指针为例,梳理一下二级指针在内存分配中 的奥妙....
#include
using namespace std;
int main()
{
int a[5] = {1, 2, 3, 4, 5};
int *p = a;
int **point = &p;
cout << "a = "...
分类:
其他好文 时间:
2014-05-12 23:22:28
阅读次数:
291
想做下面一个效果:想当鼠标移动到按钮上的时候,按钮就变大,图标换个大的,鼠标不在按钮上的时候,按钮就变小,图标也换成小的,感觉比较Cool
实现原理:为每个按钮设置监听属性
void MainHomeForm::init()
{
//为按钮注册事件
ui->SystemSetButton->installEventFilter(this);
ui->ZoneSe...
分类:
移动开发 时间:
2014-05-12 22:57:49
阅读次数:
555
QextSerialPort类是基于Qt程序串口类,在win和linux都适用,win下可以使用EventDriven,linux好像不行。
整个类的层次关系。我下载的是qextserialport-1.2win-alpha这个版本,不过编译时有点问...
分类:
其他好文 时间:
2014-05-11 23:30:33
阅读次数:
304