Author Topic: Help with C++  (Read 10290 times)

0 Members and 2 Guests are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Help with C++
« on: October 22, 2011, 01:35:51 pm »
Can someone plz help me set up a design environment (including a method of compilation) for C++ on Windows 7 computer?

Everything hates me.



Also: anyone know how to draw to the screen.  Like in axe you can use Pt-On() and Pxl-On()
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Help with C++
« Reply #1 on: October 22, 2011, 01:43:49 pm »
Can someone plz help me set up a design environment (including a method of compilation) for C++ on Windows 7 computer?

Everything hates me.



Also: anyone know how to draw to the screen.  Like in axe you can use Pt-On() and Pxl-On()

I recommend installing MingW. However, if you're a beginner Code::Blocks installs it together with the Code::Blocks IDE.

Drawing to the screen? You need a graphics library such as OpenGL or SDL. I recommend SDL or SFML. You can also use a GUI Toolkit, such as GTK, Qt or wxWidgets.

On Windows, you'll be tempted to use win32 or DirectX. If you want to keep your program cross-platform, never use those.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Help with C++
« Reply #2 on: October 22, 2011, 01:44:55 pm »
However, if you're a beginner Code::Blocks installs it together with the Code::Blocks IDE.


???  rephrase that please
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Help with C++
« Reply #3 on: October 22, 2011, 01:45:35 pm »
Ok, a good compiler that's easy to set up is called MinGW. Download the installer here

Then run the installer and install MinGW to a directory without spaces. The best place is the default C:/MinGW/

After that, go ahead and add it to your path by right clicking on "My Computer" then "Properties" then "Advanced System Settings" and finally, "Environment Variables". In the System variables field scroll down till you find "PATH". Click on it and then hit edit. Copy/Paste the directory to MinGW/bin/ onto the end of the path and add a semicolon.

And you have your compilation. :) A good IDE to use is code::blocks. Just download the windows installer and run it and you can compile with F9.

For drawing on the screen, use a library such as SFML or SDL. Just add the files in the "include" folder inside the libraries to "MinGW/include" and the same for "lib".

Hope that helps! :D

EDIT: Ninja'd :P

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Help with C++
« Reply #4 on: October 22, 2011, 01:47:49 pm »
you guys are awesome.  All I get is a bunch of junk about eclipse.  It looks like it was made for linux :/  And Linux programs on Windows just doesn't do well with me :P
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Help with C++
« Reply #5 on: October 22, 2011, 01:48:12 pm »
Visual Studio's been working great for me for over 2 years now. Granted I've never tried anything else, but setting up your environment is as simple as installing the program.

One of the things I love about it is that it red underlines stuff that it knows is going to cause a compiler error, that definitely improves your C++ skills ;D
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Help with C++
« Reply #6 on: October 22, 2011, 01:48:54 pm »
you guys are awesome.  All I get is a bunch of junk about eclipse.  It looks like it was made for linux :/  And Linux programs on Windows just doesn't do well with me :P

What? Eclipse wasn't made for Windows. It wasn't made for anything particular. It was made for everything.

And Eclipse has a C/C++ Plugin that allows you to use it as a C/C++ IDE, I never tried it, but a lot of people like it.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Help with C++
« Reply #7 on: October 22, 2011, 01:58:47 pm »
I hate Visual studios in general.  They lock everything down to be just windows.... just like TI does to their products :\
It reminds me of the Zune :/
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Help with C++
« Reply #8 on: October 22, 2011, 01:59:52 pm »
I hate Visual studios in general.  They lock everything down to be just windows.... just like TI does to their products :\
It reminds me of the Zune :/

Yes, Visual Studio tempts you to develop Windows-only. I think Code::Blocks is the best thing you can use. Later, you might prefer to use a text editor and the command line, it's faster for some people.
« Last Edit: October 22, 2011, 02:00:18 pm by ephan »

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Help with C++
« Reply #9 on: October 22, 2011, 02:20:44 pm »
Ok  next question.

OpenGL or SDL?
I want something easy to quickly use/ learn.  And, I will probably be able to stay with in the future.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Help with C++
« Reply #10 on: October 22, 2011, 02:30:25 pm »
SFML or SDL. OpenGL is very complex and takes a lot to learn.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Help with C++
« Reply #11 on: October 22, 2011, 02:34:47 pm »
Ok  next question.

OpenGL or SDL?
I want something easy to quickly use/ learn.  And, I will probably be able to stay with in the future.

Do you already know the C++ syntax? It's a bit risky to jump right in to image libraries.

Either way, I recommend SDL or SFML too. SFML is younger and doesn't have much documentation. SDL is older (which can be bad) but it has more documentation and more programmers using it.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Help with C++
« Reply #12 on: October 22, 2011, 02:39:35 pm »
ok thanks.  I am a lisle fluent in C++ due to Axe and a month of C.
So SDL then?

I think I wouldn't need to know much to port Sniper101 to computer :P
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Help with C++
« Reply #13 on: October 22, 2011, 02:40:09 pm »
ok thanks.  I am a lisle fluent in C++ due to Axe and a month of C.
So SDL then?

I think I wouldn't need to know much to port Sniper101 to computer :P

Sniper 101, hein?. I want to help :D
« Last Edit: October 22, 2011, 02:40:18 pm by ephan »

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Help with C++
« Reply #14 on: October 22, 2011, 02:50:33 pm »
Oh. I want to help as well. I need a project to do, lol ^^

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...