Click here to Skip to main content
15,885,546 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: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 12:48
professionalJeremy Falcon23-Sep-20 12:48 
GeneralRe: 25 years of programming reduced to a question. Pin
OriginalGriff23-Sep-20 2:52
mveOriginalGriff23-Sep-20 2:52 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 3:03
professionalJeremy Falcon23-Sep-20 3:03 
GeneralRe: 25 years of programming reduced to a question. Pin
Gerry Schmitz23-Sep-20 15:28
mveGerry Schmitz23-Sep-20 15:28 
GeneralRe: 25 years of programming reduced to a question. Pin
jsc4223-Sep-20 22:31
professionaljsc4223-Sep-20 22:31 
GeneralRe: 25 years of programming reduced to a question. Pin
Gerry Schmitz24-Sep-20 11:45
mveGerry Schmitz24-Sep-20 11:45 
GeneralRe: 25 years of programming reduced to a question. Pin
jsc4224-Sep-20 23:13
professionaljsc4224-Sep-20 23:13 
GeneralRe: 25 years of programming reduced to a question. Pin
OriginalGriff23-Sep-20 2:57
mveOriginalGriff23-Sep-20 2:57 
A few moments though gave me this:
C#
int[] data = new int[] { 1, 9, 8, 4, 0, 0, 2, 7, 0, 6, 0 };
int outp = 0;
for (int inp = 0; inp < data.Length; inp++)
    {
    int d = data[inp];
    if (d != 0)
        {
        data[outp++] = d;
        }
    }
while (outp < data.Length)
    {
    data[outp++] = 0;
    }

"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: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 3:04
professionalJeremy Falcon23-Sep-20 3:04 
GeneralRe: 25 years of programming reduced to a question. Pin
raddevus23-Sep-20 5:25
mvaraddevus23-Sep-20 5:25 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 6:07
professionalJeremy Falcon23-Sep-20 6:07 
GeneralRe: 25 years of programming reduced to a question. Pin
Daniel Pfeffer23-Sep-20 6:21
professionalDaniel Pfeffer23-Sep-20 6:21 
GeneralRe: 25 years of programming reduced to a question. Pin
raddevus23-Sep-20 7:21
mvaraddevus23-Sep-20 7:21 
QuestionRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 11:03
professionalJeremy Falcon23-Sep-20 11:03 
JokeRe: 25 years of programming reduced to a question. Pin
Daniel Pfeffer23-Sep-20 20:39
professionalDaniel Pfeffer23-Sep-20 20:39 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon24-Sep-20 1:40
professionalJeremy Falcon24-Sep-20 1:40 
GeneralRe: 25 years of programming reduced to a question. Pin
Martin ISDN24-Sep-20 2:45
Martin ISDN24-Sep-20 2:45 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon24-Sep-20 6:42
professionalJeremy Falcon24-Sep-20 6:42 
GeneralRe: 25 years of programming reduced to a question. Pin
raddevus23-Sep-20 5:55
mvaraddevus23-Sep-20 5:55 
GeneralRe: 25 years of programming reduced to a question. Pin
OriginalGriff23-Sep-20 6:25
mveOriginalGriff23-Sep-20 6:25 
GeneralRe: 25 years of programming reduced to a question. Pin
raddevus23-Sep-20 7:19
mvaraddevus23-Sep-20 7:19 
GeneralRe: 25 years of programming reduced to a question. Pin
rnbergren23-Sep-20 2:58
rnbergren23-Sep-20 2:58 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 3:07
professionalJeremy Falcon23-Sep-20 3:07 
GeneralRe: 25 years of programming reduced to a question. Pin
Fueled By Decaff23-Sep-20 4:52
Fueled By Decaff23-Sep-20 4:52 
GeneralRe: 25 years of programming reduced to a question. Pin
jsc4223-Sep-20 10:47
professionaljsc4223-Sep-20 10:47 

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.