Inserting a space in function calls/definitions

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Inserting a space in function calls/definitions

Post by RyanPridgeon »

Code: Select all

#include <stdio.h>
int main(int argc,char** argv){printf("hello world");return 0;}
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Inserting a space in function calls/definitions

Post by dandymcgee »

White space matters... if you're programming quines. 8-)
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
K-Bal
ES Beta Backer
ES Beta Backer
Posts: 701
Joined: Sun Mar 15, 2009 3:21 pm
Location: Germany, Aachen
Contact:

Re: Inserting a space in function calls/definitions

Post by K-Bal »

AerisAndMe wrote:Right, C++ leaves whitespaces as optional. Although, we all know that a whitespace in C++ isn't always so innocent
That was a quite nice explanation of a compiler frontend. However, what do you wanted to point out? :)
User avatar
AerisAndMe
ES Software Engineer
ES Software Engineer
Posts: 381
Joined: Tue Apr 07, 2009 9:29 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: PC, SNES, PS3
Programming Language of Choice: C/++
Location: Madison AL
Contact:

Re: Inserting a space in function calls/definitions

Post by AerisAndMe »

K-Bal wrote:That was a quite nice explanation of a compiler frontend. However, what do you wanted to point out? :)
What do you mean? I was just trying to be helpful. Maybe it was a little more than he asked for, but a little extra information never hurt anybody, did it? :) Of course, I could always post another absurdly commented pooshoe printout. That did seem to be a big hitter.
K-Bal
ES Beta Backer
ES Beta Backer
Posts: 701
Joined: Sun Mar 15, 2009 3:21 pm
Location: Germany, Aachen
Contact:

Re: Inserting a space in function calls/definitions

Post by K-Bal »

Yeah, I just thought I missed something ;)
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Inserting a space in function calls/definitions

Post by LeonBlade »

AerisAndMe wrote:
K-Bal wrote:That was a quite nice explanation of a compiler frontend. However, what do you wanted to point out? :)
What do you mean? I was just trying to be helpful. Maybe it was a little more than he asked for, but a little extra information never hurt anybody, did it? :) Of course, I could always post another absurdly commented pooshoe printout. That did seem to be a big hitter.
I personally found your post to be highly informative and to the point.
It addressed issues that I myself had over looked or hadn't thought of myself.
Thank you for taking the time to write out your post, it was greatly appreciated, have a wonderful day.

;)
There's no place like ~/
Post Reply