Thread: Student Question1

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    25

    Question Student Question1

    Hello Guy's and Gal's,
    I am a Graduate Student at the University of Phoenix and I am currently taking a Programming Concepts class using the C programming Language. I was given the Miracle C compiler to work with however, it will not run on my Vista Ultimate 64x system. I downloaded and installed the MS Visual C++ Express but I am having trouble figuring out how to use it for my already existing c code assignments. Can any of you recommend a compiler specific to c that will run on my system or how I can make the VC++ compiler work?

    I sure would appreciate it.

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    How is VC++ not working?
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I think Miracle C not working on Vista sounds like a step in the right direction - it prevents you from using a compiler that is about as far from a Miracle as you can imagine (at least, so I've been told by others who have actually used this compiler).

    With the visual studio menu (under Start->Programs->Visual Studion 2008), you should get a "command prompt", (In my installation it's under Visual Studio XXXX tools->Visual Studio XXXX command prompt). You can then use "cl" as your compiler from the command prompt.

    The other option is to use the IDE ("the actual Visual Studio") to create a completely empty project - normally for beginners, that's a Win32 console project. Normally, VS creates a template for you, with some files already filled in with a starting point - you do not want that, but a completely EMPTY project, so you need to find the "make this project empty" tick-box - I don't have VS 2008, so I can't tell you exact where that is - but somewhere there is such a tick-box, I guarantee that.

    Once you have an empty project, you can use the "add existing file" to add your previously created files to the project, and compile, debug and run the code in the project from Visual Studio.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Required use of such a compiler lends absolutely no credibility to a degree from UoP. You ought to mention that to the instructor that forces you to use something unseen in the working world.

  5. #5
    Registered User
    Join Date
    Dec 2008
    Posts
    25

    Smile

    Thanks guy's,
    I appreciate this and yes I have mentioned to the instructor the utter disgust that I have seen with this compiler. The only positives that I saw was from the company site only.

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Interestingly, the guy who wrote this abomination appears to be a bit of a Froot Loop, even being mentioned in Wikipedia's Notable Usenet Personalities article.

  7. #7
    Registered User
    Join Date
    Dec 2008
    Posts
    25

    Question

    Quote Originally Posted by rags_to_riches View Post
    Interestingly, the guy who wrote this abomination appears to be a bit of a Froot Loop, even being mentioned in Wikipedia's Notable Usenet Personalities article.
    Sorry rags, but I am at a loss as to how this relates to my post. Are you attempting to equate me to this guy?

  8. #8
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    No, no!!! That's the guy behind Miracle C. Sorry for the confusion. I just went digging to see if he had some connection to UoP.

  9. #9
    Registered User
    Join Date
    Dec 2008
    Posts
    25

    Talking

    Quote Originally Posted by rags_to_riches View Post
    No, no!!! That's the guy behind Miracle C. Sorry for the confusion. I just went digging to see if he had some connection to UoP.
    Got it! Thanks for the clarification.

  10. #10
    Registered User
    Join Date
    Dec 2008
    Posts
    25

    Question Student Question2

    Hey Guy's,
    As I stated before, I am a Graduate Student at the University of Phoenix. I am currently attending a Programming Concepts class. We have been given a few c programmed apps that we are to compile and run in order to learn how things work. I am also required to code a Tax Calculator program ( a very basis one). As I am not a programmer, I am just becoming familiar with these concepts, so if I sound ignorant to you all it is because I am. At least as far as these concepts are involved.

    So, with that being said, I am curious about something. Having been a web designer for several years I have come to a few realizations. The main one being that I hate unformatted code. I have several tools that will format code for me which I used quite often. I am using MS Visual C++ Express for my compiler because the Miracle C compiler that was given to us by the school will not run on my Vista Ultimate 64x system. Can any of you tell me if it has a tool that will format my code and that of the code snippets that we are given throughout the class?

  11. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    If by that you mean indentation, then yes, Visual Studio can do that.
    Typically, it's Alt + F8, but it may depend on what keyboard scheme you use.

    And don't be sad about that! Miracle C is a very, very poor compiler.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Registered User
    Join Date
    Dec 2008
    Posts
    25

    Wink

    Quote Originally Posted by Elysia View Post
    If by that you mean indentation, then yes, Visual Studio can do that.
    Typically, it's Alt + F8, but it may depend on what keyboard scheme you use.

    And don't be sad about that! Miracle C is a very, very poor compiler.
    Thank you Elysia, I appreciate this. And yes, I have become painfully aware of Miracle C's reputation. I am also making sure that my school becomes just as painfully aware as well.

  13. #13
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    I think VC++ only formats the indentation of the code.
    Eclipse can do a lot more, such as fix the way braces are placed (i.e. on a new line instead of on the same line) and add spaces before or after parentheses...
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  14. #14
    Registered User
    Join Date
    Dec 2008
    Posts
    25

    Question

    Quote Originally Posted by cpjust View Post
    I think VC++ only formats the indentation of the code.
    Eclipse can do a lot more, such as fix the way braces are placed (i.e. on a new line instead of on the same line) and add spaces before or after parentheses...
    Hey cp,
    Will Eclipse work on vista ultimate 64x?

  15. #15
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Nezmin2 View Post
    Hey cp,
    Will Eclipse work on vista ultimate 64x?
    I believe Eclipse is written in Java, so there shouldn't be a problem there.
    My manager uses Eclipse on x64 Linux and it crashes all the time, but I'm sure that's not Eclipses fault.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Updating in a sequential file?
    By Ronnyv1 in forum C Programming
    Replies: 1
    Last Post: 03-24-2009, 04:41 PM
  2. Database assignment is Killing me!
    By Boltrig in forum C Programming
    Replies: 2
    Last Post: 11-29-2007, 03:56 AM
  3. LinkList Sorting in C
    By simly01 in forum C Programming
    Replies: 3
    Last Post: 11-25-2002, 01:21 PM
  4. Creating a student grade book-how?
    By Hopelessly confused in forum C Programming
    Replies: 5
    Last Post: 10-03-2002, 08:43 PM
  5. A few tips please...
    By gems in forum C++ Programming
    Replies: 4
    Last Post: 04-11-2002, 02:28 PM