#include <windows.h>
HINSTANCE hInst; // 当前实例
HWND stringView;
// 函数: WndProc(HWND, UINT, WPARAM, LPARAM)
// 目的: 处理主窗口的消息。
// WM_DESTROY - 发送退出消息并返回
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{
case WM_LBUTTONDOWN:
......................
阅读全部
|
gougoudan
贴于 2020年6月24日 15:22
hide
bbsi
#include <stdio.h>
void sort(int a[], int n)
{
int i, j;
for (i = 0; i < n - 1; i++){
for (j = 0; j < n - i - 1; j++){
if (a[j] > a[j + 1]){
int tmp = a[j];
a[j] = a[j + 1];
a[j + 1] = tmp;
}
......................
阅读全部
|
gougoudan
贴于 2020年6月24日 11:27
hide
bbsi
#include <stdio.h>
void sort(int a[], int n)
{
int i, j;
for (i = 0; i < n - 1; i++){
for (j = 0; j < n - i - 1; j++){
if (a[j] > a[j + 1]){
int tmp = a[j];
a[j] = a[j + 1];
a[j + 1] = tmp;
}
......................
阅读全部
|
gougoudan
贴于 2020年6月24日 11:15
hide
bbsi
#include <stdio.h>
int main()
{
int zu = 0;
int cnt[20] = {};
int temp[20][50] = {};
scanf("%d", &zu);
for (int i = 0; i < zu; ++i){
scanf("%d", &cnt[i]);
for (int k = 0; k < cnt[i]; ++k){
scanf("%d", &temp[i][k]);
......................
阅读全部
|
gougoudan
贴于 2020年6月24日 10:21
hide
bbsi
#include <stdio.h>
int main()
{
int zu = 0;
int cnt[20] = {};
float temp[20][50] = {};
scanf("%d", &zu);
for (int i = 0; i < zu; ++i){
scanf("%d", &cnt[i]);
for (int k = 0; k < cnt[i]; ++k){
scanf("%f", &temp[i][k]);
......................
阅读全部
|
gougoudan
贴于 2020年6月24日 10:13
hide
bbsi
#include <stdio.h>
int main()
{
int c = 0;
char* s;
char temp[200] = {};
scanf("%s", temp);
s = temp;
while (*s){
if (*s == '#') break;
......................
阅读全部
|
gougoudan
贴于 2020年6月24日 10:02
hide
bbsi
#include <stdio.h>
int main()
{
float d, c, z;
scanf("%f %f", &d, &c);
z = d*c;
if (z >= 399) z -= 80;
else if (z >= 299) z -= 50;
else if (z >= 199) z -= 30;
printf("%.2f\n", z);
return 0;
......................
阅读全部
|
gougoudan
贴于 2020年6月24日 09:56
hide
bbsi
#include <stdio.h>
int main()
{
const float pi = 3.1416f;
float r, l;
scanf("%f %f", &l, &r);
printf("%.2f\n", pi*r*r + 2 * r*l);
return 0;
}
阅读全部
|
gougoudan
贴于 2020年6月24日 09:50
hide
bbsi
#include <stdio.h>
int main()
{
const float pi = 3.1416f;
float r, l;
scanf("%f %f", &l, &r);
printf("%.2f", pi*r*r + 2 * r*l);
return 0;
}
阅读全部
|
gougoudan
贴于 2020年6月24日 09:49
hide
bbsi
C语言初学者,请问这是啥意思,有啥子用呀
int m;
m = *a;
*a = *b;
*b = m;
阅读全部
|
wegame
贴于 2020年6月23日 00:08
show
bbsi