69,374
社区成员
发帖
与我相关
我的任务
分享
源程序
void main()
{
int A[N] , B[N] , C[M] , i , j;
printf( "请依次输入A的元素:\n" );
for( i = 0 ; i < 10 ; i++ )
{
scanf( "%d" , &A[i] );
}
printf( "请依次输入B的元素:\n" );
for( i=0 ; i < 10 ; i++ )
{
scanf( "%d" , &B[i] );
}
Alternate( A , B , C );
for( j = 0 ; j < 20 ; j++ )
{
printf( "%5d" , C[j] );
}
}
1231321
测试一下
public void main(String args[]){
}
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style= 0;//CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc= (WNDPROC)WndProc;
wcex.cbClsExtra= 0;
wcex.cbWndExtra= 0;
wcex.hInstance= hInstance;
wcex.hIcon= 0;
wcex.hCursor= LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground= (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName= 0;
wcex.lpszClassName= "MainWindowClass";
wcex.hIconSm= 0;
RegisterClassEx(&wcex);
public void main(String args[]){
}
hello
using namespace Eigen;
using namespace Eigen::internal;
using namespace Eigen::Architecture;
#include<iostream>
#include<stdio.h>
#include<string.h>
int main(void)
{
int num = -12345,j=0,i=0,flag=0,begin,end;
char str[] = "i come from tianjin.",temp;
j = strlen(str) - 1;
printf(" string = %s\n", str);
//进行全句的反转
while(j > i)
{
temp = str[i];
str[i] = str[j];
str[j] = temp;
j--;
i++;
}
printf(" string = %s\n", str);
i = 0;
//进行逐单词的反转
while(str[i])
{
if(str[i] != ' ')
{
begin = i;
while(str[i] && str[i]!=' ')
{
i++;
}
i = i-1;
end = i;
}
while(end > begin)
{
temp = str[begin];
str[begin] = str[end];
str[end] = temp;
end--;
begin++;
}
i++; //跳过单词之间的空格
}
printf(" string = %s\n", str);
return 0;
}
System.out.println("Let Me Try.");
#include<stdio.h>
#include<stdio.h>
int main(void)
{
printf("hello world \n");
return 0;
}
import java.util.*;
这样?
mov cx,0x00
mov ss,cx
mov sp,0
http://topic.csdn.net/u/20120317/11/44a73fa0-2614-4291-8ae7-e4ad4f53bd7e.html
mov cx,0x00
mov ss,cx
mov sp,0
void main()
{
int A[N] , B[N] , C[M] , i , j;
printf( "请依次输入A的元素:\n" );
for( i = 0 ; i < 10 ; i++ )
{
scanf( "%d" , &A[i] );
}
printf( "请依次输入B的元素:\n" );
for( i=0 ; i < 10 ; i++ )
{
scanf( "%d" , &B[i] );
}
Alternate( A , B , C );
for( j = 0 ; j < 20 ; j++ )
{
printf( "%5d" , C[j] );
}
}