|
|
Hello
Can anybody explain what is a source control ? why is it useful ? and where can I download one.
thank you.
-- modified at 11:34 Tuesday 27th June, 2006
|
|
|
|
|
|
big_denny_200 wrote: what is a source control ?
It's a source files mamangement system.
big_denny_200 wrote: why is it useful ?
It manages source files:
1) Providing repository
2) Coordinating development in a team environment
3) Easying source code backup
4) Automating release configuration
5) etc.
big_denny_200 wrote: where can I download one
For Windows, Visual Studio Enterprise Edition provides "Visual Safe Source" tool. For free downloads, google "cvs for windows". For Linux, check out GNU websites for GNU CVS.
Best,
Jun
|
|
|
|
|
Try having a look at the first few chapters of Version Control with
Subversion[^], which talks about the Subversion[^] product.
Subversion is a pretty nice SCM/RCS product, BTW...
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
|
I am writing an expression evaluator, so I have come across the following head-scratcher:
We all know that for every type in the C++ world, we are able to declare either an actual instance of that type, or a pointer to that type. C++ natively supports up to two levels of indirection, if I am correct.
So, is the level of indirection an attribute of the type, or an attribute of the symbol that represents the instance of the type?
In other words, are there three different native types called:
char
pointer-to-char
pointer-to-pointer-to-char
OR is there really only one type
char
and the level of indirection is an attribute that belongs to the specific symbol being declared?
|
|
|
|
|
you can have as many levels of indirection as you want.
char *************** p = NULL; is perfectly valid.
Richie308 wrote: the level of indirection is an attribute that belongs to the specific symbol being declared
i believe this is correct.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Chris Losinger wrote: char *************** p = NULL; is perfectly valid.
Wow, I think you're right. I tried it, and it compiled without error!
This really answers my question, thank you Chris.
|
|
|
|
|
Chris Losinger wrote: you can have as many levels of indirection as you want.
char *************** p = NULL; is perfectly valid.
Its been a while, but I believe this is actually limited to something like 17 levels (not that you would ever need that many). I'd have to look it up myself, but I remember that the dimensions of arrays are limited to 17 (or somewhere around there) ... I believe pointer levels are as well.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Zac Howland wrote: something like 17 levels
just the thought makes me giggle.
char *****************p = NULL;
p = new char****************[n];
p[0] = new char***************[n];
p[0][0] = new char**************[n];
p[0][0][0] = new char*************[n];
p[0][0][0][0] = new char************[n];
p[0][0][0][0][0] = new char***********[n];
...
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
You laugh ... but sadly, I've seen people try to make 20-dimensional arrays and wonder why they get compiler errors ... not to mention logic errors :P
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
I really like your sig!
|
|
|
|
|
It's the first.
My reasoning: a pointer is a variable that stores an address, which is always 32 bit in a 32-bit OS, regardless of what type of instance it points to.
Best,
Jun
|
|
|
|
|
You listed 3 types:
char
ptr to char
ptr to ptr
They are not the same.
In the case of a pointer, it matters what type it points to in case you want to do arithmetic on the pointer value, such as incrementing it for example.
C++ allows any number of levels of indirection.
|
|
|
|
|
Hello there.
Does anybody know how to hide or don't show the child window caption in the "Windows" menu of its Client Window?
I don't want the "Windows" menu of a Client window show some of its childs windows captions.
Thanks.
|
|
|
|
|
Did you Mean :-
FWS_ADDTOTITLE
or the one in the window Menu of the parent frame then the application calls CWnd::DrawMenuBar you can choose here wether you need to add the menu.
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
Thank you for your answer.
I meant:
I have an MDI App.
Anytime the App creates a child window, the caption (title of the child window) is showed by the menu "Window" of the frame (the client).
Ex:
The App creates (in this order) 2 childs windows whose titles (captions) are "Document A" and "Document B"
Then, the "Window" menu of the frame window (the client) is showed as fallow:
Window
--Cascade
--Tile horizontal
--Tile vertical
--Arrange icons
...........
1 Document A
2 Document B
The problem is that I don't want the "Window" menu of the frame window show the titles of the child windows created.
If you could help me with this...thank you very much.
John.
|
|
|
|
|
|
It is equivelent to
ObjectRoot::ms_instances[ ObjectRoot::ms_numInstances ] = this;
ObjectRoot::ms_numInstances++;
Good to see you are hooked up with HLA stuff. Hope you enjoy it
Best,
Jun
|
|
|
|
|
1) It returns the current value of ObjectRoot::ms_numInstances (which is a static integer representing the number of current instances the array has pointers for).
2) It sets the last unset element in the array (that is the first NULL array element -- represented by ObjectRoot::ms_instances[ObjectRoot::ms_numInstances]) to the value of the current object.
3) ObjectRoot::ms_numInstances is incremented by 1 (set to the next NULL value in the array).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
How do I bring up the MFC ClassWizard in Visual C++ .NET edition? I cannot seem to find it.
Thanks,
G
cpp@nearsphere.com
|
|
|
|
|
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Can you tell me the function to convert ansi string to utf-8 string?
|
|
|
|
|
Have you tried MultiByteToWideChar() or WideCharToMultiByte() ?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|