mhjerry 的 站内主页
2010
01-25
01-25
#include <stdio.h>int main(){ FILE *fp; int text=987654321;//内存中(10001101 000101110 01111011 01011100)-(177 104 222 58) int text1=0,text2=0,....
Read More >
最近在网上有很多的排列的程序,很多种方法,但都觉看不懂,所以自己写了一个自己能看懂的,思路很简单,就是俩俩交换,速度还行。
// test_67.cpp : Defines the entry point for the console application.//
#include "stdafx.h"#include<stdio.h>#define N....
Read More >
++操作容易C:\135\1.cpp(194) : error C2105: '++' needs l-
value
的报错!#include <stdio.h>
void main()
{
char a[5]={'A','B','C','D','E'},*p=a,i;
for(i=0;i<5;i++)
printf("%c",*a++)....
Read More >
书上习题10.4
有n个整数,使前面各数顺序向后移m个位置,最后m个数变成最前面m个数。写一函数实现以上功能,主函数中输入n个整数和输出调整后的n个数。
#include <stdio.h>void move(int *p,int n,int m);void main(){ int n,m,i; int num[20]; printf("how ....
Read More >
有趣的利用转义字符,祝贺别人生日快乐。
#include <stdio.h>
void your(); void birthday_message(); void main() { your(); birthday_message(); your(); } void your() { printf("\52 * \52 \x2A \52 * \52 * \52 \x2A \52 \....
Read More >
我是c语言初学者,为什么下面的结果是a=10,b=20;而不是a=20,b=10;
#include <stdio.h>void SWAP(int x,int y);void swap(int *x,int *y);void main(){ int a=10,b=20; SWAP(a,b); printf("%d,%d\n",a,b....
Read More >