|
On February 04 2005 15:27 n00bsaibot wrote:Show nested quote +On February 04 2005 15:18 Hippopotamus wrote:I have a programming class ... I'm pretty sure he does. Do you know what c++ is? So because he throws darts at the course catelogue for classes to take, he automatically knows what that class is and its subjects are? Hes asking where to get c++. The question doesnt even make sense. C++ is a programming language, not a thing you go out and buy. What he wants is a compiler, and possibly some reading material. Because he thinks programming sounds neat since programmers made starcraft, firefox, and bwscanner. He'd like to be able to make those things too. Too bad he'll drop out after the first semester realising he has no idea what hes getting in to and the pre-requisite genius knowledge and love of computers/programming since childhood it takes to become a skilled programmer.
Why dont you go burn in hell.
|
you'll thank me when he stops posting source code in the general forum asking for people to help every day.
|
ive been reading some help topics in Dev-C++ program and also some stuff on the web about VB C++ (i think it is) and I see some differences in the source codes for basic programs... i wonder if this will be a problem for my class as in the outline it asks for Microsoft visual C++ 6 Introductory Edition T_T
Heres what i read:
Dev-C++
#include <stdin.h> main() { printf("Hello World\n"); }
Visual C++
// my second program in C++
#include <iostream.h>
int main () { cout << "Hello World! "; cout << "I'm a C++ program"; return 0; }
whats the difference between iostream and stdin.h ???
also... maybe it would be best i work with the C++ they ask for? Anyone know where I can download the microsoft visual C++ ????
Thanks a lot, much appreciated.
|
Most educational facilities provide a server which has all the necessities for compiling and running C++ programs. If you can log on to your school server (read mail for example with pine or such), you should be able to use g++ too to compile your c++ progs. If your school doesn't offer such capabilities, I remember DJGPP being free but it was like 100000 years ago. There are prolly many other free ones.
And what comes to Visual Studio - even if it's the best tool in creating windows software, it's not by far the best software in creating other software. The syntax from many parts is a bit different from those people have to use (such as gcc). There's no need to buy a book though, you can probably find all the info there is to find in the net - that's for sure
|
Visual Studio C++ is a very big and very expensive program, you should have no problem finding this on your favorite p2p program. The difference between iostream and stdin are the definitions for what printf() and cout mean, i think. Its been awhile, but this could easily be answered by a trip to google. You should try it sometime.
|
Dev-C++
#include <stdin.h> main() { printf("Hello Worldn"; }
Visual C++
// my second program in C++
#include <iostream.h>
int main () { cout << "Hello World! "; cout << "I'm a C++ program"; return 0; }
----------------------------
okay veg that dev c++ example is actually C code. notice how it uses printf instead of cout. cout is a c++ pointer to a stream to the display console (not important to know what i just said). you see how either program included different files?
the visual c++ included iostream.h which is a c++ header. c++ was based on c but added stuff to it. c still uses printf which comes from stdio.h
i think the problem is that you used c programming mode on dev-c++, so the hello world example came out in c. the latest version of devc++ has this as the c++ example:
#include <iostream>
using namespace std;
int main (int argc, char *argv[]) { cout << "Hello World!" << endl; cout << "Press ENTER to continue..." << endl; cin.get(); return 0; }
---------
the reason its not exactly like visual studio c++ is because c++ itself has differnet versions. like in this version standard ansi headers like iostream dont need the ".h" put on them, and you dont do cin >> variable; using namespace is a new thing also, and it is used alot in c# (microsoft's .net version of c++)
as you can see there are many many different versions but as a general guideline c can be compiled by a c++ compiler. so the example you had for devc++ would work for ms visual c++.
hope this helps.
|
|
pm me whenever you need some help. I know C++ pretty well.
|
I code for a living. You'll be using Visual Studio if you intend to do the same. Get used to it.
|
grrr
ok so in Dev-C++
I have a 'project' and inside many files for each of my problems
when i try to compile + run a file... for some fuckin reason it goes back and does it for ALL the files at the same time
so naturally it gives my an error saying i have more than one main() function...
how the hell do i compile//run for just ONE file... =[ !!
|
On February 04 2005 15:27 n00bsaibot wrote:Show nested quote +On February 04 2005 15:18 Hippopotamus wrote:I have a programming class ... I'm pretty sure he does. Do you know what c++ is? So because he throws darts at the course catelogue for classes to take, he automatically knows what that class is and its subjects are? Hes asking where to get c++. The question doesnt even make sense. C++ is a programming language, not a thing you go out and buy. What he wants is a compiler, and possibly some reading material. Because he thinks programming sounds neat since programmers made starcraft, firefox, and bwscanner. He'd like to be able to make those things too. Too bad he'll drop out after the first semester realising he has no idea what hes getting in to and the pre-requisite genius knowledge and love of computers/programming since childhood it takes to become a skilled programmer. Hmm... I don't know anybody who started programming before the 9th grade, and I know alot of great programmers who love doing it, and who will go on to be professionals. He's also taking a class, not applying for a career. Classes are meant to teach subjects, not test your existing knowledge. You are expected to know nothing about programming before you start.
You are always hilariously pessimistic. You were the one who kept telling me that I couldn't learn linux. You don't know everything, in case you are wondering.
"... he'll drop out after the first semester realising he has no idea what hes getting in to and the pre-requisite genius knowledge and love of computers/programming since childhood it takes to become a skilled programmer."
Hahahaha. Sounds remarkably familiar.
|
My goal is not to discourage him from learning, but to discourage him from getting in over his head and then bugging us to death with a bunch of stupid questions. I take it youre a linux guru now? Nevertheless, i dont see you here talking about it every day, so thats good.
And programming is one of those things you dont just take for a fun class. Usually youre either talented, or wishing you were talented. I just didnt believe he took a c++ course to get a random credit in math or whatever. But if he wants to write the next doom engine or something, he has to have been programming since like the 6th grade. Thats usually the intermediate level in which intelligent kids who already excel at math enter this and succeed. Programmers are born, not taught.
|
On February 06 2005 13:52 Veg wrote: grrr
ok so in Dev-C++
I have a 'project' and inside many files for each of my problems
when i try to compile + run a file... for some fuckin reason it goes back and does it for ALL the files at the same time
so naturally it gives my an error saying i have more than one main() function...
how the hell do i compile//run for just ONE file... =[ !!
1 project = 1 application. Try and keep it like that and you should be fine.
|
You can dl the Microsoft Visual Studio command line compiler for free from Microsoft. It is only a command line compiler, so hook it into whatever free IDE you want to use. You'll find a dl link for it on google if you search for the bold text above.
|
get some balls and program with notepad
or better yet, pen and paper
|
On February 07 2005 10:39 poor newb wrote: get some balls and program with notepad
or better yet, pen and paper
If you're going to recommend the notepad, you should at least steer him towards something that makes indentions easier. I really dislike how in notepad you have to manually space each line since tab is too far for an indention and it doesn't continue with formatting when in control structures.
|
On February 04 2005 15:55 Frits wrote: Try deleting rundll32.exe, it may prevent you from finding that book.
LMAO. Was veg the one who deleted rundll32.exe before and posted about it on tl? You probly wanna ask ur teacher if u can turn in code written for dev c++ before you code the whole thing. I can send u an image of the visual c++ cd if u need it. Main is where the program starts, two mains equals start at two spots which doesn't make sense. Make 1 project per assignment like tec said.
|
On February 06 2005 15:07 n00bsaibot wrote: My goal is not to discourage him from learning, but to discourage him from getting in over his head and then bugging us to death with a bunch of stupid questions. I take it youre a linux guru now? Nevertheless, i dont see you here talking about it every day, so thats good.
And programming is one of those things you dont just take for a fun class. Usually youre either talented, or wishing you were talented. I just didnt believe he took a c++ course to get a random credit in math or whatever. But if he wants to write the next doom engine or something, he has to have been programming since like the 6th grade. Thats usually the intermediate level in which intelligent kids who already excel at math enter this and succeed. Programmers are born, not taught.
Riight. Do you say that just so you can feel special? I seems to me that what you're writing is just a mask for your narcissism.
|
On February 07 2005 12:05 draeger wrote:Show nested quote +On February 07 2005 10:39 poor newb wrote: get some balls and program with notepad
or better yet, pen and paper If you're going to recommend the notepad, you should at least steer him towards something that makes indentions easier. I really dislike how in notepad you have to manually space each line since tab is too far for an indention and it doesn't continue with formatting when in control structures. the point is that you don't need compliers to write programs, you just need compliers to run them when you are taking an exam all you get is pen and paper, there is no complier to help you if you rely too much on compliers, you'll screw up on exams more besides, turning on your computer takes longer than writing "hello world" on paper
|
On February 07 2005 10:39 poor newb wrote: get some balls and program with notepad
or better yet, pen and paper
Oh come on now. At least use TextPad for the color coding.
|
|
|
|