首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <stdio.h>
main()
{
   int a=-1,b=1;
   if((++a<0)&&!(b--<=0))
   printf("%d%d",a,b);
   else 
   printf("b=%d,a=%d",b,a); 
}
a=o,b=1?
阅读全部 | 以梦為马 贴于 2016年11月10日 10:59     hide bbsi
import java.awt.*;
import javax.swing.*;
 
/*dkplus专业搜集和编写实用电脑软件教程,
*搜集各种软件资源和计算机周边,独立制作视频和ppt和音频微信公众号,
*点击进入 dkplus官方博客 (java网络编程http://dkplus.iteye.com),
*微信搜索dkplus关注公众号可获取海量计算机周边资源。*/
 
public class GraphPanel extends JPanel {
   int width=10;  //椭圆高度值
   int hight=10;  //椭圆宽度值
 
......................
阅读全部 | stephenlearn 贴于 2016年11月9日 12:01     hide bbsi
#include<pthread.h>
#include<stdio.h>
void identify() {
pid_t pid = getpid();
printf("My pid is %d\n", pid);
return NULL;
}
void main() {
pthread_t thread;
pthread_create(&thread, NULL, (void *) &identify, NULL);
identify();
}
阅读全部 | kelly01 贴于 2016年11月7日 13:18     hide bbsi
#include<stdio.h>
#include<malloc.h>

#define MAXSIZE 100

typedef struct
{
char name[20];
char sex;
}person;

typedef struct
......................
阅读全部 | 余生 贴于 2016年11月6日 15:37     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{
srand((unsigned)time(NULL));
char ch=0;
int comp=0;
int man=0;
char * s[]={"石头","剪子","布"};
while(1)
......................
阅读全部 | wp231957 贴于 2016年11月4日 14:33     hide bbsi
#include <stdio.h>

int main()
{
int N, , b;
scanf("%d", &N);
for(b = 1; b <= N; b++)
  {
     for(a = 1; a <= b; a++)
          {
      printf("a * b = %d ", a * b);
      if(a == b)
......................
阅读全部 | 后卿 贴于 2016年11月3日 18:22     hide bbsi
include<iostream>
#include<vector>
#include"math.h"
#include<iomanip>

using namespace std;

vector<bool> zhengshu;//存整数部分的二进制 
vector<bool> xiaoshu;//存小数部分的二进制 

vector<bool> get_zhengshu_2b(float a)
{
......................
阅读全部 | 杰少_li 贴于 2016年11月1日 16:11     hide bbsi
#include<iostream>
#include<vector>
#include"math.h"
#include<iomanip>

using namespace std;

void fun(bool m)//打印 
{
cout<<m;
}
vector<bool> get_hex_2b(unsigned int a)//将十六进制转化成二进制 
......................
阅读全部 | 杰少_li 贴于 2016年11月1日 16:06     hide bbsi
#include <stdio.h>
int main()
{
int m,n,i,j,p,q,t;
int a[10][10]={0};
int x1,y1,x2,y2,k;
scanf("%d%d",&n,&m);
for(i=0;i<n;i++)
{ for(j=0;j<m;j++)
scanf("%d",&a[i][j]);}
scanf("%d",&t);
for(i=0;i<t;i++)
......................
阅读全部 | cbbysq 贴于 2016年11月1日 13:34     hide bbsi
#include<stdio.h>
#include<stdlib.h>
void main()
{
int i,j;
FILE *fp;  //指向文件的指针
fp=fopen("Lena.raw","rb");  //打开文件。注意raw格式图像要以只读二进制流的形式打开
if(!fp)
{
printf("ERROR!\n");
}
unsigned char *pData=new unsigned char[256*256]; //注意:raw图像用无符号char型读入
......................
阅读全部 | lgh1991 贴于 2016年10月31日 14:30     hide bbsi
上一页 165 166 167 168 169 170 171 172 173 174 下一页