|
Thankx
but i have gone through the MSDN before posting the qestion
I wanted to know that can be insert in between a vector
Say we have vactor that holds 100 character , i want to
insert a character at loacton 50 from start and shift all
other element by 1. So initialy the char at 50 will now
be at 51 and char at 52 will be 53
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
then use deque class , here is a little example :
#include < deque >
#include < iostream >
int _tmain(int argc, _TCHAR* argv[])
{
using namespace std;
deque< int > c1, c2;
deque< int >::iterator Iter;
c1.push_back( 1 );
c1.push_back( 2 );
c1.push_back( 4 );
c1.push_back( 5 );
Iter = c1.begin();
Iter+=2;
c1.insert(Iter,3);
cout << "c1 = ";
for ( Iter = c1.begin( ); Iter != c1.end( ); Iter++ )
cout << *Iter << " ";
cout << endl;
return 0;
}
For further reference see MSDN
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
-- modified at 8:24 Thursday 29th December, 2005
|
|
|
|
|
Thank you
this works out as i want
hope so using this class
dont have more overload on the processor,
compiler overload is not a problem .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote: Thank you
you are welcome
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
can you mention any??
it shouldn't be taking about "what's a structure","what's pointer",etc... it should be digging something deep into the "SEE"!, i'll be happy if it includes _asm . and i dont want any UNIX related stuff inside that. i want Microsoft C. please suggest a book.
and also for C++.
thanks.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
VivekuniQ wrote: it should be digging something deep into the "SEE"!, i'll be happy if it includes _asm .
It's your brain. Trust me. He he.
But still(Just in case your brain fails;P) GOOGLE is your friend.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
the best book of c++ is Bjarne Stroustroups's C++ (he's the guy who invented c++)
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
Hmmmm...
m_blueBrush.
Huh
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I do not understand what can be so funny
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
Vivek knows
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
stroustroups' book has some wapi in it
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
Take a look at my name. It's in blue color. Sometime back he teased me about that. So I was just teasing him back;). Sorry for offending you.
That time he said m_blueBrush.
Now I said it back. He he
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
hahaha yeaa!!
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
VivekuniQ wrote: and also for C++.
I would suggest you these two.
C++ Unleashed - Jesse Liberty
Thinking C++ , Practical Programming - Bruce Eckel
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
hmm.. thanks, i'll search for them in the stall.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
|
I am going to download it just now.Thanx Alok
never say die
|
|
|
|
|
i think you cant stop helping me and i cant stop prasing u , thanks yaar.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
I agree with Giorgi: Thinking C++ by Eckel is really good! Also, every programmer, no matter what language, should read two books by Steve McConnell: "Code Complete", and "Rapid Development" (IMHO).
Peace!
|
|
|
|
|
I dunno if this is the right palce for this but i'm new to this forum so bear with me.
So i finnaly got Visual studio.net 2003 and it's great i cannot believe how stupid i was to be sticking with visual studio instead of this. There's so many new things i can do with it, includinga form based application.
But here's the problem: I want to have some sort of a connection between different forms, have one form start another but when i try to run another form and launch it from a form by calling Application::Run(new newForm); i get the following message: "starting a second message que on a thread is illegal".
i can start a new form without getting this message, or any other error by calling either Application::Exit or Form::dispose, these both kill the old form's message que instanly and allow me to run a new form. the problem here is that the new form runs and closes imediately.
I really need my program to start new forms from another, lets say when a button is pressed so any ideas guys?
i have some of my own but i dunno how to implement them:
-having the form return a value to the winmain function and let the form creation be handled there, unfortunately i dunno how to have a form return a value
and writing a return 1 in the button's code won't help as the button is declared as a void function. besided since the form is a deiiferent application from the winmain the mesage won't know where to go.
-making an invisible window and letting that run and receive messages from forms an handle the creation. i think that SendMessage or similar funtions would work but the problem here is that since the form is an external app i dunno how to get the invisible's window handle
-starting a new thread whenever a new form is to be created, this might work ut it's too complicated and due to the architecture of my app i ould rather not use it.
-calling Form::StartDialog(new newForm); won't do the trick for me although it's recomended by the error message.
One other thing, whatever method you (hopefully) propose i would like it to include some sort of external function or callback that handles the form creation as in version 2 of the app i plan to have it receive it's messages through directplay rathr than them being sent by a form running on that putter (have forms creation messages sent by a remote putter and have a sort of clien-server app).
A method that just links forms together would also be fine, actually anything would be fine.
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
hi all
i want to know the exact and clear distinction between VS 2005 & VS.NET 2005??
1)since v can develop pure VS applications(i.e MFC & win32 which are unmanaged) in VS.NET 2005 ,what is the need for VS 2005???
2)can the applications developed in VS 2005 run in VS.NET 2005 ?
-- modified at 5:07 Thursday 29th December, 2005
|
|
|
|
|
I'm make a bitmap transparency use StretchDIBits() function. I must use ROP4 in StretchDIBits() function following sequence: SRCINVERT -> SRCAND -> SRCINVERT.
Can you help me a way to do this.
|
|
|
|
|
I am confused what part are u seeking help. Do u need complete executable code or is some arguments of StretchDIBits has befuddled you.
Best Regards,
|
|
|
|
|
|
if you are working on windows XP then you need to load the manifest file.
-Prakash
|
|
|
|