Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~243 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for Erroneous Seth

Hello to everyone, I am having this problem with the following code: [code] typedef struct test { int i; char c[50]; } testStruct; int main() { char *pData; testStruct t; t.i = 5; strcpy_s(t.c, 50*sizeof(char), "hello"); pData = (char *)malloc(sizeof(t)); memcpy(&pData, &t, sizeof(t)); testStruct a; memcpy(&a, &pData, sizeof(t)); cout << …

Member Avatar for Erroneous Seth
0
243