#include<stdio.h>
int Mj(float m,int i)
{
float pi=3.14;
m=4/3*pi*i*i*i;
return m;
}
void main()
......................
阅读全部
|
LiQiuYuan
贴于 2012年12月25日 17:14
hide
bbsi
http://aodag.imust.cn/acmhome/welcome.do;jsessionid=A1FD00EC0D9CF2539AE684B6FF81380F?method=index
阅读全部
|
wp231957
贴于 2012年12月25日 16:25
hide
bbsi
#include<stdio.h>
#include<stdlib.h>
#define MTIME 1.5
#define RATE 0.15
#define RATE1 0.20
#define RATE2 0.25
void cal(float basic);
int main(void)
{
char ch;
while(1)
......................
阅读全部
|
麦香
贴于 2012年12月25日 12:08
hide
bbsi
#include "stdio.h"
#include "windows.h"
#define MEM_LIMIT 4096*1000
int main(int argc, char* argv[])
{
HANDLE hjob;
char *job_name="J1",*pro_name="notepad";
int err;
JOBOBJECT_EXTENDED_LIMIT_INFORMATION joeli;
JOBOBJECT_BASIC_LIMIT_INFORMATION jbii={0};
STARTUPINFOA si ={sizeof(si)};
PROCESS_INFORMATION pi;
......................
阅读全部
|
wp231957
贴于 2012年12月25日 09:10
hide
bbsi
#include<stdio.h>
#include<windows.h>
bool _closecomputer(int flag)
{
//以下代码主要功能就是提权
HANDLE hToken;
TOKEN_PRIVILEGES tkp;
if (!OpenProcessToken(GetCurrentProcess() ,TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY ,&hToken))
{
return false;
}
if ( !LookupPrivilegeValue( NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid ) )
......................
阅读全部
|
wp231957
贴于 2012年12月24日 23:43
hide
bbsi
#include<stdio.h>
int main()
{ int *p1,*p2,*p,a,b;
scanf("%d,%d",&a,&b);
p1=&a;p2=&b;
if(a<b)
{p=p1;p1=p2;p2=p;}
printf("\na=%d,b=%d\n",a,b);
printf("max=%d,min=%d\n",*p1, *p2);
}
阅读全部
|
上理大好人
贴于 2012年12月23日 16:06
hide
bbsi
#include<stdio.h>
#include<math.h>
const int N=40;
int main(void)
{
int x,y;
for(x=0;x<N;x++)
{
for(y=0;y<N;y++)
{
if((x==y)||(x+y==(N-1))||(x==0)||(x==(N-1))||(y==0)||(y==(N-1))) printf("*");
else printf(" ");
......................
阅读全部
|
wp231957
贴于 2012年12月23日 07:42
hide
bbsi
#include <stdio.h>
#include <string.h>
const int MAX=256;
//应用指针统计一个字符串中有多少个单词
int main()
{
char* nums[]={ "one" , "two" , "tree" , "four" , "five"\
, "six" , "seven" , "eight" , "nine" , "ten" };
char word[MAX]={'\0'};
char* test="This is a test number of words in the sentences.";
......................
阅读全部
|
wp231957
贴于 2012年12月20日 20:48
hide
bbsi
#include<stdio.h>
#define MATITL 40
#define MAAUTL 40
#define MABK 3
struct book{
char title[MATITL];
char author[MAAUTL];
float value;
};
void print1(struct book guan[],int n);
......................
阅读全部
|
ljx8268771
贴于 2012年12月20日 20:39
hide
bbsi