Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Visual Studio.Net EXPRESS Editon
Closed Thread
Old 01-29-2006, 04:10 PM   #1 (permalink)
 
True Techie

Join Date: Jan 2006

Posts: 242

Yin-Yang

Default Visual Studio.Net EXPRESS Editon

hello I have VS.NET EE and I was wondering why in Visual C++ I could not program it with out getting errors aperently it uses commands like

' System::out ("Text Here") '

or something around the lines of that. However I was trying to learn the basics like this


#Include <Iostream>
#Using Namespace Std;

int main() {

cout<<"Hello World" ;

return 0;
}


But this just does not work with it. is there a reson for this? because it works fine on "Dev C++".

Thank you.
__________________
<a href= http://r.yuwie.com/yinyangerror>http://i65.photobucket.com/albums/h2...uwieBanner.png</a>
Yin-Yang is offline  
Old 01-29-2006, 07:22 PM   #2 (permalink)
 
Ultra Techie

Join Date: Jul 2005

Posts: 530

TheHeadFL

Send a message via AIM to TheHeadFL
Default

'using' is a C++ reserved word, and should not be prefixed with a precompiler directive (the # character).

Additionally, the .NET framework way of printing is not

Code:
System::Out
It is

Code:
System::Console::WriteLine("Hello");

__________________
Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline  
Old 01-29-2006, 11:22 PM   #3 (permalink)
 
True Techie

Join Date: Jan 2006

Posts: 242

Yin-Yang

Default

Quote:
Originally posted by TheHeadFL

Code:
System::Out
It is

Code:
System::Console::WriteLine("Hello");
ok I knew I did not get that right. I never programed in Visual C++ before. I think it is best that I just use Dev C++ to learn the basics.
__________________
<a href= http://r.yuwie.com/yinyangerror>http://i65.photobucket.com/albums/h2...uwieBanner.png</a>
Yin-Yang is offline  
Old 01-30-2006, 12:07 AM   #4 (permalink)
 
Ultra Techie

Join Date: Jul 2005

Posts: 530

TheHeadFL

Send a message via AIM to TheHeadFL
Default

Starting with .NET Visual C++ is "Managed Extensions for C++" (unless you specify a non .NET project type) which is really a different language altogether from standard C++.

I would reccommend you stay away from it if you are new to programming in C++.
__________________
Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline  
Old 02-02-2006, 07:13 PM   #5 (permalink)
 
True Techie

Join Date: Jan 2006

Posts: 242

Yin-Yang

Default

ok so stay away from .NET untill I learned normal C++?
__________________
<a href= http://r.yuwie.com/yinyangerror>http://i65.photobucket.com/albums/h2...uwieBanner.png</a>
Yin-Yang is offline  
Old 02-02-2006, 07:22 PM   #6 (permalink)
 
Ultra Techie

Join Date: Jul 2005

Posts: 530

TheHeadFL

Send a message via AIM to TheHeadFL
Default

Yes... or you could just skip C++ and use one of the more syntactically consistent next-generation languages like C# or Java.

You could easily learn to program C#.NET or Java and go back to and do C++ as well.
__________________
Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline  
Old 02-05-2006, 09:24 PM   #7 (permalink)
 
True Techie

Join Date: Jan 2006

Posts: 242

Yin-Yang

Default

Quote:
Originally posted by TheHeadFL
Yes... or you could just skip C++ and use one of the more syntactically consistent next-generation languages like C# or Java.

You could easily learn to program C#.NET or Java and go back to and do C++ as well.
Which Language would you recomend?
__________________
<a href= http://r.yuwie.com/yinyangerror>http://i65.photobucket.com/albums/h2...uwieBanner.png</a>
Yin-Yang is offline  
Old 02-06-2006, 03:01 PM   #8 (permalink)
 
Ultra Techie

Join Date: Jul 2005

Posts: 530

TheHeadFL

Send a message via AIM to TheHeadFL
Default

Either one would be good, but I prefer C#.
__________________
Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline  
Old 02-06-2006, 09:53 PM   #9 (permalink)
 
True Techie

Join Date: Jan 2006

Posts: 242

Yin-Yang

Default

Quote:
Originally posted by TheHeadFL
Either one would be good, but I prefer C#.
ok, thank you. I heard that C# is a runoff of C++ in a way, Is this correct if it is I will think about learning it first.


Edit: Hey I found this E-book called "Visual C# express for kids" it seems good, its writen by a member at Micosoft and is writen for Teens ages 10+ for learning C# express, it comes with samples step by step guides and a e-book, you can get the fist 6 chapters free but you have to buy the last 5 chapters for around $12.
__________________
<a href= http://r.yuwie.com/yinyangerror>http://i65.photobucket.com/albums/h2...uwieBanner.png</a>
Yin-Yang is offline  
 
Closed Thread

Thread Tools
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 On