Friday, July 31, 2009

C++ query ...?

Hey i saw buzz's c++ tutorials ...


In those tuts in the first program they've written a program like this [ theyre using Visual Studio.net ]








#include%26lt;iostream.h%26gt;


using std::cout;


{


cout%26lt;%26lt;"Hello";


}





And in the tutorials when they run the program without the


" using std::cout; "


command, they arent able to run it


whereas i dont need to type in that command to run the program in Turbo C++ or Visual studio..


So can any one tell me that what is the command for ? And is it only used in visual studio.net or what ???

C++ query ...?
using std::cout imports the cout function from the std namespace into your local name space. std is the namespace that much of the Standard Template Library is stored in. Google "C++ STL namespace" and you'll see what I mean. You could change





using std::cout;





to:





using namespace std;





and it would import the whole standard library into your local namespace. Importing the namespace (or function as your tut shows) allows you to make a call to the function directly. If you did not import the function or namespace, you would have to change the code from the tutorial to look like this:





#include%26lt;iostream.h%26gt;





{


std::cout%26lt;%26lt;"Hello";


}





See how we're prefacing the cout call with the namespace in which it resides?





The "using" command is standard across all newer C++ compilers. As you program you might use a third party library that has a different namespace. In that case you'd use something like:





using thirdpartylibrarynamespace::thirdpartyfu...





{


thirdpartyfunction();


}





and I'm sorry but the other answer is wrong. It is indeed





cout %26lt;%26lt; "Hello";
Reply:I'm not a c++ expert, but I think it means you can only use the cout%26gt;%26gt; thing inside the using std::cout braces...





Plus its cout%26gt;%26gt; not cout%26lt;%26lt;


How do I learn to write C++ applications?

I use Visual Studio 2005 for programming. When I was little, I used to do programming all the time with Turbo C 3.0, so I'm familiar with all the C grammars and stuffs. But, somehow I don't know how to get on the application programming. I can write console programs only run don command prompt, using C++. But when it comes to windows application programs(like MFC programmings and stuffs,) I don't know how to design window resources and everything. There are not much books on Application programming on Visual C++ 2005. Does the version matter in C++(Can I use older version books for C++ 2005?) It's hard to find the way to start these. Do you have any suggestion?





Quesiton Summary:





1) What is the most famous website/forum for C++ developers group?


2) How do I get started on Windows APP Programming?


3) Is the older version of C++ compatible with Visual C++ 2005(Can I get books for VC++ 6.0 or .NET and would it still work on 2005?)





Thx, and I always give 5 stars to the best answer.

How do I learn to write C++ applications?
You can download for free the Visual Studio Express and there are tutorials you can follow for each of the languages in it to learn.


You can write a program and then look at the final code source to see how it was developed in order to use in your other C++ work.





Download selection here:


http://msdn.microsoft.com/vstudio/expres...





Take a look here for learning materials:


http://msdn.microsoft.com/vstudio/expres...





If you need graphics programs or some other free programs you can find some more links on my webpage at http://www.tom-olsen.com/links.html
Reply:learn by doing
Reply:I took it up when I was going to school. The first 2 weeks are the basics. I was hanging in there, then that mess got advanced. I was completely lost. LOL I ended up dropping out of the class. LOL Good Luck with Computer Programming, man.
Reply:Buy book of last part or take teacher you're know his expert on C++ last Part.
Reply:Fred Wow!Your Extra News here!


★※★ http://208.109.69.157/funstuff/extra/ext...

flower pots

How do you start a home based game studio?

Without having a large budget,





free software,





using blender 3d, Photoshop, and Microsoft XNA Studio/ Visual Basic/ C#/





And how to make games commercial (i.e PS2, I know you can make Xbox 360, and Wii)





And Copyrights, if you Copyright the game's story, do you have to individually Copyright each character?





So much to ask!!!

How do you start a home based game studio?
%26gt;%26gt; free software,





http://www.sourceforge.net





%26gt;%26gt; And how to make games commercial (i.e PS2, I know you can make Xbox 360, and Wii)





You'll need a distributor. Jump off that bridge when you have something to market.





%26gt;%26gt; And Copyrights, if you Copyright the game's story, do you have to individually Copyright each character?





You don't copyright software, you patent it. You would copyright the name of the game and the names of the characters / places, etc.





You receive a patent when you apply for one and the government issues it to you. You automatically have copyright by virtue of creating a work. You automatically receive a trademark on a game or character name the first time you use it to promote your product.





http://www.copyright.gov


http://www.uspto.gov
Reply:Hmm, difficult question :D





The trick is to start small. Most major games take years of development with a large team of designers, programmers, conceptual artists etc.





BUT saying that, if you have a great idea for something simple (pong was HUGE when it first came out!), go for it!





