Click here to Skip to main content
15,891,777 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: How to write a "Hello World" app in C ... Pin
OriginalGriff8-Jun-21 23:56
mveOriginalGriff8-Jun-21 23:56 
GeneralRe: How to write a "Hello World" app in C ... Pin
pkfox9-Jun-21 1:23
professionalpkfox9-Jun-21 1:23 
GeneralRe: How to write a "Hello World" app in C ... Pin
raddevus8-Jun-21 10:19
mvaraddevus8-Jun-21 10:19 
GeneralRe: How to write a "Hello World" app in C ... Pin
DRHuff8-Jun-21 19:11
DRHuff8-Jun-21 19:11 
GeneralRe: How to write a "Hello World" app in C ... Pin
OriginalGriff8-Jun-21 19:18
mveOriginalGriff8-Jun-21 19:18 
GeneralRe: How to write a "Hello World" app in C ... Pin
Richard MacCutchan8-Jun-21 22:03
mveRichard MacCutchan8-Jun-21 22:03 
GeneralRe: How to write a "Hello World" app in C ... Pin
  Forogar  9-Jun-21 2:57
professional  Forogar  9-Jun-21 2:57 
GeneralRe: How to write a "Hello World" app in C ... or this Pin
Richard MacCutchan8-Jun-21 22:01
mveRichard MacCutchan8-Jun-21 22:01 
Or how about ...
C++
/*
 *              CodeProject Sample
 *
 ******************************************************************************
 *
 *    Name      : sample.cpp
 *
 *    Function  : Basic Console sample.
 *
 ******************************************************************************
 */

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

static unsigned long long theKeys[] =
{
	9097624470788603392LL, 4485938452361199104LL, 0, 0,
	4693335872299862016LL, 4485938452361199104LL, 4702111234474982912LL, 9097624732831990016LL,
	4485938452361199104LL, 4702111234610512128LL, 4711136060342747392LL, 0,
	4702111234610512128LL, 4485938452361199104LL, 9097624732831990016LL, 4702396244260176128LL,
	0xFF
};

int main(
	int		argc,
	char** argv
)
{
	printf("\n\n\n\n");
	for (int key = 0; theKeys[key] != 0xFF; key += 4)
	{
		for (int row = 0; row < 7; ++row)	// for each row in the maps
		{
			printf("      ");
			for (int i = 0; i < 4; ++i)
			{
				if (theKeys[key + i] == 0)
					break;
				unsigned long long lnext = theKeys[key + i] >> (56 - (row * 8));	// get the map entry
				unsigned char next = lnext & 0xFF;
				for (int col = 7; col >= 0; --col)
				{
					printf("%c", (next & (1 << col)) ? '#' : ' ');
				}
				printf("  ");	// at the end of the columns add two spaces
			}
			printf("\n");
		}
		printf("\n\n");
	}

	return 0;
}


modified 9-Jun-21 4:09am.

GeneralRe: How to write a "Hello World" app in C ... Pin
CodeWraith8-Jun-21 23:14
CodeWraith8-Jun-21 23:14 
GeneralRe: How to write a "Hello World" app in C ... Pin
OriginalGriff8-Jun-21 23:22
mveOriginalGriff8-Jun-21 23:22 
GeneralRe: How to write a "Hello World" app in C ... Pin
CodeWraith8-Jun-21 23:31
CodeWraith8-Jun-21 23:31 
GeneralRe: How to write a "Hello World" app in C ... Pin
CPallini8-Jun-21 23:41
mveCPallini8-Jun-21 23:41 
GeneralRe: How to write a "Hello World" app in C ... Pin
Maximilien9-Jun-21 1:46
Maximilien9-Jun-21 1:46 
GeneralRe: How to write a "Hello World" app in C ... Pin
enhzflep10-Jun-21 0:57
enhzflep10-Jun-21 0:57 
GeneralAre you startled easily? Pin
charlieg8-Jun-21 9:43
charlieg8-Jun-21 9:43 
GeneralRe: Are you startled easily? Pin
Cp-Coder8-Jun-21 10:13
Cp-Coder8-Jun-21 10:13 
GeneralRe: Are you startled easily? Pin
Daniel Pfeffer8-Jun-21 15:35
professionalDaniel Pfeffer8-Jun-21 15:35 
GeneralRe: Are you startled easily? Pin
Mycroft Holmes8-Jun-21 12:32
professionalMycroft Holmes8-Jun-21 12:32 
JokeRe: Are you startled easily? Pin
Peter_in_27808-Jun-21 14:46
professionalPeter_in_27808-Jun-21 14:46 
GeneralRe: Are you startled easily? Pin
Peter_in_27808-Jun-21 14:43
professionalPeter_in_27808-Jun-21 14:43 
GeneralRe: Are you startled easily? Pin
MarkTJohnson8-Jun-21 16:11
professionalMarkTJohnson8-Jun-21 16:11 
GeneralRe: Are you startled easily? Pin
BryanFazekas9-Jun-21 1:41
BryanFazekas9-Jun-21 1:41 
NewsRansomware crooks having a bad day? Pin
Cp-Coder8-Jun-21 5:24
Cp-Coder8-Jun-21 5:24 
GeneralRe: Ransomware crooks having a bad day? Pin
Gerry Schmitz8-Jun-21 5:44
mveGerry Schmitz8-Jun-21 5:44 
GeneralRe: Ransomware crooks having a bad day? Pin
OriginalGriff8-Jun-21 6:10
mveOriginalGriff8-Jun-21 6:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.