小编Shi*_*arn的帖子

'CREATE VIEW'必须是查询批处理中的第一个语句

基本上它的标题是什么.这是我的代码.

USE Assignment2;
GO

/* Player View (2 marks)
    Create a view which shows the following details of all players:
        • The ID number of the player
        • The first name and surname of the player concatenated and given an alias of “full_name”
        • The team ID number of the player (if applicable)
        • The team name of the player (if applicable)
        • The coach ID number of the player (if applicable)
        • The name of the player’s coach (if …
Run Code Online (Sandbox Code Playgroud)

sql sql-server-2008

23
推荐指数
2
解决办法
5万
查看次数

C程序中的条件不会产生所需的结果

我正在编写一个程序,通过插入3个整数来识别用户可以制作的三角形.之后,根据它所经历的条件和陈述,它确定它们可以制作的三角形是平衡(所有边都相同),还是SCALENE(没有边相同),或者ISOSCELES(双面相同).用户在每次询问时输入1-15cm之间的值.如果用户键入低于或高于限制的任何内容,程序会告知他们无法完成并且只是停止.

这是我的代码

    /*** Purpose: To create a C program which takes 3 integers and produces a result that shows which triangle(If valid) they have chosen.***/

   #include <stdio.h>
int main()
{
    /*** Declaring triangle variable sides ****/

  float sideA;
  float sideB;
  float sideC;
  char ch;

  printf("Lets explore triangles! Please insert a value for side 'A' of your triangle.\n");
  printf(" Ranging from 1-15cm.\n");
  while(scanf("%d", &sideA) != 1)
  {
    printf("You inserted an incorrect value. Please insert a number ranging between 1-15cm, and try …
Run Code Online (Sandbox Code Playgroud)

c boolean-logic if-statement

1
推荐指数
1
解决办法
195
查看次数

标签 统计

boolean-logic ×1

c ×1

if-statement ×1

sql ×1

sql-server-2008 ×1