1. 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. ivekvv256

    ivekvv256 Ogre Legend The Pit

    Messages:
    6,170
    Likes Received:
    248
    Trophy Points:
    63
    Credit:
    8,930.14
    I understand the program that you've written, though what i do not understand are those little parts of it like:
    Scanner keyboard = new Scanner (System.in); and keyboard.nextInt();. They seem really confusing and I can't decipher it.
     
  2. Volnus

    Volnus Developer New Ogre

    Messages:
    82
    Likes Received:
    30
    Trophy Points:
    18
    Credit:
    7,292.72
    // Scanner To Read Input
    Scanner keyboard = new Scanner (System.in);

    That line declares my scanner because I imported the scanner code, but I needed to initialize the scanner which this did.

    milesdriven = keyboard.nextInt();

    keyboard.nextlnt this uses the scanner (keyboard) that i setup in the above line.
     
  3. ivekvv256

    ivekvv256 Ogre Legend The Pit

    Messages:
    6,170
    Likes Received:
    248
    Trophy Points:
    63
    Credit:
    8,930.14
    Thank you for clearing that up for me!
     
  4. Volnus

    Volnus Developer New Ogre

    Messages:
    82
    Likes Received:
    30
    Trophy Points:
    18
    Credit:
    7,292.72
    No problem glad it helped.
     
  5. Lexa5255

    Lexa5255 MMORPGer

    Messages:
    26
    Likes Received:
    8
    Trophy Points:
    3
    Credit:
    1,946.42
  6. Xicor97

    Xicor97 Banned The Pit

    Messages:
    1,820
    Likes Received:
    270
    Trophy Points:
    63
    Credit:
    4,405.90
    C++ is alot easier
     
  7. djolebelevode

    djolebelevode Ogre Legend The Pit

    Messages:
    6,020
    Likes Received:
    557
    Trophy Points:
    113
    Credit:
    8,964.70
    I used both of them long time ago when my friend and I wanted to create a some simple game,and I prefer c++
     
  8. Aleksandar Djurkovic

    Aleksandar Djurkovic MMORPGer

    Messages:
    40
    Likes Received:
    6
    Trophy Points:
    8
    Credit:
    1,632.65
  9. whitepaper

    whitepaper Elite Ogre The Pit

    Messages:
    2,121
    Likes Received:
    108
    Trophy Points:
    63
    Credit:
    2,763.25
  10. ElZarid123

    ElZarid123 Elite Ogre Ogre Warrior

    Messages:
    1,218
    Likes Received:
    120
    Trophy Points:
    63
    Credit:
    9,857.99
    I agree C++ is better for me.
     
  11. xynthex137

    xynthex137 Big Brute New Ogre

    Messages:
    145
    Likes Received:
    76
    Trophy Points:
    28
    Credit:
    8,325.02
    For programming, C++ is the best
     
  12. Seijuru_123

    Seijuru_123 Big Brute The Pit

    Messages:
    176
    Likes Received:
    47
    Trophy Points:
    18
    Credit:
    24,684.98
  13. xonix137

    xonix137 MMORPGer New Ogre

    Messages:
    28
    Likes Received:
    12
    Trophy Points:
    8
    Credit:
    3,031.49
    C++ is best for programming
     
  14. Honestly I prefer C++ over C. I'm not too familiar with C, but C++ is more improved upon than C and you can do so much with C++. If you're working with Unreal Engine to create a game, you'll most likely need to understand C++. I think Objective-C is pretty nice for mobile development, especially on iOS, but Swift in my opinion is better than Objective-C.
     
  15. owie kwes

    owie kwes BamBam

    Messages:
    6
    Likes Received:
    3
    Trophy Points:
    3
    Credit:
    1,556.61
    Well C++ has everything C has, and some aditional stuff, like, an upgraded C, at least thats what my teacher taught me
     

Share This Page