Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

littlewater

what is the first step in c++?

This topic is 5174 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i installed bcb on my computer during my first term i learn some basic about c++, sb. told me that you should programme frequently so i won''t forget it and i could develop c language. but programme ,for me ,is sth which can''t see and can''t touch, i only know about if for while ... and so on. but i know that nobody will born with high technology of c++. what''s your first step of c++? À´×ÔÖйúµÄÇóѧÕß¡­¡­

Share this post


Link to post
Share on other sites
Advertisement
First step: Get a good book (or digital information)
Second step: begin with simple dos programs. just write som text on screen.
Third step: Write to file
Fouth step: use classes
Fived step: Go to windows programs.

This is how I learned it at school. In a few weeks I hade a nice pong game in de dos prompt. a year later I had the same in windows but than object orriented.

Share this post


Link to post
Share on other sites
so Third step: Write to file...

how can i write to a file like book.txt??

i just could read from file using ifstream from a file "oil.in"......

À´×ÔÖйúµÄÇóѧÕß¡­¡­

Share this post


Link to post
Share on other sites
You read a file with an std::ifstream, so you''d write with an std::ofstream.

Share this post


Link to post
Share on other sites
This could be done by ofstream. the exact statement you could find in the help file or on internet.

Share this post


Link to post
Share on other sites
the same format?

ok~thx!~
_______________________________________________

but i don''t know whether i can keep up with others

for in the palace of " for beginners " i also can''t

understand most of other''s talking , i''ll do my best

but /...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!