Raised This Month: $ Target: $400
 0% 

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: klippy
Forum: Off-Topic 01-02-2016, 18:01
Replies: 18
Views: 3,220
Posted By klippy
Re: C++ Questions

Here, I wrote some code to show you how you could load a string of indeterminate length. It's more C-like, and as I said, if I were to write real C++ code, I would use std::string and such.
This...
Forum: Off-Topic 01-02-2016, 11:30
Replies: 18
Views: 3,220
Posted By klippy
Re: C++ Questions

If you are wondering why does it print same name and nickname for every friend, it's because CFriends::pName and CFriends::pNickname are just pointers, and by doing:

pFriends[iterator].pName =...
Forum: Off-Topic 01-01-2016, 18:42
Replies: 18
Views: 3,220
Posted By klippy
Re: C++ Questions

Miu also said up above:

meaning that code like the following, seen often in HLSDK:

CBaseEntity *pEntity = (CBaseEntity *)GET_PRIVATE(pent);

which just returns entity's private data...
Forum: Off-Topic 01-01-2016, 16:41
Replies: 18
Views: 3,220
Posted By klippy
Re: C++ Questions

This is probably a bad example, can't think of any good one right now, but you can try running this code:

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

char *newString() {
char...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 23:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode