Click here to Skip to main content
15,389,177 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: Developer Laptop Pin
Kirk 1038982110-Jun-21 4:39
MemberKirk 1038982110-Jun-21 4:39 
GeneralRe: Developer Laptop Pin
rjcallahan10-Jun-21 6:17
professionalrjcallahan10-Jun-21 6:17 
GeneralRe: Developer Laptop Pin
SeattleC++10-Jun-21 6:53
MemberSeattleC++10-Jun-21 6:53 
GeneralRe: Developer Laptop Pin
MichaelLuna10-Jun-21 11:29
MemberMichaelLuna10-Jun-21 11:29 
GeneralRe: Developer Laptop Pin
Bill S10-Jun-21 12:31
MemberBill S10-Jun-21 12:31 
GeneralRe: Developer Laptop Pin
Fabio Franco11-Jun-21 0:33
professionalFabio Franco11-Jun-21 0:33 
GeneralRe: Developer Laptop Pin
Caslen16-Jun-21 22:40
MemberCaslen16-Jun-21 22:40 
GeneralHow to write a "Hello World" app in C ... PinPopular
OriginalGriff8-Jun-21 9:52
mveOriginalGriff8-Jun-21 9:52 
... and do it properly!
C
#include <stdio.h>

int main()
    {
    unsigned char data[] =
        {1,3,1,2,5,2,1,6,1,6,5,0,    
         1,3,1,2,1,6,1,6,1,6,1,3,1,0,    
         1,3,1,2,1,6,1,6,1,6,1,3,1,0,    
         5,2,3,4,1,6,1,6,1,3,1,0,    
         1,3,1,2,1,6,1,6,1,6,1,3,1,0,    
         1,3,1,2,1,6,1,6,1,6,1,3,1,0,    
         1,3,1,2,5,2,5,2,5,2,5,0,    
         0,
         1,3,1,2,5,2,5,2,1,6,4,0,    
         1,3,1,2,1,3,1,2,1,3,1,2,1,6,1,3,1,0,    
         1,1,1,1,1,2,1,3,1,2,5,2,1,6,1,3,1,0,    
         2,1,2,2,1,3,1,2,2,5,1,6,1,3,1,0,    
         1,3,1,2,1,3,1,2,1,1,1,4,1,6,1,3,1,0,    
         1,3,1,2,1,3,1,2,1,2,1,3,1,6,1,3,1,0,    
         1,3,1,2,5,2,1,3,1,2,5,2,4,0};
    char print = 'C';
    for (int i = 0; i < sizeof(data); i++)
        {
        if (data[i] == 0)
            {
            printf("\n");
            print = 'C';
            }
        else
            {
            for (int count = 0; count < data[i]; count ++)
                {
                printf ("%c",print);
                }
            print ^= 'C' ^ ' ';
            }
        }
    return 0;
    }
Feel free to use this in QA ... Big Grin | :-D
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: How to write a "Hello World" app in C ... Pin
Nelek8-Jun-21 9:55
protectorNelek8-Jun-21 9:55 
GeneralRe: How to write a "Hello World" app in C ... Pin
OriginalGriff8-Jun-21 9:59
mveOriginalGriff8-Jun-21 9:59 
GeneralRe: How to write a "Hello World" app in C ... Pin
jeron18-Jun-21 10:08
Memberjeron18-Jun-21 10:08 
GeneralRe: How to write a "Hello World" app in C ... Pin
OriginalGriff8-Jun-21 10:52
mveOriginalGriff8-Jun-21 10:52 
GeneralRe: How to write a "Hello World" app in C ... Pin
pkfox8-Jun-21 23:42
professionalpkfox8-Jun-21 23:42 
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
MemberDRHuff8-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 
GeneralRe: How to write a "Hello World" app in C ... Pin
CodeWraith8-Jun-21 23:14
MemberCodeWraith8-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
MemberCodeWraith8-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 

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.


Straw Poll

Do you feel you fully understand the vision and purpose of the software project you're working on?
Sure you can be told the "what", but do you have the "why"?
  Results   36 votes