1. This forum is in read-only mode.

Programming languages

Discussion in 'Computers & Modding' started by Inunah, Jun 4, 2011.

  1. Loonylion

    Loonylion Administrator Staff Member

    'Hello world' is a small application that every programmer starts with. If you try to skip that kind of thing then you will find your programming career coming to a very abrupt halt. Since you 'have no interest in the little crap' I would suggest you are not cut out to be a programmer.
     
  2. Inunah

    Inunah Well-Known Member

    Fuck Ren'py. It wouldn't do what I wanted it to. All it did was give me an error then quit if I tried to get full screen text, name box shortcuts, a menu with more than yes/no choices, and/or other random bullshit.

    Why can't I skip it? All the tutorials I can find all list the full 'hello world' code at the beginning and expect you to just read a bunch of shit. Then at the end they tell you to make the hello world program you just learned how to make, but you could just go back to the beginning and copy/paste the hello world code.
     
  3. lewis9191

    lewis9191 Well-Known Member

    You are a fucking idiot and it angers me how you disregard any help and are too lazy to learn the first step is a very long and bumpy road
     
  4. Inunah

    Inunah Well-Known Member

    You don't understand me. What is the point of a tutorial that's lazy?

    What is the point of a tutorial that:
    1. Gives you the 'hello world' code at the very beginning of the document?
    2. Doesn't explain the code well because the writer put all the code at the beginning instead of describing each separate part throughout the entire tutorial?
    3. Sometimes puts random code bullshit explanations into the document, even when the random code bullshit has nothing to do with the tutorial (like a variable script explanation in a tutorial on how to make 'hello world')?
    4. Expects you to be able to make a 'hello world' app from a shoddy explanation, so it's much easier to copy/paste the code that was placed all at once at the beginning of the docment?

    Because that describes every single tutorial I've ever found. With the way all these tutorials are written, it's like some idiot just walked in and was like "LOL if they don't understand my beginner's first c++ tutorial then they should learn c++ before coming here to learn c++".
     
  5. lewis9191

    lewis9191 Well-Known Member

    How do you think you learn. When learning french,the teacher would speak the language and you copy and learn each separate part and its meaning. Same will learning to speak the first time or any sport. You copy the teacher/object and then change and if it shows errors then you try to work it out and amend
     
  6. Inunah

    Inunah Well-Known Member

    Uhhh... Do what now?
     
  7. lewis9191

    lewis9191 Well-Known Member

    Even if you copy and paste hello world tut and run it, try edit it to say different things and different echos. I still don't understand php and I have been studying it for around 5 months.

    Although after doing html I no memorised different tags and now feel quite confident with it. If you do it enough I'm sure you will improve since you can't get any worst
     
  8. Hypr

    Hypr Well-Known Member

    Pretty much, this.

    You need to gain experience in programming before you can make and develop games, Inunah. And there is no better way to obtain experience in programming other than through practice.

    Let's start with "Hello World" in C++. Here's the code that you can try running in your C++ compiler. By the way, I recommend using Bloodshed C++, which you can download for free.
    Code:
    #include <iostream.h>
    
    int main()
    {
    	cout << "Hello World!" << endl; 	//Protip: Change what's inside the quotes to make your program say other interesting things, like "Hi, I'm Inunah!"
    	return 0;	//used to terminate the program
    }
    ^ Try playing around with that example Inunah and see how it works out. You should have no problem getting this code to run in Bloodshed C++.
     
  9. Inunah

    Inunah Well-Known Member

    Then what's iostream.h? I've seen a few of these tutorials where people ask what iostream.h is and why the program has an error because it's missing.
     
  10. Loonylion

    Loonylion Administrator Staff Member

    its the input/output stream header library.
     
  11. Magoran

    Magoran Well-Known Member

    you need the input/output stream library before you can do pretty much any coding.
     
  12. Hypr

    Hypr Well-Known Member

    It's a library file responsible for input and output streams as LoonyLion pointed out. The "cout <<" command refers to iostream.h library to perform the output display onto the screen.

    To make the explanation simple, the iostream library tells the computer specifically how to display messages onto the screen whenever "cout <<" is called by your program. This is why having #include <iostream.h> is needed before you use the "cout <<" function.
     
  13. Magoran

    Magoran Well-Known Member

    1) I love Bloodshed C++, it's wondrous.
    2) It might be better to start her off on Python. C++ is like shaving with a straight blade, sometimes. You have a lot of opportunities to screw up syntax and it can be hard to figure out where you went wrong.
    3) That program needs a pause command or a cin.get(); to make sure the terminal window stays open when the program is compiled.


    Code:
    #include <iostream.h>
    
    int main()
    {
    	cout << "Hello World!" << endl; 	//Protip: Change what's inside the quotes to make your program say other interesting things, like "Hi, I'm Inunah!"
            cin.get();      //waits for an entry to continue.  this affects no variables, and is just a check for user input.  hitting the enter/return key will do fine. 
                            //the purpose of this is to keep the command prompt open
    	return 0;	//used to terminate the program
    }
    
     
  14. Inunah

    Inunah Well-Known Member

    Makes much more sense than it used to.
     
  15. Loonylion

    Loonylion Administrator Staff Member

    Personally I would say PHP. I found C++ a lot easier after writing PHP for several years.
     
  16. Magoran

    Magoran Well-Known Member

    I'd agree that PHP would be easier, but I think Python would probably be a better introduction to object-oriented programming, since PHP tends to work better if you have an HTML skeleton to build on, in my experience. Python would be a quick start to learning functions and processes for making applications and games.
     
  17. Void

    Void Well-Known Member

    I don't think someone's prior knowledge in HTML should be a huge consideration when approaching a daunting task like learning a variety of programming languages in hopes of programming a game in C++ on their own. A bridge of such difficulty will likely be crossed.
     
  18. Loonylion

    Loonylion Administrator Staff Member

    PHP has very similar syntax to C++, and is much easier, hence its a good starting point.
     
  19. athemoe

    athemoe Well-Known Member

    ds game maker?
     
  20. will1008

    will1008 Well-Known Member

    I think it has limited features when not registered/bought
    or something.