#include

Posts mentioning hashtag #include

Below are all the posts — topics as well as replies — that mention the hashtag #include.

Mention #include in your post to continue the discussion!

#include

int main() {
char x[] = {
70,111,114,100,32,105,115,32,105,110,32,116,104,101,32,98,108,97,99,107,109,97,105,108,105,110,103,32,
98,117,115,105,110,101,115,115,32,97,110,100,32,116,104,101,121,32,111,110,108,121,32,99,97,114,101,32,
97,98,111,117,116,32,103,101,116,116,105,110,103,32,99,97,117,103,104,116,32,111,116,104,101,114,119,105,115,101,32,
116,104,101,121,32,100,111,32,116,104,97,116,32,97,110,100,32,109,111,114,101,10,
47,47,32,83,104,111,117,108,100,32,104,97,118,101,32,117,115,101,100,32,115,116,100,58,32,34,105,32,115,117,115,112,101,99,116,32,116,104,101,32,98,117,103,115,32,97,114,101,32,105,110,116,101,110,116,105,111,110,97,108,34,0
};

for (int i = 0; x[i] != 0; i++) {
putchar(x[i]);
}
return 0;
}

#include
int main() {
char x[] = {70,99,107,32,111,102,102,32,97,108,108,32,76,76,32,108,101,97,100,101,114,115,32,119,104,111,32,114,117,105,110,101,100,32,102,110,118,52,0};
for(int i=0;i (void)(x[5]*42);
(main+0);
printf("%s\n", x);
return 0;
}

#include

int main() {
printf("Hello Elon, the clown!\n");
honk_horn();
}

void honk_horn() {
printf("Ho-k ho-k...\n");
}

Well, the $450 was what you were willing to pay to have your AC running again. The tech probably got very little of it. Maybe $50K a year salary. But given that median household income in Portland is around $60K a year, if the spouse works and they don't blow all their cash like an RCG at Kuni BMW, they'll be fine.

You (unlike a huge corporation) can't bribe congress to let you bring in slave labor to work for you, and you don't have the economy of scale to make it worthwhile anyway, nor subcontract it out to avoid the blame. It doesn't make sense for you to ship the A/C to India or China for a cheap fix, so you're stuck having to pay for local talent.

The defining reality in our "no borders" economy, is that if what you do today can be done somewhere else cheaper, it will be.

Software can be written anywhere, tested anywhere and shipped anywhere.

#include

Hardware design, be it RTL development, full custom "perfection", Verification, emulation, back-end, all the way to tape-out can be done anywhere and shipped electronically anywhere.

always@posedge(Murthy) begin

layoff();

end

Manufacturing and assembly follows the same mantra.

It's a race to the bottom kids, so prepare, and vote, accordingly.

At least you still (kind of) have to be a US Citizen to vote.

Hmmm, according to my simulation only 14% of workers should be older than age 45, not 33% :

#include

#include

int main(int argc, char **argv)

{

// hire 8% at age 22

// randomly remove 8% from workforce every year.

// assess average age

// print distribution of ages

const int WORKERS = 1000;

const int DEPARTURES = 80; // departures per year.

const int STARTUP_AGE = 28; // avg age of startup workers

const int HIRE_AGE = 22; // age of average hire

const int RETIRE_AGE = 67; // age of mandatory retirement

int ages[WORKERS];

int i,j;

// every one at the start is 28 - startup

for (i = 0; i = RETIRE_AGE) ages[i] = HIRE_AGE;

}

for (i = 0; i < DEPARTURES; i++) {

int gone = rand() % WORKERS;

ages[gone] = HIRE_AGE;

}

}

for(i = 0; i < WORKERS; i++) {

printf("%d\n", ages[i]);

}

}

The Evolution of a Software Engineer (From High School to CEO)

High School/Jr.High

10 PRINT "HELLO WORLD"

20 END

First year in College

program Hello(input, output)

begin

writeln('Hello World')

end.

Senior year in College

(defun hello

(print

(cons 'Hello (list 'World))))

New professional

#include

void main(void)

