我正在我的android项目中使用cocos2dx和OBOE库。当我从OBOE库导入C ++文件时,找不到某些#inclue库。如何解决?
我尝试设置cppFlags -std = c ++ 14。但这不起作用
这是我的成绩
import numpy as np
print("Resolving linear equations with unknown n:\n")
m=int(input("Number of unknowns? \n"))
n=m
matrix_a=[]
matrix_b=[]
print("\n Enter the coefficients of Matrix[A]:\n")
matrix_a=np.zeros((m,n),dtype=np.int)
print(matrix_a)
for i in range (0,m):
for j in range (0,n):
print (" Enter Coefficient [", i,",",j, "]?",end=" ")
matrix_a[i][j] = eval(input())
print(matrix_a)
m=1
print (" \n Enter the coefficients of Matrix [B] :\n")
for i in range(0,n):
matrix_b.append([])
for i in range(0,n):
for j in range(0,m):
matrix_b[i].append(j)
matrix_b[i][j]=0
for i in range (0,n):
for j in range (0,m):
print (" Enter Coefficient [", i,",",j, "]?",end=" ")
matrix_b[i][j] = eval(input())
x = np.linalg.solve(matrix_a,matrix_b)
print("Missing linear equation values:\n",x)
NDK版本-r16b
要重现此问题