Page 2 of 2 FirstFirst 1 2
Results 21 to 28 of 28

Thread: C++ help     submit to reddit submit to twitter

  1. #21
    Physicist
    Join Date
    Feb 2005
    Posts
    4,492
    BG Level
    7
    FFXIV Character
    Raineer Severus
    FFXIV Server
    Hyperion
    FFXI Server
    Siren
    WoW Realm
    Area 52

    Use Dev-C++ so you can learn the language first before you have to learn how to run VS, lol

    edit: let me add a link http://www.bloodshed.net/dev/devcpp.html, get the 9 meg version that includes Ming/GCC.

    It's not even maintained software anymore but it's still recommended by some schools because it's a basic compiler that doesn't get in the way. I've written quite a few programs and made some decent money off them, and I (literally) can't write "Hello, World" in Visual Studio and compile it without using some kind of online tutorial. VS know-how is needed if you're going to be employed and have to work with teammates where many people are working on the same code.

    For learning a language itself? Fuck it, it's terrible. A nice text editor with decent highlighting and a built-in compiler/debugger is all you should need for a long time.

  2. #22
    Title: "HUBBLE GOTCHU!" (without the quotes, of course [and without "(without the quotes, of course)", of course], etc)
    Join Date
    Jul 2006
    Posts
    3,141
    BG Level
    7

    Quote Originally Posted by Zosi View Post
    Teorem: In the interests of following your own advice, you should mention that Ctrl-F5 isn't just "insert a magic pause", it's also "run without debugging". The "magic pause" on run in debug was indeed a default behavior of some older versions of VC++, but not 2008.

    It also only works when you're running from VS, so you SHOULD learn the very simple system("pause") for situations where you want a pause in the actual program that will execute regardless of whether you're debugging or not.

    Devek: If you're going to bash VS for not having an integrated terminal, at least offer a solution that runs on Woozie's platform. Eclipse with CDT has a nice integrated terminal tab, although I really don't think I'd recommend using it simply because you can't deal with external console windows.

    I actually have eclipse installed and everything and I tried to use that before I downloaded Microsoft Visual. I can't get eclipse to work, even after following all the instructions, so I just gave up on it.

  3. #23
    Title: "HUBBLE GOTCHU!" (without the quotes, of course [and without "(without the quotes, of course)", of course], etc)
    Join Date
    Jul 2006
    Posts
    3,141
    BG Level
    7

    Quote Originally Posted by Raineer View Post
    Use Dev-C++ so you can learn the language first before you have to learn how to run VS, lol

    edit: let me add a link The Dev-C++ Resource Site, get the 9 meg version that includes Ming/GCC.

    It's not even maintained software anymore but it's still recommended by some schools because it's a basic compiler that doesn't get in the way. I've written quite a few programs and made some decent money off them, and I (literally) can't write "Hello, World" in Visual Studio and compile it without using some kind of online tutorial. VS know-how is needed if you're going to be employed and have to work with teammates where many people are working on the same code.

    For learning a language itself? Fuck it, it's terrible. A nice text editor with decent highlighting and a built-in compiler/debugger is all you should need for a long time.
    I tried using this before Microsoft VS as well. The exact same program that works just fine in VS gives me errors when I try it in this program

    [Linker error] undefined reference to `__cpu_features_init'

    ld returned 1 exit status

    C:\Dev-Cpp\Makefile.win [Build Error] [EnTee.exe] Error 1
    Also, someone mentioned something about my copy/pasting earlier. The reason I copied and pasted the code instead of typing it out is because I wanted to test out the programs (VS/Eclipse/etc) I was using to run these codes. If I had typed it in myself and got an error I would assume that the error is more likely because of a bad code than because if me not knowing how to use the program. Once I'm familiar with whatever I'm using, I'll be typing out codes instead of copy/paste.

  4. #24
    Nidhogg
    Join Date
    Feb 2006
    Posts
    3,901
    BG Level
    7
    FFXI Server
    Carbuncle

    You could just return 1 instead of return 0 and it stays up.

  5. #25
    E. Body
    Join Date
    Jun 2005
    Posts
    2,226
    BG Level
    7
    FFXI Server
    Caitsith

    When I first started out, I always used getchar() from cstdio to sort of pause the terminal. Basically, it's just waiting for a keypress if you just do getchar(); so you can do whatever. You could also include windows.h and use Sleep command, if you're against system("pause"); at all. As far as visual studio goes, it's quite nice once you learn all the features. My only gripe would be intellisense is fucking broken on VS2008 Prof. and it never freaking works for C/C++. It works for C# very nicely though <3

    I also wanted to plug C# because I've been doing my last few OpenGL labs through the Tao Framework in it and it's rather nice.

  6. #26
    Nidhogg
    Join Date
    Oct 2005
    Posts
    3,612
    BG Level
    7
    FFXIV Character
    Glick Wick
    FFXIV Server
    Ultros
    FFXI Server
    Bahamut

    Quote Originally Posted by Devek View Post
    Microsoft's IDE doesn't have a console window like every single IDE in the entire world does?

    Maybe he should use something better.

    Example:

    http://img11.imageshack.us/img11/7429/anjuta.png
    Also, are you really comparing that to VS 2008? I don't mean to sound like an MS Fanboi (I'm not), but the timesaving features in VS are just too good to pass up. When you spend 7-9 hours a day developing, you'll learn to really really appreciate VS. Also, I highly recommend Resharper for anyone using VS that's an Eclipse fan. It essentially adds a lot of Eclipse's cool features to VS, along with a lot of relatively useful macros.

  7. #27
    Chram
    Join Date
    Jun 2006
    Posts
    2,539
    BG Level
    7

    Quote Originally Posted by MisterBob View Post
    Also, are you really comparing that to VS 2008? I don't mean to sound like an MS Fanboi (I'm not), but the timesaving features in VS are just too good to pass up.
    VS might be better for c++, idk as I don't even know c++ but for c work I doubt VS would do the first damn thing to make my code portable and that would waste quite a bit of my time.

    Still, what the hell is up with no console window?

  8. #28
    Physicist
    Join Date
    Feb 2005
    Posts
    4,492
    BG Level
    7
    FFXIV Character
    Raineer Severus
    FFXIV Server
    Hyperion
    FFXI Server
    Siren
    WoW Realm
    Area 52

    Quote Originally Posted by Devek View Post
    VS might be better for c++, idk as I don't even know c++ but for c work I doubt VS would do the first damn thing to make my code portable and that would waste quite a bit of my time.

    Still, what the hell is up with no console window?
    Console window is really a nice win, and think of how much more important it is when you are first learning >_>

    I continue to maintain VS is just really rough for anyone first starting out. Remember you are trying to learn the language and not the tools. imo, you are looking to come as close to a text editor and GCC as possible; the goal is just to add enough GUI to make that user-friendly and nothing else.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. WAR/NIN help plz
    By cyphx in forum General Discussion
    Replies: 18
    Last Post: 2006-04-28, 14:11
  2. Ouch, Call for help on Cassie{/comfort}
    By Deadkennedys in forum General Discussion
    Replies: 3
    Last Post: 2004-09-27, 07:48
  3. Need help on money making methods
    By in forum General Discussion
    Replies: 2
    Last Post: 2004-09-16, 21:57