Thread: Help is welcome.

  1. #16
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Oh, come on. A tutorial for a few mouse clicks?

    New->Project.
    Choose "Win32 Console Project" from the list and click Next.
    Go to the project options tab.
    Check the "Empty Project" box.
    Click Finish.
    Right-click your project in the solution explorer, go to Add File->New File.
    Choose C++ source code (.cpp) as the file type.
    Call the file main.cpp.
    Click Finish.
    Code away.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #17
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    That's not what I meant. I've only coded for 1 hour a day, 3 days = 3 hours. In this time, I have apparently been doing something wrong coding. Which means i've learnt the wrong way. I've made the project, I didnt mean that, lol. What I meant was, are there any tut's for creating a program like the one i've specified. AKA a calculator using information provided by the user, using my formula. And then put into a window with buttons such as the ones specified in the link. Thanks.
    Last edited by bradszy; 01-23-2008 at 02:07 AM.

  3. #18
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    what people in this thread have being saying is that, something like what you are describing (a GUI calculator) is much too advanced for someone with only 3 hours of experience. People generally start with "console" apps - applications that don't have GUIs and interact through the command line. As many people including myself have suggested, start with a basic tutorial on this site.

    GUI adds a lot of complexity to simple codes (assuming you are not just drawing the GUI and typing random codes into it and hope it works. If that is what you want, try something like Visual Basic. Not that I recommend it... but if that is what you want.) "Traditional" GUI programming requires dealing with a lot of OOP concepts that are often dubbed pretty advanced C++. Drag-and-Drop GUI creators are meant to be used by programmers who already know what they are doing. They are meant to save coding time not allowing the programmer to not know what is going on.
    Last edited by cyberfish; 01-23-2008 at 02:23 AM.

  4. #19
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    You mean simple as in the DOS window apps?
    EDIT: I quickly whipped one up. It does the required task properly, (Calculates the damage) but it's ugly poop. I use Dev-C++ for the 'ugly poop' ones. (DOS, lol) http://www.megaupload.com/?d=2BOY778T

    EDIT2: I also have a WARRIOR damage calc I made. It requires more informtion, and calculates more.
    http://www.megaupload.com/?d=OURZR7A0

    Apart from the DOS calculators ive made, I also made a celsius to farenheit converter, which I made by using the same idea as the other calculators.

    EDIT3: I know none of these are even remotely good. I'm just showing you my knowledge of DOS windows so far. OH and ive dropped the GUI concept for a while I guess.
    Last edited by bradszy; 01-23-2008 at 02:58 AM.

  5. #20
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    You mean simple as in the DOS window apps?
    Yes. Console apps they are called.

    You can post code directly to the forum with the code tag. People generally aren't willing to deal with upload services to answer questions.

    It's good to know that you have already attempted console apps. What's "ugly poop" is subject to personal opinion. The console works well enough for me and my small projects (such as the Chess AI I am writing right now consisting of ~5000 lines). I am a beginner in C++, too. I have tried GUI programming using the Qt library (for the portability), but have decided to defer it for later after I grasped the basics of C++, and I think that is what most people here are suggesting.

    Again, if you really want a simple-to-use fool-proof drag-and-drop GUI oriented language that you can just type in simple codes to associate with buttons and stuff, IMHO you shouldn't be looking into C++.

  6. #21
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    Yeah, I think maybe I should do the sort of thing you're doing... Work on projects in simple command line format for a long while, till I've grasped the basics... Thanks for your opinion on things. You've really 'opened my eyes', or so to speak. Thanks again.

  7. #22
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    good luck learning C++, it's a hard but very fun process (for me at least =) ).

  8. #23
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    Are you only interested in creating a user interface? Have you created any kind of program that uses it?

  9. #24
    Registered User
    Join Date
    Apr 2007
    Posts
    10
    Based on what you want, I would suggest a different language. As someone recommended, Visual Basic could be closer to what you want. I would also suggest Java as I consider Swing pretty straightforward and it has real syntax.

    I actually think console applications can look pretty nice.
    Code:
    ╔═══════════════════╗
    ║ Bubble Tea Tycoon ║╔═════════════════╗┌─────────────────┐┌─────────────────┐
    ║ Version 1.0       ║║ M:Main          ║│ S:Stand         ││ I:Inventory     │
    ╟───────────────────╢╝                 ╚╧═════════════════╧╧═════════════════╧╗
    ║ Menu              ║ Welcome to Bubble Tycoon!                               ║
    ║ [1] Begin Round   ║                                                         ║
    ║ [2] Forecast      ║ Today is the first day for your stand. You start with   ║
    ║ [3] Sales Chart   ║ a small stand and enough supplies to last you a day or  ║
    ║ [4] Quit          ║ so.                                                     ║
    ║                   ║ Feel free to begin this round, or upgrade your stand    ║
    ║                   ║ and restock first.                                      ║
    ║                   ║ You start with enough inventory and equipment for       ║
    ║                   ║ today.                                                  ║
    ║                   ║                                                         ║
    ║                   ║                                                         ║
    ║                   ║                                                         ║
    ╠═══════════════════╬═════════════════════════════════════════════════════════╣
    ║ Money: 1000.00    ║ Manage your Bubble Tea stand, and when you are ready    ║
    ║ Day: 1/15         ║ begin the round.                                        ║
    ╚═══════════════════╩═════════════════════════════════════════════════════════╝
    Input:
    Code:
    ┌─────────┬──┬──┬──┬──┬──┬──┬──┐
    │2        │10│9 │9 │4 │K │3 │4 │
    │♠        │♥ │♦ │♣ │♥ │♠ │♦ │♦ │
    │         │  │  │  │  │  │  │  │
    │         │  │  │  │  │  │  │  │
    │         │  │  │  │  │  │  │  │
    │         │  │  │  │  │  │  │  │
    └─────────┴──┴──┴──┴──┴──┴──┴──┘
    Last edited by 691175002; 01-23-2008 at 05:15 PM.

  10. #25
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Visual Basic
    or RealBasic for a cross-platform solution, but I don't think it's free (so isn't visual basic though).

    IMHO, if your aim is to produce "serious" code, you should consider staying with C++, since it is standardized, more open, more efficient (on the average implementations), and is used to write more than 80% of the programs you see in stores as well as major opensource projects.

    The aim of BASIC is to be easy to learn for complete beginners to programming, as well as rapid development (developing when you just want working code as soon as possible, without much regard to quality).

    Choose for yourself =) (of course, there is no law stating that one can only learn one language. In fact, most professional programmers know a dozen or so languages.)

Popular pages Recent additions subscribe to a feed