1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To chat with the GameOgre community, you need to have at least 100 posts. Once you have the 100 posts, post at Become A New Ogre
    Dismiss Notice

C or C++

Discussion in 'Online Game Development' started by CikaDaki, Mar 26, 2014.

C or C++

  1. C

    0 vote(s)
    0.0%
  2. C++

    7 vote(s)
    100.0%
  1. Kruziar

    Kruziar Brute New Ogre

    Messages:
    90
    Likes Received:
    16
    Trophy Points:
    0
    Credit:
    45.73
  2. Wen

    Wen Big Bad Ogre The Pit

    Messages:
    848
    Likes Received:
    24
    Trophy Points:
    0
    Credit:
    136.02
    C++ is the better engine for me.
     
  3. Rimbast

    Rimbast Spiked Club Ogre Regular

    Messages:
    223
    Likes Received:
    25
    Trophy Points:
    0
    Credit:
    140.71
  4. TenaVincent

    TenaVincent Ogre Newling

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    0
    Credit:
    1,222.00
    Game lover don't think about code behind the game, which plays an essential role to play a game successfully. C and C++ this is a programming language which are used to build a game, there are few more programming language which are used to build a game.
     
  5. Gile

    Gile Brute New Ogre

    Messages:
    86
    Likes Received:
    43
    Trophy Points:
    8
    Credit:
    3,217.84
    what is C or C++ ?? if u can explain to me :)
     
  6. Aaddron

    Aaddron Moderator Staff Member GameOgre Moderator

    Messages:
    42,963
    Likes Received:
    3,053
    Trophy Points:
    113
    Credit:
    277,410.13
    They are programming languages. :)
     
    Gile likes this.
  7. Gile

    Gile Brute New Ogre

    Messages:
    86
    Likes Received:
    43
    Trophy Points:
    8
    Credit:
    3,217.84
    Ouh,thanks
     
  8. Dimer

    Dimer Brute New Ogre

    Messages:
    86
    Likes Received:
    42
    Trophy Points:
    18
    Credit:
    2,276.13
  9. Garagos

    Garagos Clubbed for Chat Rage

    Messages:
    5,172
    Likes Received:
    481
    Trophy Points:
    83
    Credit:
    149.29
    Can games be made in that two programs ? :)
     
  10. Aaddron

    Aaddron Moderator Staff Member GameOgre Moderator

    Messages:
    42,963
    Likes Received:
    3,053
    Trophy Points:
    113
    Credit:
    277,410.13
    Languages* Yeah, a game can be made in either of them.
     
  11. Volnus

    Volnus Developer New Ogre

    Messages:
    82
    Likes Received:
    30
    Trophy Points:
    18
    Credit:
    7,116.72
    C++ is better than C... C is outdated and would make things even more complicated. That being said both are a pain to learn so you can't just sit down one evening and expect to learn them it's difficult to program with those languages when starting. Choose something like Python to start it makes things much easier.
     
  12. ivekvv256

    ivekvv256 Ogre Legend The Pit

    Messages:
    6,170
    Likes Received:
    248
    Trophy Points:
    63
    Credit:
    8,930.14
    Yeah, I've started off with C# but it was quite hard to learn it, so I switched to Python and it's quite good so far... I understand the syntax, but I don't know where to go from there...
     
  13. Volnus

    Volnus Developer New Ogre

    Messages:
    82
    Likes Received:
    30
    Trophy Points:
    18
    Credit:
    7,116.72
    The general rule of thumb is once you understand the syntax you are golden. Because, if you can learn the Syntax there is very little need to memorize all the code learning the basics and intermediate code by memorization is good but don't memorize everything.

    The other important thing is once you learn the Syntax it can be applied to other languages easily.
     
    ivekvv256 likes this.
  14. ivekvv256

    ivekvv256 Ogre Legend The Pit

    Messages:
    6,170
    Likes Received:
    248
    Trophy Points:
    63
    Credit:
    8,930.14
    Thank you for responding so quickly, I'm currently in progress of reading the book: "Learning Python" since I've heard it's quite helpful for begginers. Any suggestions on another book or resource you think might be useful?
     
  15. Volnus

    Volnus Developer New Ogre

    Messages:
    82
    Likes Received:
    30
    Trophy Points:
    18
    Credit:
    7,116.72
  16. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    51,981
    Likes Received:
    8,869
    Trophy Points:
    113
    Credit:
    497,141.69
    Indeed, Python is a good language to start:).
     
  17. Volnus

    Volnus Developer New Ogre

    Messages:
    82
    Likes Received:
    30
    Trophy Points:
    18
    Credit:
    7,116.72
    Well for learning syntax its a good thread.
     
  18. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    51,981
    Likes Received:
    8,869
    Trophy Points:
    113
    Credit:
    497,141.69
    How about learning to actually program?
     
  19. ivekvv256

    ivekvv256 Ogre Legend The Pit

    Messages:
    6,170
    Likes Received:
    248
    Trophy Points:
    63
    Credit:
    8,930.14
    I'm learning it just to make my understanding of programming easier, don't want to jump into hardcore languages yet lol.
     
  20. Volnus

    Volnus Developer New Ogre

    Messages:
    82
    Likes Received:
    30
    Trophy Points:
    18
    Credit:
    7,116.72
    Programming requires you to learn the syntax.. Here is a simple java program.

    import java.util.Scanner;
    public class MilesPerGallon {
    public static void main (String[] args ){
    // String Name
    int milesdriven;
    int gas;
    // Scanner To Read Input
    Scanner keyboard = new Scanner (System.in);
    // Get the amount of Miles Driven
    System.out.println("How many miles did you drive?");
    milesdriven = keyboard.nextInt();
    // Get the amount of Gallons of gas used
    System.out.println("How many gallons of gas did you use?");
    gas = keyboard.nextInt();
    // Calculate Miles Per Gallon
    System.out.println(milesdriven/gas);
    }
    }​

    This program does not have any fancy user interface, but it took a couple of minutes to write. All it does is calculate the MPG of a vehicle.

    One can't write a program without knowing that the "int gas" holds the input for the amount of gas used. You also wouldn't know that int only holds whole numbers thus you would need to use double to use decimals.

    Syntax is the most important thing in programming. Once you can learn how to use the important rules adding a program is just as easy as finding a problem and solving it.
     

Share This Page