我有这个漂亮的PAM模块,用于验证身份验证的每个会话(如桌面会话),并根据某些标准允许或阻止它.我想在Windows 7上做同样的事情.
现在,这听起来可能有点愚蠢或微不足道,但我真的不知道我的方式绕过Windows系统,因此会喜欢一些关于如何实现类似的东西的指针(即,例如在例如查询的服务或模块)用户尝试启动会话.)
我的功能被注释掉了因为我试图首先解决这个问题> <.但是当我尝试将数组传递给函数时,编译会出现错误消息.
error: cannot convert ‘char*’ to ‘char (*)[7][49]’ for argument ‘1’ to
‘void save(char (*)[7][49])’
Run Code Online (Sandbox Code Playgroud)
这发生在我的代码中的第63:61,67:46和70:36行.
//Header
#include <iostream>
#include <fstream>
using namespace std;
//function prototype
/*
Name: deal
Process: takes cards from file into 3d array and 2d array
Input: array name (int),2d array name (int)
Output: none
Dependencies: none
*/
void deal ( char tablue [7][7][49] , char wastePile [24][24]);
/*
Name: displayCards
Process: Displays cards from array to screen
Input: tablue array (char)
Output to screen: …Run Code Online (Sandbox Code Playgroud)