- 分享
- 0
- 人气
- 0
- 主题
- 10
- 帖子
- 551
- UID
- 36793
- 积分
- 862
- 阅读权限
- 17
- 注册时间
- 2006-6-8
- 最后登录
- 2015-5-7
- 在线时间
- 2568 小时
|
#include "stdafx.h"
#include <stdio.h>
int main()
{
int add,sub,mul,tran,opt;
printf("---------\n");
printf("MAIN MENU\n");
printf("---------\n");
printf("1-MATRIX ADDITION\n");
printf("2-MATRIX SUBTRACTION\n");
printf("3-MATRIX MULTIPLICATION\n");
printf("4-MATRIX TRANPOSE\n");
printf("5-EXIT\n");
printf("-------------------\n");
printf("Please enter your option <1/2/3/4/5>:\n");
scanf("%d",&opt);
switch(opt);
{
case 1:这里开始完全不懂怎样写!
while(opt == 5);
{
printf("---------\n");
printf("MAIN MENU\n");
printf("---------\n");
printf("1-MATRIX ADDITION\n");
printf("2-MATRIX SUBTRACTION\n");
printf("3-MATRIX MULTIPLICATION\n");
printf("4-MATRIX TRANPOSE\n");
printf("5-EXIT\n");
printf("-------------------\n");
printf("Please enter your option <1/2/3/4/5>:\n");
scanf("%d",&opt);
为何不直接 用
main();
}
} |
|