Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Oct 2005
Offline Last Active Yesterday, 07:27 PM

Posts I've Made

In Topic: Can you explain to me this code !

18 September 2014 - 01:26 PM

it will run & i know it is simple but why when i type 55
the result:
Man, learn to type a number. Good job! (why i get this result )
why i the result not  dead("You greedy bastard!")
Sorry Lysy but when i type the numbers i get many questions

if "0" in choice or "1" in choice:
    how_much = int(choice)
    dead("Man, learn to type a number.")
the first line in that part checks if the text you've entered contains "0" or "1" , if it does it will try to convert the text to a number and assign it to the how_much variable , it the text doesn't contain 0 or 1 it will run the dead function with "Man, learn to type a number." as its parameter.

"55" doesn't contain 0 or 1 so it will run the dead function which prints the parameter "Man, learn to type a number." followed by "Good job!" and then it exits.

In Topic: C++ starter

09 September 2014 - 12:23 AM

i have 1 very big question to ask. ok i am only 15 and been so into programming since i was 12 and i know this is what i love. but i am not a very good at teaching my self through books or video but i have tryed so hard and  i have learned so much but it never seems like i know enough. like i am always going to be a beginner. so should i just give up and wait till i go to college for game dev and learn there or keep going on like a snail and learning really slowly and feeling like i know nothing all the time?

I've been programming for 20 years now, i still learn new things almost every day and there is a metric crapton of stuff that i still don't know.

Keep your projects small and try to add a few challenges to each project you make, if you havn't made any graphical games yet i'd recommend starting by making a pong clone (it covers the basics without complicating things).

You may allready know enough to solve some problems and you will never know enough to solve all problems, as long as you keep moving forward you will eventually get to a point where you know enough for someone to pay you to write code (and when it comes to learning nothing beats working 40+ hours / week with other professionals)

In Topic: Jquery code not working on Chrome

05 September 2014 - 01:30 PM

it is almost impossible to answer since you havn't provided your actual code. (the fiddle works in chrome).

You can press F12 in chrome to open the developer tools, you can use those to debug your code.

In Topic: GDI+ support on linux

04 September 2014 - 03:41 PM

As far as I know GDI+ is a Windows-only API, anyway I've read around that one might write his code in GDI+ and be able to port it to linux with something like this:
Is this true? Does anyone have experience of GDI+ applications that can also run on linux?


Yes it is sort of true, if your windows binary will run with wine then your windows source code will most likely compile using winelib aswell (Making porting quite a bit easier)

In Topic: Compiling 64-bit Applications in Visual Studio Express 2013

30 August 2014 - 06:07 PM

VS 2012 and 2013 express includes the x86-x64 cross compiler, and not the full x64 compiler. Like SmkViper already explained, this essentially means that the compiler and linker are 32-bit executables, but ultimately they can produce a 64-bit executable. For the most part this isn't a big deal, unless you start working on a huge project that can cause the linker to exceed its 4GB virtual address space. I have no idea why they only include the cross-compiler and not the full x64 compiler, it doesn't seem to make much sense to me.

One has to assume that the full 64-bit version is coming sooner or later, but it is curious why it isn't available already...

Microsoft is giving away the express edition for free and allows people and companies to use the express edition commercially, They need to save some stuff for the more expensive editions otherwise noone would buy them.