Its all up to your personal preference, the only time it matters is when you declare many variables in 1 line e.g int* first, second
here both variables are type int* int *first, second
here first is int* and second is primitive int Personally i use int* i
the reason being that the data type is more clear when reading the code
Craig Atwood
Posts
-
C++ Style Question -
jobs.codeproject.com [modified]goodideadave wrote:
so if someone came along with a HUGE BUTTWAD of job dollars...
erm...so?
-
jobs.codeproject.com [modified]how about we just leave it at ...it is ethically correct I think it is a perfectly good idea to have a job section to the website, this is a site for developer resources and thats just another resource, I SERIOUSLY doubt that the job section could ever overshadow the comunity, even if SOMEHOW it does, the job section cant function properly without the community As to CP reaping the finanicial benefits. 300 bucks is a longs ways off, agencies will often take a percentage of your first year's pay. As to the image of CP, having the $300 charge could even improve that image depending on who looks at it, having a price means that its only for serious job notices, I've seen some free ad sites with job sections and they have the most bogus adds somtimes anyway if it came down to a vote my vote would go towards having the job section, wven tho being from SA I dont have much use for it. P.S Most likly Mr bigdenny is a recruiter who cant afford the 300 bucks and this is his petition to get the price to drop :suss: ;P
-
Oopsie!LOL :laugh:
-
jobs.codeproject.com [modified]Ditto that was my thought on this point sigh...
-
Brace styleI didnt know that it did that with class objects thanx very usefull
-
Brace styleMORE BLASPHEMY!!! the true if is as follows
if(condition)
{
doStuff();
}
else
{
doSomethingElse();
}Your Brace style bears the identifiable stench of a Vagabond Romulan coder, May Fek'lhr forgive your dishonour.
-
Brace styleBLASPHEMY!!!!:omg: indenting the closing brace *-Shudder-* u r a Patagh
-
Brace styleas far as if() with or without a space in between i dont care but the difference between "i++" and "++i" is... i++ = returns the value of 'i' before it was incremented ++i = returns the value of 'i' after it was incremented e.g
int i = 1;
if(++i == 2)
{
thisWillWork();
}
//
//OR
//
int i = 1;
if(i++ == 2)
{
thisWontWork();
}This is what the operators do and you can use them bassed on what you need your code to do. if you use them correctly you can end up saving a few lines of code:cool: ps. as to my brace style brace on next line = more readable thats my vote
-
Brace styleThis is interesting, I myself used the latter, but in the programming course Ive done they teach using the former, although Ive gotten used to programming like that i still dont like it and prefer having the extra line breaks
-
RAR vs ZIPIm Currently using Power Archiver and im having no problems, it has a nice UI and it can unzip almost anything, the only thing i found that it cant unzip is 7zip files