| | |
help about programming
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Hi.I have been learning c++ lately and I'm rather interested in learning to produce source codes and applications(games maybe).I need know that whether my choice about learning c++ for game programming is right or not.I'm not interested in web developement.I have read some of the posts in c++ forums and gained some knowledge.
everybody is talking about IDE'S or Integrated Developing Environment but I think all langauges have IDE's except the old ones?
Like,I have a c++ compiler.I have been told that it's possible to link a text file written in notepad with my compiler and then run it.I have tried to open the text file from my c++ but it opens,I can't compile.Maybe you have noticed that,writing my codes in notepad is far easier than writing my codes in a c++ built-in text editor.If I need to delete one character I need to use mouse.If I use keyboard and hold the backspace key for three seconds,everything gets washed up! :evil: :mad:
BTW,would anyone please tell me the difference between a <iostream.h> and <iostream>?
Also,this is a different type of question for you.Please,give me some hints about creating a c++ application which will find ask the user to input his zodiac,output a paragraph about that zodiac in more than one lines.Do I need to use the "cin","cout",printing characters like \n or endl only?If you tell me the keywords that will of course help me.
everybody is talking about IDE'S or Integrated Developing Environment but I think all langauges have IDE's except the old ones?Like,I have a c++ compiler.I have been told that it's possible to link a text file written in notepad with my compiler and then run it.I have tried to open the text file from my c++ but it opens,I can't compile.Maybe you have noticed that,writing my codes in notepad is far easier than writing my codes in a c++ built-in text editor.If I need to delete one character I need to use mouse.If I use keyboard and hold the backspace key for three seconds,everything gets washed up! :evil: :mad:
BTW,would anyone please tell me the difference between a <iostream.h> and <iostream>?
Also,this is a different type of question for you.Please,give me some hints about creating a c++ application which will find ask the user to input his zodiac,output a paragraph about that zodiac in more than one lines.Do I need to use the "cin","cout",printing characters like \n or endl only?If you tell me the keywords that will of course help me.
Why did you post this in the web dev forum?
Ok, using IDE's is very nice. And I think every language has at least one. C++ has a ton. Visual C++ is a very nice one, that I like to use. C++ is a good language for games, I know quite a few games coded in it. I guess it all depends on what type of games you're trying to create. Quake III was coded in C++ if I remember correctly.
<iostream.h> and <iostream> are the same thing. Just one is coded with the ANSI/ISO standard(the one without the .h) and the other is old style. Don't use the .h.
For your zodiac thing, cin and cout would be fine if you are wanting to create a simple command line type thing. Just use a switch statment:
the syntax may be off a little, it's been forever since I've used c++. But you should get the idea. The \n and endl are two different things. The \n prints a new line, you should place one wherever you want a new line to start. The endl clears out the out-buffer.
Hope this helped some
Ok, using IDE's is very nice. And I think every language has at least one. C++ has a ton. Visual C++ is a very nice one, that I like to use. C++ is a good language for games, I know quite a few games coded in it. I guess it all depends on what type of games you're trying to create. Quake III was coded in C++ if I remember correctly.
<iostream.h> and <iostream> are the same thing. Just one is coded with the ANSI/ISO standard(the one without the .h) and the other is old style. Don't use the .h.
For your zodiac thing, cin and cout would be fine if you are wanting to create a simple command line type thing. Just use a switch statment:
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <String> using namespace std; int main() { String zSign; cout << "Type your zodiac sign: " << endl; cin.getline(); switch(zSign){ case sign: cout << "blah stuff about blah sign...." << endl; break; case sign2: cout << "Blah stuff about blah sign 2..." << endl; break; default: cout<< "you must not have a sign" << endl; break; } return 0; }
Hope this helped some
![]() |
Similar Threads
- Good books on Shell Programming/Perl (Perl)
- Shell Programming (Shell Scripting)
- Programming (C++)
- Professional web design and programming services (Post your Resume)
- Where to get started with Web Programming (IT Professionals' Lounge)
- Programming in Linux? (*nix Software)
- Efficient Programming (Computer Science)
- New To Programming = ME!! (C++)
Other Threads in the C++ Forum
- Previous Thread: doesnt make sense
- Next Thread: figure this out
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





