[QUOTE=ief014;39268319][cpp]inline static const int* const wtf(const int* a) const { .. }[/cpp][/QUOTE]
that code is so optimized looking
[QUOTE=DarkCybo7;39268513]that code is so optimized looking[/QUOTE]
It is as optimized as
[cpp]
static int* wtf(int* a) {.. }
[/cpp]
and probably
[code]
int & wtf( int & a) { }
[/code]
[QUOTE=DarkCybo7;39268807]and probably
[code]
int & wtf( int & a) { }
[/code][/QUOTE]
Returning a reference?
Yay, A*, 2d grids and I learned how to use canvas.
[IMG]http://i.imgur.com/DjaHS.png[/IMG]
EDIT:
Support for multiple textures and new dev textures!
[IMG]http://i.imgur.com/IF4so.png[/IMG]
[QUOTE=ThePuska;39268119]Next topic: which comes first, type specifier or other qualifiers/specifiers?
[cpp]const int[/cpp] or [cpp]int const[/cpp]
[cpp]inline void f();[/cpp] or [cpp]void inline f();[/cpp][/QUOTE]
I did a project in the int const style once. It wasn't too bad after I got over the unfamiliarity of it.
[QUOTE=Dj-J3;39268129][cpp]const int
inline void[/cpp]
[editline]18th January 2013[/editline]
imo[/QUOTE]
Used to do this because it was how everybody else were doing it (following tutorials and such), still do it because of familiarity, but also because it makes the code easy to read. It makes much more sense to say "constant int", rather than "int, constant"
Maurice, you have done it again
[video=youtube;6UQ46gErZMM]http://www.youtube.com/watch?v=6UQ46gErZMM[/video]
Hey sorry I didn't respond to those who I was talking with earlier, my day got a little busy and now I'm dealing with signing and setting up a contract with a company but I want to say thanks to those offering personal guidance, I'll PM you guys soon then!
Thanks again!
[QUOTE=Mozartkugeln;39268019]This is actually sound advice; why the boxes?[/QUOTE]
Because he's getting all uppity about nothing.
It's the equivalent of telling someone to name their variables LikeThis instead of like_this
[QUOTE=lavacano;39270468]It's the equivalent of telling someone to name their variables LikeThis instead of like_this[/QUOTE]
Great, here comes another page of arguing over coding styles.
[QUOTE=danharibo;39270487]Great, here comes another page of arguing over coding styles.[/QUOTE]
don't.
[QUOTE=danharibo;39270487]Great, here comes another page of arguing over coding styles.[/QUOTE]
shit sorry, i'm not in WAYWO often enough to realize that's a regular problem
if you don't use k&r braces style, you are bad at coding
[QUOTE=DarkCybo7;39270881]if you don't use k&r braces style, you are bad at coding[/QUOTE]
knr master race :tinfoil:
Coming along nicely.. (Mediafire API for those who missed my last post)
[IMG]http://i.imgur.com/BvaNZ3I.png[/IMG]
[QUOTE=wingless;39265997]I don't have any experience with udacity, but good god don't do Code Academy. The verification system is broken 99% of the time and the questions are so badly worded most of the time, you're not working out the problem, you're working out the question.[/QUOTE]
Codecademy has some problems but if getting points and achievements makes you start coding, do it.
[QUOTE=Ezhik;39266393]ii always forget what * and & do, end up reading the guide again, try to use them, and never get them to work :v:[/QUOTE]
As a beginner coder I have a hard time with concepts until I actually need to use them. Once you use something out of necessity, it clicks.
[QUOTE=DarkCybo7;39270881]if you don't use k&r braces style, you are bad at coding[/QUOTE]
Allman master race. Braces on new lines all da time.
[QUOTE=supersnail11;39271200]Allman master race. Braces on new lines all da time.[/QUOTE]
Seriously guys, can't we just accept that people have different preferences and tastes instead of arguing like this?
[QUOTE=ArgvCompany;39271341]Seriously guys, can't we just accept that people have different preferences and tastes instead of arguing like this?[/QUOTE]
Welcome to the internet.
[img]http://i.imgur.com/8kC7wLd.png[/img]
Now let's get back to posting content, thanks
After a good few hours of banging my head against the wall I can now turn
[CODE]nop ; No Operation
tst ; Test function - prints to emulator console
jmp Test
tst ; Test function - prints to emulator console
Test: ; Label
; An empty line just to screw with my parser
tst ; Test function
jmp Test[/CODE]
into
[CODE]00 01 11 10 00 07 01 01 11 10 00 07[/CODE]
In other words, my assembler, for my own architecture, works. Though now I need to update my emulator to support the addressing modes.
[QUOTE=DarkCybo7;39270881]if you don't use k&r braces style, you are bad at coding[/QUOTE]
I'm not too fond of braces on new lines.
My shadows are nearly alias free:
[t]https://dl.dropbox.com/u/41041550/Coding/C%23/OGLFV/backtodepth.PNG[/t]
...and I've managed to get textures working. Yay.
[thumb]http://i.imgur.com/9kvmZpJ.png[/thumb]
I've got a basic texture system in place (for this project I didn't want to use any other libraries than LWJGL, so I do the texture loading myself) which allows you to call a function called bindTexture(textureFile) - firstly loading the texture into OpenGL before subsequently drawing it after (it will load the texture once).
And, of course, programmer art is there to test it.
I wonder if it's wrong to put my programming files in my drop box (Poor man's backup I guess?)
Nah, I do that from time to time as well. You never know.
[QUOTE=DoctorSalt;39272696]I wonder if it's wrong to put my programming files in my drop box (Poor man's backup I guess?)[/QUOTE]
Make your projects git repositories in your dropbox folder, never look back
[B]I have no idea what I'm doing[/B]
[img]http://i1240.photobucket.com/albums/gg494/McDunkable/Untitled_zps5297d336.png[/img]
[B]First time posting 'ere[/B]
What you see on the far right is an npc and the purple one is me, the player. The npc has only 3 actions as of now, left, right, idle. Tadaa.. [B]fml[/B].
i used to keep my java workspace in dropbox. Worked amazing for me, could load up my project updated as it was on any computer.
Sorry, you need to Log In to post a reply to this thread.