 |
 |
Because I found code written this way somehow more readable, e.g.
I find:
for (i=0; i<N; ++i)
for (j=0; j<N; ++j)
vr[i] = r[i][j] * v[j];
more readable than
for (row=0; row<ITEMS; ++row)
for (column=0; column<ITEMS; ++column)
rotated_vector[row] = rotation_matrix[row][column] * vector[column];
(I know that's just personal taste).
Veni, vidi, vici.
|
|
|
|
 |
Happy birthday.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
 |
Thank you so much, youngster!
-- Carlo The Old Man
Veni, vidi, vici.
|
|
|
|
 |
Above Example is ok,. but What in this case..
I am declaring a varible for Student Id in college/School like String StringStudentId="";
but not as String id=""; Or String ID="";
I am using this type of variable because of i need to know the variable for what i declared this. so, is there any disadvantages in this type of declaration??? if it has the will you please explain me??? thank you.
|
|
|
|
 |
It is OK. Just a bit verbose, in my opinion.
THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?!
-- C++ FQA Lite
|
|
|
|
 |
Okk
thank you.
have a nice day.
|
|
|
|
 |
Because I need it outside the loop, e.g.:
for (i=0; i<n; ++i)
{
if ( a[i] == aimed_value)
break;
}
if (i == n)
{
}
Veni, vidi, vici.
|
|
|
|
 |
Former signs.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Just heard about Sebastian [^].
|
|
|
|
 |
--Rajesh R. Subramanian (Klingon Developer Honoris Causa).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Here's a list of memorable quotes from Code Project members, indisputably choosen by me .
Please feel free to signal new quotes.
Year 2009 - Current Quarter
- Actually, I have ten monkeys (me not included) to assist me search MSDN. Because, I only have paper-printed version. They're like FASSTTT... You know? [^]
--Rajesh R Subramanian
- Yes there is a way. Now can you explain what your sentence means? [^]
--led mike
- Nobody, and I mean nobody, is going to do urgent homework requests for you. That defeats the purpose of the homework you should be doing on your own so that you can learn.
It's unfortunate and inconvenient, I know, but education is all about learning. But that's just one of those annoying aspects of life. [^]
--73Zeppelin
- I'm not against managed code, but I don't like the idea of mixing up managed code with good old native C++. It's like eating garlic with ice cream. [^]
--Rajesh R Subramanian
p_1960 wrote: Hi,
May i know the difference b/w ondraw() and onpaint().... You mean other than what the documentation provides? [^]
--David Crow
- Somehow, the idea of mixing separate binaries, some with and some without debug information doesn't look strikingly impressive. [^]
--Rajesh R Subramanian
- You asked three times in the C# forum, did you want C# or VB code ? Why do you even want to do this ? [^]
--Christian Graus
- Is this supposed to do something? [^]
--David Crow
- It means you've called GetQuotQuntityItem with no parameters, and there isn't a version of this method that has no parameters. You need to specify the parameters it's expecting because Object Orientation isn't psychic coding. [^]
--Pete O'Hanlon
- You think? Tea would obviously be a C++ implementation, none of this mamby-pamby-hold-my-hand-cause-I'm-a-little-girl languages [^]
--Jim Crafton
- Looks like an assignment and no-one is interested in doing your assignments.Not even yourself. [^]
--_AnShUmAn_
- What a relief to know there isn't a problem with LockWorkStation(). THANKS!
[^]
--led mike
- *SLAP*
YOU'RE FIRED! [^]
--_The_Boss_
- Start off by taking your medication, put on your glasses and then read what you have written [^]
--williamnw
- I have seen some companies label such products "Community Version", aka discarded dogfood. [^]
--Hans Dietrich
Re: Top Ten Web Brands Facebook: 6.2x10^9 minutes.
That's a lot of time spent pretending to have friends.
--Ravel H. Joyce
- Probably, but you'll need to post your code snippets here (i.e., only relevant code), rather than require someone to download your whole project from some other site. Some of us have soap operas to watch and Bonbons to eat so time is important. [^]
--David Crow
ghost90Tom wrote: New Person thanks!!
My English not well, please take care of.
thanks you!!!!!! I'll take care of that and you're free to go now. THANKS. [^]
--Rajesh R Subramanian
- It causes me physical harm to agree with you, but, I agree. [^]
--Christian Graus
- If only somebody somewhere would invent a technology that allowed you to search[^] over billions of pages of indexed content based on keywords. Why, if they could do that, they'd be rich - they might actually be worth 3 or 4 dollars.
If only... Sigh. [^]
--Pete O'Hanlon
- This is one rare case where I'm going to encourage cross-posting. You may kindly cross-post your code at the coding horror forum too. [^]
--Rajesh R Subramanian
- I turn off these warnings. Microsoft is not in a position to declare standard C++ functions deprecated. [^]
--Stephen Hewitt
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Sunday, June 21, 2009 6:16 AM
|
|
|
|
 |
Hmmm, I must be slacking! Must refresh my pithy glands.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
|
 |
CPallini wrote: I might use it, provided I remove 'athlete'
You might want to replace athlete with beelzebub and use it as your biography. As a matter of fact, "beelzebub" alone is sufficient enough to describe you.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
 |
Done [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
|
 |
quite a good collection indeed
|
|
|
|
 |
Thank you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Testing my new sig (and showing it to you).
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
 |
Rajesh R Subramanian wrote: What happened to your hair?!
It has gone, a pretty long time ago (you know, testosterone... ). Im my previous pictures I used a toupé .
Rajesh R Subramanian wrote: I'd suspect that you've shaved it off so that it won't be a hindrance while you ride your bike at high speeds.
Well, long hair (even when few remaining...) and glasses are really a hindrance.
Rajesh R Subramanian wrote: Or was it like this always? I must say that this new look is more terrifying however. You look like that "Jason Stantham" or whatever his name is, from the Transporter movie.
Never seen the movie. I'm striving to look like Beelzebub...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Well, this is how the transporter dude looks like[^]. There's some resemblance.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
 |
May i join your MSN?
[email protected]
i am a chinese;
i program is tow year, program to c#;
but i change to program vc++ , MFC;
|
|
|
|
|
 |
A warm welcome to Nemanja [^] and VuNic [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Wednesday, March 4, 2009 4:48 AM
|
|
|
|
|
 |
THHB proudly announces its 17th member, Stuart Dootson [^]!
A warm welcome!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
I think we have new THHB members [^]
Regards,
Sandip.
|
|
|
|
 |
Here's a list of memorable quotes from Code Project members, indisputably choosen by me .
Please feel free to signal new quotes.
Year 2009 - First Quarter
- I certainly have no clue about your problem... And as I am the bestest ever expert at C++, noone else will.
-- Iain Clarke aka Iain, The Masterful Visionary Potentate
- What is this? Could it be a brief search resulting in 3.6 million results, with examples and documentation? It even looks like the first 3 links might be *exactly* what you are looking for.
-- EliottA
- I think collaboration of any kind is an excellent way to bring the level of productivity and inventiveness down to the level of the worst member of the collaborators.
--John C
- Woo hoo - a spanky danky new forum to play with. [^]
--Pete O'Hanlon
- Man, some of the questions in the C# forum are pure crap this morning. Notice to the retards:
0) When you can't figure out a way to create a rolling list with a limited number of items, it's time to look for a different occupation. They're always looking for someone to work at McDonald's.
1) If you're new to programming in general, you shouldn't be converting C programs to C#.
2) If you're too lazy to perform any kind of search (either here on CP or on Google) before asking a question, you should consider applying for a job as a animal test subject.
3) No amount of tenacity and effort is going to make you a programmer. The sooner you come to terms with that, the better off the rest of us will be. [^]
--John Simmons / outlaw programmer
- You're in a completely dark room facing NorthWest. [^]
--John Simmons / outlaw programmer
RaviBusie wrote:
I seriously need help That's pretty damned obvious... [^]
--John Simmons / outlaw programmer
- How to centre a datarowview column heather? [^]
--ArielR
- Just be thankful your cab wasn't being remote-operated from a cabbie outsourcing company. [^]
--Hans Dietrich
anupmadathil wrote:
its verry urgent Funny, it's not urgent to me at all. [^]
--Christian Graus
- Note that I (a) read the forum guidelines about using the pre tag, (b) formatted your code so it is readable, and (c) have located my Caps Lock key.
I did however use multiple exclamation marks so it still looks like I was mad while typing. [^]
--Iain Clarke
- This article contains no content. [^]
--Anna-Jayne Metcalfe
- CString::Tokenize() ?
For urgent purposes, you can try TokenizeUrgnz(). [^]
--Rajesh R Subramanian
Sumanta Banerjee wrote:
Can not create Inprocess Reco Engine In the other news, KFC recommends pepsi. [^]
--Rajesh R Subramanian
- your experience speaks volumes. Why do you want to add another chapter? [^]
--Yusuf
- Read:
http://www.codeproject.com/KB/string/cppstringguide1.aspx[^]
You will be a better person afterwards, and will no longer kick puppies for fun. [^]
--Iain Clarke
- Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. [^]
--Luc Pattyn
- As for "...you can describe the flower, birds, grass, insects, trees, houses...", it sounds like Poetry SDK to me, and we've had that for 1000's of years. [^]
--Iain Clarke
- first of all it is very ambitious to mention Windows, real-time and 5 or 20 msec all in one sentence. [^]
--Luc Pattyn
VuNic wrote:
How will it allow you to create buffers without knowing the size? Some versions of the GNU C compilers allocate memory equivalent to the size of a medium grapefruit and hope for the best when the size requirement isn't exactly known. [^]
--Rajesh R Subramanian
- So - you might be interested to know that C/C++ uses zero-based arrays, not one-based arrays? [^]
--Stuart Dootson
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Oh my god!
I'd like to thank the academy, my Mom, my breakfast cereal...
I.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
 |
