我对 Maven 非常陌生,我正在创建我的第一个 maven-archetype-quickstart Maven 项目 
然后它生成错误消息::
但在我的项目浏览器中:
我无法理解为什么它每次在我的项目以及我的 pom.xml 文件中显示红色警告标记时都会创建一个适当的 maven 项目。
> pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.akash</groupId>
<artifactId>feind</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>feind</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin> …Run Code Online (Sandbox Code Playgroud) 我的问题与this问题类似,但我在Windows 7 [32位]中使用PHP版本7.4.1。
<?php
if(!function_exists('mysqli_init') && !extension_loaded('mysqli')){
echo 'We don\t have mysqli';
}
else{
echo'Yes';
}
mysqli_connect('localhost', "root", "", "akash");
?>
Run Code Online (Sandbox Code Playgroud)
它返回:
我们没有 mysqli
致命错误:未捕获错误:调用未定义函数 mysqli_connect()
我尝试过的:
因为我已经看到了关于这个问题的各种答案,并且所有答案都只是基于php.inf 文件,但在我的 php 目录中没有这个名称的文件,所以在查看如何安装这个文件后,我真的找不到方式,访问http://php.net/manual/en/mysqli.installation.php后,我向下滚动找到“PHP 5.3.0 及更高版本”部分,其中显示我不需要担心安装它。
#include<iostream>
#include<cstdlib>
using namespace std;
struct node
{
int data; //data
node *next; //link
};
class stack // stack using linked list
{
public:
node *top; // top element of stack
public:
stack()
{
top= NULL;
}
void push(int value)
{
node *temp = new node; // create a new node
temp-> data = value;
temp-> next = NULL;
if(top==NULL) // stack is empty
{
top=temp;
temp=NULL;
}
else
{
temp-> next = top;
top=temp;
temp=NULL;
}
}
//template <class …Run Code Online (Sandbox Code Playgroud)