码迷,mamicode.com
首页 >  
搜索关键字:visaul stdio    ( 10042个结果
C++进程检测,发现进程路径,关闭进程(二)
上一章使用的函数比较复杂,本章直接使用根据进程ID号并使用GetModuleFileNameEx函数实现进程路径的获取 #include "stdafx.h" #include #include "stdio.h" #include #include "Psapi.h" int _tmain(int argc, _TCHAR* argv[]) { int n...
分类:编程语言   时间:2014-12-15 09:07:20    阅读次数:204
将十进制数转换为IEEE754格式
#include"stdio.h" #include"stdlib.h" #include"string.h" #definedatatypeint #defineMAX_SIZE50 #defineOK1 #defineErr0 /** *Code:ByYangLong2014年9月21日, * *0x00:函数说明 *XD2B将任意一个浮点数转换为2进制 *XD2B(doublef,char*s,boolz) *参数一:需要转换的浮点数 *..
分类:其他好文   时间:2014-12-15 06:47:13    阅读次数:228
Section 2.1.Hamming Codes (hamming)
//题目的链接http://www.nocow.cn/index.php/Translate:USACO/hamming/*【位运算】+【异或操作】*//*ID:zhangsh35PROG:hammingLANG:C++*/#include<iostream>#include<math.h>#include<stdio.h>usingnamespacestd;constintMAXN=64;intham[MAXN];inttot,Max,di..
分类:其他好文   时间:2014-12-14 18:47:51    阅读次数:165
九度cin/cout耗时原因
做九度题的时候,由于数据量大,很多情况下得用scanf和printf代替cin和cout用于输入输出,不然会报错超时不能AC。 有三条建议用于提高C++的输入输出速度: At the first line in main function,add :std::ios_base::sync_with_stdio(false).which cancel theSynchronization b...
分类:其他好文   时间:2014-12-13 18:04:43    阅读次数:176
提升C++输入输出性能的三个方法
做题的时候,由于数据量大,很多情况下得用scanf和printf代替cin和cout用于输 百度了一下,原来而cin,cout之所以效率低,是因为先把要输出的东西存入缓冲区,再输出,导致效率降低,而这段语句可以来打消iostream的输入输出缓存,可以节省许多时间,使效率与scanf与cin相差无几,还有应注意的是scanf与printf使用的头文件应是stdio.h而不是iostream。...
分类:编程语言   时间:2014-12-13 01:01:28    阅读次数:193
gcc编译通过,运行却显示“段错误”的解决方法
?第一次在Liunx上(liunx mint 17)使用gcc编译c文件,竟然提示“找不到stdio.h",经过google后发现执行sudo apt-get install build-essential即可,详见:http://slipper-99933.blog.163.com/blog/s....
分类:其他好文   时间:2014-12-12 11:25:16    阅读次数:193
实例讲解Linux下的makefile
1、程序代码结构如下makefile/|-- Makefile|-- haha.c`-- hehe.c 1.1、需要被编译的源代码如下$ cat haha.c #include "stdio.h"int main(){ printf("ha ! ha !\n"); return 0;}...
分类:系统相关   时间:2014-12-11 17:07:47    阅读次数:142
查看GB2312码表
C++代码: #include?<stdio.h> int?main() { ????puts("GB2312编码"); ???? ????const?int?charsPerLine?=?15; ????char?text[3]?=?""; ????for?(int?rowCode?=?1;?rowCode...
分类:其他好文   时间:2014-12-11 06:49:13    阅读次数:199
二叉树前后中序遍历的非递归实现
其中前序和中序,简单且容易理解。后序遍历有难度。 #include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "string.h" typedef struct BiNode { char data; struct BiNode *lchild,*rchild; }BiNode,*...
分类:其他好文   时间:2014-12-10 16:27:47    阅读次数:230
修改Visual Stdio 2010界面,以及添加一些其它VS2010的插件
打开 Tools\Extension Manager(工具\扩展管理器)。点联机库。搜索“visual studio color theme editor”,就能看到一个名为“visual studio color theme editor”的扩展,下载安装好这个扩展,重新启动 Visual Stu...
分类:其他好文   时间:2014-12-10 16:04:39    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!