Thread Hijacking Happy Brigade, featuring:
<ul>
<li>Rajesh R Subramanian</li>
<li>Hamid</li>
<li>Michael Shubert</li>
<li>SandipG</li>
<li>Iain Clarke</li>
<li>Naveen</li>
<li>David Crow</li>
<li>Delek Dave</li>
<li>Ravel H. Joyce</li>
<li>Garth J Lancaster</li>
<li>Randor</li>
<li>Mark Salsbery</li>
<li>Code-o-mat</li>
<li>toxcct</li>
<li>Luc Pattyn</li>
<li>Stuart Dootson</li>
<li>led mike</li>
<li>Nemanja Trifunovic</li>
<li>* VuNic *</li>
<li>* cpallini *</li>
</ul>
Well, thanks to Mr.Alzheimer, for sure I missed someone. Anyway I'm happy to amend my error on kind report.
(*) The stars highlight most active Hijackers at the time.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Wednesday, March 25, 2009 9:29 AM
|
|
|
|
 |
Oh Im in the first line.
;
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
 |
Yes, you are in the front line: watch out for enemies!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Yes sir but please wait I could to make a THHB on enemy front!
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
 |
!!!! Hamid the THHB's HERO !!!!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
CPallini wrote:
!!!! Hamid the THHB's HERO !!!!
offcourse he is.... but seems i miss the train
|
|
|
|
 |
