Results 1 to 10 of 10
  1. #1
    Simple Programming

    Member Since
    May 08, 2007
    Posts
    7
    Simple Programming
    Hey guys...
    ok this is very simple, though i've been searching hard for this kind of app
    i'm having some basic C++ programming classes and i use the bloodshed dev-C++ for windows there...
    i wouldnt be here if i didnt love mac and had one..
    so i wanted to know a real basic app for mac, i tried xcode and eclipse but there were too tough for me
    I'm justing doing some basic programs as fatorial, percentage, learning just if..else ; continue; break; printf; scanf; while...

    Could you help me please?
    Thanks from now on..

    See you

  2. #2
    Simple Programming
    surfwax95's Avatar
    Member Since
    Aug 27, 2005
    Location
    Fayetteville, AR
    Posts
    2,406
    Specs:
    15" Powerbook G4 24" iMac iPhone 3Gs
    I really don't know much about C, but most Macs have a C compiler installed (gcc, right?) that you can access from the Terminal (Apps/Utilities).
    I try to Command+Shift+/ when I can.
    They're - Their - There | Two - Too - To | You're - Your | MAC - Mac
    I was on the M-F honor roll for October, 2006.

  3. #3
    Simple Programming
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    Since you have installed XCode, you have the tools you need for the simple stuff and don't have to use XCode. The C++ and C compiler can be used via the command line. For a C program I'd type something like 'cc test.c' in the folder that file exists in. I'm not sure if the C++ syntax is different since I've never done that. Type 'man c++' at the Terminal command line.

    As far as editing your files, you can use TextEdit. Just fix the preferences so it creates plain text files and doesn't add .txt to the file.

  4. #4
    Simple Programming
    knightlie's Avatar
    Member Since
    Mar 22, 2007
    Location
    UK
    Posts
    1,463
    Specs:
    Lenovo Z560 Hackintosh -:- '06 iMac -:- iPod Touch 2ndGen
    I think the C++ compiler is caller cpp. Also, try the Smultron text editor - it'll do syntax highlighting. I use Eclipse for Java programming, and you're right - it's not exactly beginner-friendly!
    [URL="http://beadia.net"]Beadia[/URL - Jewelry Business Management Software]
    I judge you when you use poor grammar.

  5. #5
    Simple Programming

    Member Since
    May 08, 2007
    Posts
    7
    Hey knightlie that helped me a lot...
    a tried smultron and its very simple to use...
    thanks a lot

    though now im having another problem....
    how can i make my program work?
    like.. doing the stuffs that i set?
    in my classes its runs the program in the ms-dos prompt
    can i make my program at home work on something like it? maybe the terminal?

    thaanks

  6. #6
    Simple Programming
    Kaurotu's Avatar
    Member Since
    Apr 26, 2007
    Location
    Geneseo, IL
    Posts
    36
    Specs:
    Standard Black MacBook
    To access the GCC C++ compiler from the terminal you just type:

    g++ -o program name source file

    then type ./executableName to run it
    I need no warrant or sanction upon my being. I am the warrant and sanction. - Ayn Rand

  7. #7
    Simple Programming

    Member Since
    May 08, 2007
    Posts
    7
    sorry but i couldnt d that
    "
    g++
    -bash: g++: command not found
    "

    what can i do?

  8. #8
    Simple Programming
    Kaurotu's Avatar
    Member Since
    Apr 26, 2007
    Location
    Geneseo, IL
    Posts
    36
    Specs:
    Standard Black MacBook
    Make sure you have the GCC installed. If you're programming on your Mac, it comes with Xcode Tools. If you're programming on Windows or Linux, you can get it from http://gcc.gnu.org/.
    I need no warrant or sanction upon my being. I am the warrant and sanction. - Ayn Rand

  9. #9
    Simple Programming

    Member Since
    May 10, 2007
    Posts
    17
    I'm new to Macs myself (I use Borland C++ Builder on Windows and a Glade/Emacs/gcc on Linux), but from my understanding, you can get Emacs working just fine (along with most other Unix apps) using the Mac X11 server. If you want a good programming text editor, that's a good place to start. The syntax highlighting and auto-ident features I really like. Far different than the annoying type auto-formatting that Microsoft does, with Emacs, if it formats something differently than I expected, I know I made and error in my code that I need to fix .

  10. #10
    Simple Programming
    knightlie's Avatar
    Member Since
    Mar 22, 2007
    Location
    UK
    Posts
    1,463
    Specs:
    Lenovo Z560 Hackintosh -:- '06 iMac -:- iPod Touch 2ndGen
    Emacs? Blimey. I'll stick to Smultron and Eclipse.
    [URL="http://beadia.net"]Beadia[/URL - Jewelry Business Management Software]
    I judge you when you use poor grammar.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. c-programming
    By simon77 in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 01-09-2014, 10:00 AM
  2. Replies: 1
    Last Post: 05-29-2012, 05:32 PM
  3. Simple, Simple question (?) from a real beginner
    By JamesTaylor in forum iOS and Apps
    Replies: 0
    Last Post: 05-15-2011, 08:58 AM
  4. Programming in C
    By Macman95 in forum OS X - Development and Darwin
    Replies: 13
    Last Post: 10-14-2009, 07:28 PM
  5. programming help
    By pumatim in forum Switcher Hangout
    Replies: 2
    Last Post: 09-21-2004, 08:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •