10 Days of Basic Programming, Day 2: Variables

Acid_Snake

I like beer.

40 Responses

  1. 173210 says:

    LOL. ‘^’ are used as exponential, but you tagged C++. 😛

  2. taliesintaliesin says:

    I know programming! 凸^-^凸 😛

  3. galford says:

    i remember this….. FIrst?

  4. Alaster says:

    C++ lessons all over (again, for me) 😀

    So… “– double: double is the same as float but it takes up double t… “- where’s the rest?

    I am studying programming. Nice writing, ACID_SNAKE 🙂 Waiting for the rest.

    • Acid_Snake says:

      It seems that my crappy internet took away the rest.
      The whole thing said: double is the same as float but it takes up double the space and has much more precision. Wololo fix this please.

  5. fex says:

    Hey, thanks for the tutorial. I’m a networking engineer but I always wanted to learn some programming. I might go back to college for this, but in the mean time I can learn some basics.

  6. Guillaume says:

    Hey, thanks this is perfect timing for me, just learning how to code to make games for my smartwatch!

  7. Behrooz says:

    thanx for this tutorial

  8. Lorem says:

    – int: standard integer type.
    – short: an integer type that is half the size of int
    – long: an integer type that is double the size of int

    I believe most compiler nowadays treated int as 32-bit, short as 16-bit, and long also as 32-bit (I’m currently using MSVC and GCC and that’s how those data types treated on both)
    as a bonus there is also:
    – long long: 64-bit
    – intptr_t and size_t: 32-bit on 32-bit x86 machine, 64-bit on x64
    – etc

    • Acid_Snake says:

      The actual size of int, long and short is undetermined and depends on the architecture and compiler. On some architectures int and short are the same size, on others int and long are the same size. When porting Minefield Madness to Android I noticed that long was actually 32 bits

      • kili says:

        This is not a specific reply to you snake but it can help someone to know how much is the size of the type in a easy way :
        printf(“%d”, sizeof(your type) * 8 ); //this will display the size of the type and you will be informed of the difference between different types on your device

  9. jamski says:

    It kinda made my head dizzy… but geez thanks so much for the effort Acid_Snake! Am actually looking forward to this 🙂 hope I could create a project from this… soon…

  10. Arc Futahito says:

    You forgot teh bool! A group of especially vicious programmers is already dispatched to Acid_Snake for long and tedious torture x)

  11. meysam25 says:

    plz some one answer . are we gana learn some thing about psp hack or vita hack ?
    what is this all about basic of progeraming ?
    harry up dude go on main point .
    you are not hear to learn us progeraming .
    progeraming toterial can found any where
    plz learn us about psp hack stuff .

    • Arc Futahito says:

      Because hacking CODE doesn’t have anything to do with creating CODE!
      Aw, come on, writing comment like this is embarrassing even for 15 y. o. You should be ashamed.

    • Acid_Snake says:

      There’s a gazillion posts on this site explaining time and time again how psp hacking works. Everything from usermode to kernelmode, and everything in between.
      This series is for general purpose programming, if this is not what you are looking for simply use the search box at the top of the page.

    • wololo says:

      basics can be found here. Old but still valid: http://wololo.net/hacking-portal/

    • meysam25 says:

      i am in Holiday , i have free time i need something to work .
      i like to know about psp hack.
      can any one tell me about where i should start ?

    • Telgar says:

      Hacking the psp or vita would require knowledge in assembly, which you should probably learn after learning C or C++ simply because lower level languages like assembly are for many a *** ton harder to understand with no programming knowledge previously.

  12. Tail870 says:

    Wow! Actually, the same I was studying in college on 2nd year…
    Good. It means here is really educational posts.

  13. gbro says:

    No long long? no fun 🙁

  14. AlexLira says:

    Hi buddy, i’m very interested in this lessons, please, continue until it is completed!
    will be of great value to me, I know there are tons of programming courses on the web, but no guidance with focus and experience in homebrew you have!
    And tks tks tks! 🙂 lol

  15. I hope making the switch from C# to C/C++ won’t be too difficult. I look forward to the tutorials once the basic building blocks have been covered.

  16. gunblade says:

    Cool. Thks.

  17. Acid_Snake says:

    Wololo is currently working on a way to have translated versions of our articles, so expect me to translate these series into Spanish as soon as he’s done.

  18. EtherAegis says:

    Acid_Snake, you are the absolute MAN! How do you find time for this besides work and hacking and anything else?!
    I went back to grad school in math, and I’m not gonna lie [that it strokes my ego] when I say I’m a pretty smart guy, but I also know that even this means *** after two years at work, so I say this as a supporter, an already competent programmer, a (potential) contributer, and as a person quickly becoming ***-drunk…I’m looking forward more of these.
    (Also…mgs1 and 3 rock the socks off giants, and the others easily follow. Also currently replaying the Acid series…these games are terminally under-rated. There is no excuse.)

  1. March 16, 2015

    […] >>> Next: 10 Days of Basic Programming, Day 2: Variables […]

  2. March 21, 2015

    […] <<< Previous: 10 Days of Basic Programming, Day 2: Variables […]