You missed more [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
THHB proudly announces its latest member, toxcct!
Welcome!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
THHB proudly announces its latest member, Code-o-mat [^]!
Welcome!
Updated list ^
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Gee, thanks, it's really great to be here, i feel honored and touched. But i didn't start this[^], i just humbly continued. :P
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
 |
Code-o-mat wrote: But i didn't start this[^], i just humbly continued.
I know. But the all the other hijackers are already well-seasoned members of the Brigade!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
We have learned frm the best!
Best Wishes,
-David Delaune
|
|
|
|
 |
Hey, MVP award is waiting for you. I wonder why you and Jijo raj aren't in the list. I'm sure the next year you both will be.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
CPallini wrote:
Hey, MVP award is waiting for you.
I have only recently become more active in the C++ community. Recognition comes to those who contribute exceedingly over a long period. There are many others who have contributed much more than me and who deserve to be awarded. For example, I thought Stuart Dootson[^] would become MVP for sure. You are correct about Jijo raj[^] in that he is very talented and helpful but perhaps it was our low post-count and lack of articles which worked against us. We will have much improving to do this year.
Best of wishes,
-David Delaune
|
|
|
|
 |
I will do my best hijacking threads to become a well-seasoned member too. :P
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
 |
We proudly announce Mark Salsbery joined the Brigade [^] as first 2009 member.
Welcome, Mark!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
 |
Why you dont give any award to us in new year!?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|