码迷,mamicode.com
首页 >  
搜索关键字:main    ( 65088个结果
Hdu1002 大数加法
#include #include #include #include using namespace std;const int MAX = 1010;char s1[MAX],s2[MAX];int s[MAX];int main(){ int n, c, m, count = 1; ...
分类:其他好文   时间:2014-07-22 22:51:16    阅读次数:145
题目1003:A+B
题目描述:给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。现在请计算A+B的结果,并以正常形式输出。输入:输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9 3 int main(int argc, char const *argv[]) 4 { 5 .....
分类:其他好文   时间:2014-07-22 22:51:14    阅读次数:278
STL 源码剖析 算法 stl_algo.h -- binary_search
int main() { int A[] = { 1, 2, 3, 3, 3, 5, 8 }; const int N = sizeof(A) / sizeof(int); for (int i = 1; i <= 10; ++i) { cout << "Searching for " << i << ": " << (binary_search(A, A + N, i) ? "present" : "not present") << endl; } } /* ...
分类:其他好文   时间:2014-07-19 23:29:59    阅读次数:275
大数相乘
#include #include #include #define N 100 void GetDigits(int *a,char *s); void multiply(int *a,int *b,int *c); main() { char s1[N],s2[N]; int i,j,a[N],b[N],c[N*2]; printf("\n...
分类:其他好文   时间:2014-07-19 23:27:43    阅读次数:223
hdu 2031 进制转换
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2031题目大意:进制转换,先变成十进制在进行进制间的转化。 1 #include 2 int main() 3 { 4 int n,m,i,j,f,p; 5 char a[200]; 6 ...
分类:其他好文   时间:2014-07-19 23:19:36    阅读次数:241
C++中如何split字符串(转)
#include #include #include using namespace std;int main(){ string s("Somewhere down the road"); istringstream iss(s); while (iss) ...
分类:编程语言   时间:2014-07-19 23:13:54    阅读次数:248
c程序的启动过程的反汇编分析
0x01  工具准备 1.最简c代码一只, int main(){ return 0;} 2.ollydbg 3.VC++6.0 4.GCC(mingw) 0x02  代码分析 int main() { return 0; } 在gcc下,添加-nostdlib编译选项,即链接器不链接标准库,会提示以下错误信息:   D:\Backup\我的文档\src>gcc mai...
分类:其他好文   时间:2014-07-19 23:12:48    阅读次数:452
听写英语单词的小程序
//有一个问题没有解决:输入begin,若用户输入了char类型的数据就成了个死循环了; //其他函数没有复制过来,这里只有main函数; int main() { int Chinese(int i, int b = 0); int English(int i, string word, int b = 0); void Grade(int i, float j, int k, int ...
分类:其他好文   时间:2014-07-19 23:12:39    阅读次数:310
Android自定义标题栏
项目中用到标题栏,发现安卓提供的actionbar无法将标题居中显示,另外标题栏的颜色需要自定义,所以需要使用自定义标题栏 。新建工程MyTitle,不用修改main.xml文件,在/res/layout目录下新建布局文件title.xml,在里面添加一个TextView和一个Button,完整的t...
分类:移动开发   时间:2014-07-19 23:06:43    阅读次数:336
java程序 启动时参数
iEMP34:/opt/version/lktest/b030/jre/jre_linux/bin # ./java -classpath . SysInfoException in thread "main" java.lang.NoClassDefFoundError: org/hyperic....
分类:编程语言   时间:2014-07-19 22:31:36    阅读次数:747
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!