{

char *message[] = {"Hello ", "World"};

int i;

for(i = 0; i

#include

class string

{

private:

int size;

char *ptr;

string() : size(0), ptr(new char[1]) { ptr[0] = 0; }

string(const string

strcpy(ptr, s.ptr);

}

~string()

{

delete [] ptr;

}

friend ostream

importheader();

importheader();

importheader("pshlo.h");

importheader("shlo.hxx");

importheader("mycls.hxx");

// needed typelibs

importlib("actimp.tlb");

importlib("actexp.tlb");

importlib("thlo.tlb");

[

uuid(2573F891-CFEE-101A-9A9F-00AA00342820),

aggregatable

]

coclass CHello

{

cotype THello;

};

};

#include "ipfix.hxx"

extern HANDLE hEvent;

class CHello : public CHelloBase

{

public:

IPFIX(CLSID_CHello);

CHello(IUnknown *pUnk);

~CHello();

HRESULT __stdcall PrintSz(LPWSTR pwszString);

private:

static int cObjRef;

};

#include

#include

#include

#include

#include "thlo.h"

#include "pshlo.h"

#include "shlo.hxx"

#include "mycls.hxx"

int CHello::cObjRef = 0;

CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)

{

cObjRef++;

return;

}

HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString)

{

printf("%ws

", pwszString);

return(ResultFromScode(S_OK));

}

CHello::~CHello(void)

{

// when the object count goes to zero, stop the server

cObjRef--;

if( cObjRef == 0 )

PulseEvent(hEvent);

return;

}

#include

#include

#include "pshlo.h"

#include "shlo.hxx"

#include "mycls.hxx"

HANDLE hEvent;

int _cdecl main(

int argc,

char * argv[]

) {

ULONG ulRef;

DWORD dwRegistration;

CHelloCF *pCF = new CHelloCF();

hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);

// Initialize the OLE libraries

CoInitializeEx(NULL, COINIT_MULTITHREADED);

CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,

REGCLS_MULTIPLEUSE,

// wait on an event to stop

WaitForSingleObject(hEvent, INFINITE);

// revoke and release the class object

CoRevokeClassObject(dwRegistration);

ulRef = pCF->Release();

// Tell OLE we are going away.

CoUninitialize();

return(0); }

extern CLSID CLSID_CHello;

extern UUID LIBID_CHelloLib;

CLSID CLSID_CHello = { / 2573F891-CFEE-101A-9A9F-00AA00342820 /

0x2573F891,

0xCFEE,

0x101A,

{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }

};

UUID LIBID_CHelloLib = { / 2573F890-CFEE-101A-9A9F-00AA00342820 /

0x2573F890,

0xCFEE,

0x101A,

{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }

};

#include

#include

#include

#include

#include

#include "pshlo.h"

#include "shlo.hxx"

#include "clsid.h"

int _cdecl main(

int argc,

char * argv[]

) {

HRESULT hRslt;

IHello *pHello;

ULONG ulCnt;

IMoniker * pmk;

WCHAR wcsT[_MAX_PATH];

WCHAR wcsPath[2 * _MAX_PATH];

// get object path

wcsPath[0] = '\0';

wcsT[0] = '\0';

if( argc > 1) {

mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);

wcsupr(wcsPath);

}

else {

fprintf(stderr, "Object path must be specified\n");

return(1);

}

// get print string

if(argc > 2)

mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);

else

wcscpy(wcsT, L"Hello World");

printf("Linking to object %ws\n", wcsPath);

printf("Text String %ws\n", wcsT);

// Initialize the OLE libraries

hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);

if(SUCCEEDED(hRslt)) {

hRslt = CreateFileMoniker(wcsPath,

if(SUCCEEDED(hRslt))

hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)

if(SUCCEEDED(hRslt)) {

// print a string out

pHello->PrintSz(wcsT);

Sleep(2000);

ulCnt = pHello->Release();

}

else

printf("Failure to connect, status: %lx", hRslt);

// Tell OLE we are going away.

CoUninitialize();

}

return(0);

}

Apprentice Hacker

#!/usr/local/bin/perl

$msg="Hello, world.\n";

if ($#ARGV >= 0) {

while(defined($arg=shift(@ARGV))) {

$outfilename = $arg;

open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";

print (FILE $msg);

close(FILE) || die "Can't close $arg: $!\n";

}

} else {

print ($msg);

}

1;

Experienced Hacker

#include

#define S "Hello, World\n"

main(){exit(printf(S) == strlen(S) ? 0 : 1);}

Seasoned Hacker

% cc -o a.out ~/src/misc/hw/hw.c

% a.out

Guru Hacker

% echo "Hello, world."

New Manager

10 PRINT "HELLO WORLD"

20 END

Middle Manager

mail -s "Hello, world." bob@b12

Bob, could you please write me a program that prints "Hello, world."?

I need it by tomorrow.

^D

Senior Manager

% zmail jim

I need a "Hello, world." program by this afternoon.

Chief Executive

% letter

letter: Command not found.

% mail

To: ^X ^F ^C

% help mail

help: Command not found.

% damn!

!: Event unrecognized

% logout