VC++ Compilers

This is a discussion on VC++ Compilers within the C++ Programming forums, part of the General Programming Boards category; Can someone tell me the cheapest one to get, and where to get it? I want to get the microsoft ...

  1. #1
    Unregistered
    Guest

    Question VC++ Compilers

    Can someone tell me the cheapest one to get, and where to get it?

    I want to get the microsoft one but my mom won't let me.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Well MS VC++ is a $$$ product, but the student edition is apparently pretty cheap (comparitively), if you can prove that you're a student.

    I seem to remember some mention that older versions were on the CDs in the back of some books....

    Or you can get one of the free ones
    http://www.compilers.net/
    http://www.thefreecountry.com/developercity/index.html
    Most of which are perfectly adequate for learning with.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    255
    well if u look in barnes and nobles and buy the microsoft vc++ with the sams teach urself and its like 30 bucks thats all
    hooch

  4. #4
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336

    Post VC++

    If you are serious about programming with MSVC++ and don't want to spend alot of money:

    1.) You could always pirate it(but it is wrong)
    2.) Buy the learners Edition(Don't reccommend it if you are serious)
    3.) Do the right thing and buy the standard edition for $109 (you can always upgrade later)
    Give me a bad reputation!!!

  5. #5
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    The excellent c++ primer book.....

    How to program in c++ by Deitel and Deitel comes with MSVC 6 learning edition which will cover you for most learning situations for both console and windows. The areas it is weak on you will not need for a couple of years anyway. Most of what is missing is to do with mfc libraries. The book is worth the money by itself. MSVC is a bonus!
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    I don't get it, I still swear my copy of VC++6 was only 60-some-odd dollars.

  7. #7
    Registered User
    Join Date
    Nov 2001
    Posts
    255
    perhaps sumone could tell me what these errors mean and how to fix this please?


    #include <iostream.h>
    #include <stdlib.h>
    #include <string.h>
    class Stock //class declaration
    {
    private:
    char company[30];
    int shares;
    double share_val;
    double total_val;
    void set_tot() { total_val = shares * share_val; }
    public:
    void acquire(const char * co, int n, double pr);
    void buy(int num, double price);
    void sell(int num, double price);
    void update(double price);
    void show();
    //note semicolon at the end
    };


    void Stock::acquire(const char *co,int n, double pr)
    {
    strncpy(company, co, 29);//truncate co to fit if needed
    company[29] = '\0';
    shares = n;
    share_val = pr;
    set_tot();
    }
    void Stock::buy(int num,double price)
    {
    shares +=num;
    share_val = price;
    set_tot();
    void Stock::sell(int num, double price)
    {
    if (num>shares)
    {
    cerr <<"You can't sell more than you have!\n";
    exit(1);
    }
    shares -= num;
    share_val = price;
    set_tot();
    }
    void Stock::update(double price)
    {
    share_val = price;
    set_tot();
    }
    void Stock::show()
    {
    cout<<"company: " <<company<< " Shares: "<<shares<<endl;
    cout<<" Share Price: $"<<share_val<<" TOTAL WORTH: $"<<total_val<<endl;
    int main()
    {
    Stock stock1;
    stock1.acquire("NanoSmart", 20, 12.50);
    cout.precision(2);//#.## format
    cout.setf(ios_base::fixed);//#.## format
    cout.setf(ios_base::showpoint;//#.## format
    stock1.show();
    stock1.buy(15, 10.25);
    stock1.show();
    return 0;
    }
    }
    }



    --------------------Configuration: class example - Win32 Debug--------------------
    Compiling...
    class example.cpp
    C:\class example.cpp(36) : error C2601: 'sell' : local function definitions are illegal
    C:\class example.cpp(47) : error C2601: 'update' : local function definitions are illegal
    C:\class example.cpp(52) : error C2601: 'show' : local function definitions are illegal
    C:\class example.cpp(66) : error C2958: the left parenthesis '(' found at 'C:\class example.cpp(61)' was not matched correctly
    C:\class example.cpp(67) : fatal error C1075: end of file found before the left brace '{' at 'C:\class example.cpp(52)' was matched
    Error executing cl.exe.
    hooch

  8. #8
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336

    Post MSVC++

    Your copy may have been bought with the student discount
    Give me a bad reputation!!!

  9. #9
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    > C:\class example.cpp(36) : error C2601: 'sell' : local function definitions are illegal
    What is means is, c++ is not Pascal - you can't declare functions inside functions

    What it really means is that you probably missed a } from the previous function.

  10. #10
    Registered User
    Join Date
    Nov 2001
    Posts
    255
    i dont see where i misse a "{ }" set since i have an even number of 16 of them ?
    hooch

  11. #11
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    Check the definition of buy, there's one missing at the end.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. makefile exported by vc 6.0 doesn't work
    By wow in forum Windows Programming
    Replies: 7
    Last Post: 03-24-2006, 03:20 PM
  3. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  4. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 07:03 AM
  5. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 03:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21