小编eq-*_*eq-的帖子

PAM中的"会话必需模块"等效于Windows

我有这个漂亮的PAM模块,用于验证身份验证的每个会话(如桌面会话),并根据某些标准允许或阻止它.我想在Windows 7上做同样的事情.

现在,这听起来可能有点愚蠢或微不足道,但我真的不知道我的方式绕过Windows系统,因此会喜欢一些关于如何实现类似的东西的指针(即,例如在例如查询的服务或模块)用户尝试启动会话.)

windows pam windows-7

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

无法将char*转换为char

我的功能被注释掉了因为我试图首先解决这个问题> <.但是当我尝试将数组传递给函数时,编译会出现错误消息.

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)

c++ multidimensional-array

-3
推荐指数
1
解决办法
812
查看次数

标签 统计

c++ ×1

multidimensional-array ×1

pam ×1

windows ×1

windows-7 ×1