Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-04-2004, 10:41 AM   #1
Beta Member
 
Join Date: Jun 2004
Posts: 1
Default Teaching C++ in High School

I'm teaching C++ next year to students who have all had one year of either Visual Basic.net or AP Java. It's been 4 years since I got my degree, had lots of C++. I have 2 basic questions:
(1) When I tried entering a program in Visual Studio.net using <iostream.h> I got a message about deprecation. I searched & learned that it is <iostream>. Is this because I was using .net? Is it just new? (2) What IDE would be best for the students. We already have Visual Studio .net in one lab. This year, teaching Java, I had endless free text editors and of course a free compiler. With limited money, what is the best way to go in C++.
Thanks for any help you can give me.
__________________

adrienneaadams is offline   Reply With Quote
Old 06-08-2004, 02:44 PM   #2
Baseband Member
 
Join Date: Jun 2004
Posts: 77
Send a message via Yahoo to ewomack
Default

If money is an issue, then Microsoft is usually not the way to go (in my experience - that company has sucked up a lot of my income). Also, and someone else can probably embellish on this more than I can - VS.NET uses "managed" C++, which means that the C++ libraries and such provide a direct coupling with the .NET libraries. It's possible to program in "non-managed" C++ in VS.NET (and I've even programmed in plain C, but it requires some fooling and indirect ways), but the learning curve may prove inefficient. I have to say that overall I didn't enjoy programming C++ in VS.NET. It may (or may not) be worth a look at the free GNU C++ compiler (http://gcc.gnu.org/), but keep in mind that it is a command line compiler, without cool graphics and drag and drop functionality (though that may have changed). There are also some good cheap and free C++ compilers for LINUX (which may or may not be an option for you).

Again, someone else could embellish more on the C++/VS.NET thing than I can, but at least one author I've read stated "I'd personally rather have my teeth pulled than use managed C++" - from what I saw I agree with this.

Hope this helps.
__________________

ewomack is offline   Reply With Quote
Old 06-20-2004, 01:21 AM   #3
Baseband Member
 
ROSEBLOOD's Avatar
 
Join Date: Jun 2004
Posts: 46
Send a message via AIM to ROSEBLOOD
Default

I personally use Dev C++ its not command line, its like visual studio but open source so its free. Your students can download it at home if they want. The website is http://www.bloodshed.net/.

EDIT: It compiles both C and C++

~ROSEBLOOD
__________________
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
--Stephen Hawking (1942 - )
ROSEBLOOD is offline   Reply With Quote
Old 06-23-2004, 03:49 PM   #4
Baseband Member
 
Griz803's Avatar
 
Join Date: Jun 2004
Posts: 89
Default Re: Teaching C++ in High School

If you are interested in another compiler, you might try Watcom C/C++. It has gone open source and can be downloaded free. The only hitch is it will be incapable of programming Windows until you download and re-compile the Win SDKs. Also available free from (yuck) Microsoft.
To find the Open Source version, try www.thefreecountry.com . They also have references and links to quite a few freeware compilers.

Hope this helps
Griz803 is offline   Reply With Quote
Old 07-03-2004, 08:55 PM   #5
Daemon Poster
 
Tulsileaf's Avatar
 
Join Date: Jul 2004
Posts: 1,249
Default Re: Teaching C++ in High School

c++ no longer uses the .h extension on its standard headers due to the standardization of namespaces. all standard c++ libraries use the namespace std (for standard not that other thing )

so code will have to look something like this:

#include <iostream>
#include <cstring>

using namespace std;

int main () {

cout << "Greetings World."<<endl;
return 0;

}

the line "using namespace std;" lets you use "cout" instead of "std::cout"

this at least answers your first question and some
Tulsileaf is offline   Reply With Quote
Old 07-18-2004, 09:24 AM   #6
In Runtime
 
0x54's Avatar
 
Join Date: Jul 2004
Posts: 157
Default Re: Teaching C++ in High School

id use g++ and vim/mcedit/nano, then save some time and just dump a *nix on a computer on the network and let everyone ssh in.

our class used VC++.
christ that was shit, people came up with all sorts of weird unexplainable problems etc...
not to mention no one had VC++ at home.

(how do they get their files off there? scp or give them webspace on the same server)
0x54 is offline   Reply With Quote
Old 07-19-2004, 03:06 PM   #7
Guru
 
Lord Kalthorn's Avatar
 
Join Date: Dec 2003
Location: Britain
Posts: 13,293
Send a message via MSN to Lord Kalthorn
Default Re: Teaching C++ in High School

Quote:
Originally Posted by adrienneaadams
I'm teaching C++ next year to students who have all had one year of either Visual Basic.net or AP Java. It's been 4 years since I got my degree, had lots of C++. I have 2 basic questions:
(1) When I tried entering a program in Visual Studio.net using <iostream.h> I got a message about deprecation. I searched & learned that it is <iostream>. Is this because I was using .net? Is it just new? (2) What IDE would be best for the students. We already have Visual Studio .net in one lab. This year, teaching Java, I had endless free text editors and of course a free compiler. With limited money, what is the best way to go in C++.
Thanks for any help you can give me.
I can't Private Message you, so basically I'm going to say it here: I can sell you as many copies of Visual Studio 2003.NET EE as you want if you want to stick with Visual Studio with a budget?
__________________

__________________
A Knight is sworn to Honour. His heart knows only Virtue. His blade defends the helpless. His might upholds the Weak. His word speaks only truth. His wrath undoes the Wicked.
Lord Kalthorn is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:33 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0