Posts by Lucas Mior • 11 points
2 posts
-
0
votes2
answers5028
viewsA: How to put each line of a txt file into a vector?
There are several ways to solve the problem, the simplest would be like this: #include <stdio.h> int main() { int idade; char nome[100]; char apelido[100]; char trash[100]; FILE *f = fopen(…
canswered Lucas Mior 11 -
1
votes1
answer111
viewsA: Cast struct c/c++
The function got_packet gets the argument cont u_char* packet, which is a array of characters that contain the bytes of the received package. To struct sniff_ethernet represents the Ethernet header…
canswered Lucas Mior 11