This site is no longer active and is available for archival purposes only. Registration and login is disabled.

I'm rookie at C++ and I have simple questions


I'm rookie at C++ and I have simple questions

Postby BIGBEN » Mar 16, 2003 @ 9:32pm

:cry:
Hello! I’m a starting programmer from Russia and I need help. I’m rookie at C++. And I have a simple questions, I am dealing with #-((
Can I load/unload pictures with Pocket Frog during the game? If yes, how can I do this (please write an example).
What is faster to load jpg or gif?
How can I reload an array to be bigger, saving the previous numbers and adding a new?
How can I load data from a *.txt file and pictures from a main memory.
Greetings from Russia.
BIGBEN
 


Postby adde » Mar 17, 2003 @ 5:18am

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby fzammetti » Mar 17, 2003 @ 6:43am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby adde » Mar 17, 2003 @ 3:07pm

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby Sm!rk » Mar 17, 2003 @ 9:18pm

User avatar
Sm!rk
pm Member
 
Posts: 172
Joined: Dec 16, 2002 @ 4:40pm


Postby adde » Mar 18, 2003 @ 1:17pm

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby Kzinti » Mar 18, 2003 @ 8:37pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fzammetti » Mar 18, 2003 @ 8:52pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby BIGBEN » Mar 18, 2003 @ 9:42pm

:lol: :lol: :lol: Thanks very much for attending to my little problems!!!
BIGBEN
 


ok then, what can STL do ? how does it save me time ???

Postby Conan » Mar 18, 2003 @ 10:16pm

reading Fzammetti & Thiery's posts I just have to ask the obvious question, what can STL do for me? I don't know anything about it other than the PF connection.

How can STL save me time writing a game? What pre-written code can I use from STL and where do I find out in plain English what's possible. ( I mean something understandable not written by Unix/C++ geeks who delight in making simple things confusting )
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby BIGBEN » Mar 18, 2003 @ 10:23pm

8) At third time: Thanks for answering! 8)
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby fzammetti » Mar 18, 2003 @ 10:26pm

STL, or Standard Template Library, is a C++ library that provides a set of easily composable C++ container classes and generic algorithms (template functions).

The container classes include vectors, lists, deques, sets, multisets, maps, multimaps, stacks, queues and priority queues.

The generic algorithms include a broad range of fundamental algorithms for the most common kinds of data manipulations, such as searching, sorting, merging, copying, and transforming.

The most important difference between STL and all other C++ container class libraries is that most STL algorithms are generic: they work on a variety of containers and even on ordinary C++ arrays. A key factor in the library design is the consistent use of iterators, which generalize C++ pointers, as intermediaries between algorithms and containers. A precise classification of iterators into five categories is the basis for determining which algorithms can be used with which containers, and is the main guide to extension of the library to include new algorithms that work with STL containers, or new containers to which many STL generic algorithms can be applied.

Take a peak at for more in-depth information (yes, I just copied all of the above from that site!)

To boil it down simply, it's really just another library with functions and structures that tend to get used a lot in programming (maybe more so in games). The nice thing about STL is that it is designed from the ground-up to be cross-platform (I guess that's really the point actually) so your code that makes use of it's functionality should be identical across all platforms.

Thierry has certainly more experience with it than me, so hopefully he'll elaborate a bit (and correct anything I'm wrong about of course!)
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby adde » Mar 19, 2003 @ 1:24am

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Links don't work

Postby Conan » Mar 19, 2003 @ 9:41am

The links are wrong or down so I will look for the site......... Nope, no links on Google work though the tutorials are there. I will try later
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby adde » Mar 19, 2003 @ 11:13am

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Next

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron