小编Awa*_*sen的帖子

使用SpringBoot在H2数据库中创建表时出现问题

我对尊敬的用户的问候我是 Spring Boot 的新手,我只想在 H2 数据库中创建简单的表,这是模型类

@Entity
public class Human 

{

    @Id
    private long id;


    private String firstname;

    private String lastname;

        private String email;

        public long getId() {
            return id;
        }




        public void setId(int id) {
            this.id = id;
        }
        public String getFirstname() {
            return firstname;
        }
        public void setFirstname(String firstname) {
            this.firstname = firstname;
        }
        public String getLastname() {
            return lastname;
        }
        public void setLastname(String lastname) {
            this.lastname = lastname;
        }
        public String getEmail() {
            return email;
        }
        public …
Run Code Online (Sandbox Code Playgroud)

spring jpa spring-mvc h2 spring-boot

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

C程序编写不正确

我的C应用程序有点问题; 请帮我解决问题:

#include <stdio.h>

float t[5];
int i;
float *p;

*p=t;

int main (void)
{

    for (i=0;i<=4;i++)
    {
        printf("t[%d]",i);
        scanf("%f",&t[i]);
    }

    for (i=0;i<=4;i++)
    {
        printf("t[%d]=%f \n",i,*(p+i));
    }

    return 0;
}
Run Code Online (Sandbox Code Playgroud)

当我编译这个程序时,编译器给了我这个问题:

[警告]从不兼容的指针类型初始化

这是什么意思,我如何修改我的代码,以便编译和正确运行?

c arrays pointers

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

标签 统计

arrays ×1

c ×1

h2 ×1

jpa ×1

pointers ×1

spring ×1

spring-boot ×1

spring-mvc ×1