Skip to content

Instantly share code, notes, and snippets.

View fortheday's full-sized avatar
🤩

magicpotato fortheday

🤩
View GitHub Profile

https://en.wikipedia.org/wiki/Precompiled_header

The AFX in stdafx.h stands for Application Framework eXtensions. AFX was the original abbreviation for the Microsoft Foundation Classes (MFC). While the name stdafx.h is used by default, projects may specify an alternative name.

int main(int argc, char * const argv[], char * const envp[])
{
while (*envp)
cout << *(envp++) << endl;
return 0;
}
class Program
{
const string strLine = "----------------------------------------";
#region Credentials
const string _customerKey = "";
const string _customerSecret = "";
const string _userAccessToken = "";
const string _userAccessSecret = "";
#endregion
unsigned char chVal = 1; // ch로 하면 CountHigh와 겹치므로 주의.
__asm ror chVal, 1; Rotate Right
for (unsigned char bitMask = 1 << 7; 0 < bitMask ; bitMask >>= 1)
_putch(chVal & bitMask ? '1' : '0');
static void localFunc();// scope is same file
static int g_localInt; // scope is same file
#define DECL_STR(head, name) char *psz##head##_##name = #name
DECL_STR(Product, Potato);
DECL_STR(Product, Apple);
pszProduct_Apple;
pszProduct_Potato;
#define V(code) puts(#code); code;
V(int x = 3);
V(x = 4);
V(std::cout << x << std::endl);
using namespace std;
void procArray(int intArr[])
{
}
void TestMain()
{
int intArr[] = { 1, 2, 3 };
procArray(intArr);
printf("%zu %llu", sizeof(int *), (unsigned int)(((int *)0) + 2));
char buf[1024];
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), 0, buf, 1024, NULL);
MessageBox(NULL, buf, NULL, MB_OK);