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.
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.
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.
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
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)
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
I don't get it, I still swear my copy of VC++6 was only 60-some-odd dollars.
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
Your copy may have been bought with the student discount
> 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.
i dont see where i misse a "{ }" set since i have an even number of 16 of them ?
hooch
Check the definition of buy, there's one missing at the end.