Business side of things, you would probably be best as a sole trader or partnership. If you live in the UK establishing such a business is really easy, look on Google for help. Set up a website where people can download your games (perhaps for a fee), and begin a games portfolio of things you've released. Things should grow from there.





Re copyright: this will only apply if you publish your game, as obviously no-one will have access to the source code otherwise. Standard copyright rules apply- you don't have to explicitly copyright your material (its automatically covered to some degree), but you could put a copyright notice on the first screen of the game and in the source code etc. Character names, place names etc *can* be copyrighted, but this will be a long and probably expensive process- and even then you might not get full protection, so this probably isn't worth your time unless you have a huge global mega bestseller on your hands!!





Good luck with it!
Reply:sex


C++ compiler and guide?

I am interested in programming and so far I only know Visual Basic, Basic, and QBasic, not so amazing. Anyway, lately I have grown interest in C++ and want to learn it. I know C++ is a massive language but are there any compilers? guides? to get statrted? I like using the 32-bit compilers, but it doesn't make a difference. Also, I have VIsual Studio.NET 2003, but I don't know hwo to use it with Visual C++. Even teaching me how to program Hello World would be fine.

C++ compiler and guide?
Well, if you'd like to find a larger selection of compilers (though Bloodshed Dev-C++ is excellent) as well as links to tutorials, try out the URL below. It has a very nice selection of reviews, articles, tutorials, compilers in lots of languages and other programming tools. Good luck.
Reply:for C++ u may refer to "Exploring C++" by "YESHWANTH KNETHKAR ".
Reply:http://www.bloodshed.net/devcpp.html
Reply:#include %26lt;iostream.h%26gt;





main()


{


for(;;)


{


cout %26lt;%26lt; "Hello World! ";


}}


is the way to write in C++..on visual basic you have the option to choose C++ as a language. you kinda have to play with it, but there are lots of web sites to get you started


Visual Express editions ????

Visual Web developer -Express edition


Visual C# Express edition


Visual VB.NET Express edition


SQL Server Express edition





are they free or not?





Is this legal to download freely?





what is diff b/w Visual Studio 2005 and Express Editon?

Visual Express editions ????
These are not free from microsoft and u can't expect these types of products free from them, i think sql server express edition is free.


It's not legal to download them except sql server.





visual studio is the complete package for developing ur applications that can be desktop or web based . It contains whole of the functionalities of all express editions, and each express edition is only for special purpose..
Reply:Yes the Express Edition are free,you can download it at-msdn.microsoft.com/vstudio/express/vb...


or vs/


Microsoft distribute it for free to motivate aspireing programmer it does not have the full capability of the paid version but it is quite good enough and you can create even a complex software with it, you can even access their data and samples when you go to the 'Help'-'How do I' but you got to register it for free at their website or it will have a limited time period.


Regarding your last question the Express Edition is free but I can't be sure about visual studio 2005, I seen it at their web site when I look for sample code.


Can Anyone Tell me how I can tell me how i know if I have a C++ compiler???!?!?

I have 3D developers studio for Visual C++ But I can't tell if I have a compiler, And I acually need to talk to some one if possible Just about C++ in general.

Can Anyone Tell me how I can tell me how i know if I have a C++ compiler???!?!?
If you have VS, you have compiler.





To test if you have the compiler, click debug -%26gt; compile from Visual Studio window.
Reply:"...how I can tell me..."?

flower beds

How to learn C Language?

Hi everybody,





I want to learn C Language and want to be expert in this language. But I am very confused that from where I should start to learn it. I have visual studio 6.0 installed on my pc that have Visual C++.





But when I open this application, I cann't understand what to do and how to do.





Can anybody help me please? And tell me also which Version of 'C' I should use and from where I should start to learn this language.





Pl. reply asap.





Thanx.

How to learn C Language?
Try learning from a book. It is best taught by a teacher. I am studying at calTech and i have never used C. C is a very old language. Try learning JAVA which is just an improvement over C
Reply:Borland C++ is a good program, but u should take a class called computer science to learn the c++ language, cos I am taking that right now.
Reply:well, i recommend Dev C++ and read this site :http://www.cplusplus.com/





http://actualtecnologia.blogspot.com
Reply:i compleated my diploma in computer applications,i don't know how to start and learn "c" language
Reply:please i suggest you one that u must learn by teacher to gain more knowledge about c.
Reply:Not much help with this stuff but im going to have to say i agree with what everyone said an responded to!!
Reply:First you should have TC (Turbo C - MS DOS program) to start with...At the moment forget about Visual studio...





Try the book 'Programming in ANSI C - E Balagurusamy'....for beginning





If you completely understand almost the concepts of this book, then go further trying more complex programs, you will decide what you should read for more understanding....





If you want to be expert in C, then take your time...and first clear this book....Have a nice journey in C... :-)