#include<stdio.h>
void main()
{
float score[3][2], average[3], temp;
char info[2][20] = { "C programming","English" };
int i, j;
for (i = 0; i < 3; i++)
{
printf("NO:%d\n", i+1);
for (j = 0; j < 2; j++)
{
printf("%s", info[j]);
scanf("%f", &score[i][j]);
}
}
for (i = 0; i < 2; i++)
{
temp = 0;
for (j = 0; j < 3; j++)
temp += score[j][i];
average[i] = temp / 3;
printf("%s:%.2f\n", info[i], average[i]);
}
æ¯"stdafx.h"â¦â¦
ç¶åâ¦â¦
è¿æï¼å¦æä¸æ³æ·»å æ¯æ¬¡é½è¦æ·»å "stdafx.h"å¯ä»¥éç¨ä»¥ä¸æ¹å¼å建项ç®
æ°å»º--ã项ç®--ãC/C++--ãç©ºé¡¹ç® ç¶å项ç®--ãæ·»å æ°é¡¹--ãéæ©C++头æ件--ãç¡®å®ã
追é®ä½ è¿ä¸ªè½¯ä»¶å¥ååï¼é误æ示çæ¹å¼å¾å¥½å
èä¸åæ ·ç代ç 为ä»ä¹å¦ä¸ä¸ªå°±å¯ä»¥è¿è¡ï¼