Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - islador

Pages: [1]
1
C - C++ / Re: C++, Fresh Starter...How To Start??
« on: April 12, 2011, 03:02:53 am »
Satan911 beat me to it. Once you've got a project setup properly, right click the "source files" folder on the right and hit add then new item, be sure to select c++ file, just so we're working on the same config in VS10. Damned VS10 does some hacky shit, so definitely important.

2
C - C++ / Re: What got you started on C++?
« on: April 12, 2011, 12:42:53 am »
I started teaching myself Perl, learned a fair bit, then learned that my school offered C++ classes, but no Perl classes, so I was like "fuck it, might as well learn c++" so i enrolled in that class and have been working through it since.

3
C - C++ / Re: C++, Fresh Starter...How To Start??
« on: April 12, 2011, 12:36:50 am »
your missing namespace standard. To implement it, add a line immediately under your #includes with the text "using namespace std;" This will allow you to use many of the common expressions like cout and cin.
Code: [Select]
using namespace std;
your code is also overly explicit, you could accomplish the same thing with
Code: [Select]
#include <iostream> // this calls for the input output stream
using namespace std;
int main(){
cout << "Hello world, please kill me before my programmer makes me his slave!"
return 0;
}
you don't need any args in int main() in almost every case, no need to fuck with it.

Pages: [1]