我目前正在用PuTTY编写代码,似乎在使用if语句时遇到了技术上的困难。我的程序目前还不完整,但我想在完成代码之前修复这个错误。Type '1' for differentiation or '2' for integration. "); if (probtypeconstant is a decimal and the power is an integer, and type 3 for all other ca
我的问题是,用户需要输入一个形状名称,该形状名称应该通过switch语句。但我不能这么做。因为我不知道如何将字符串传递给switch语句。有人能帮帮我吗?我将添加我的代码以供参考。include <stdio.h>
int h,w,r,l,area;scanf("%s",&shape);
switch</e
我正在尝试创建一个程序,将一条记录添加到switch case 4中的文件中,但它不断地经历一个循环。有没有人能帮帮忙?我想要它添加一个学生的记录,然后突破那个案例,进入主菜单。Exit\n");
{ createFile(); case 4:
writeFile(); break;
scanf("%