~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

<whatever makes someone happy>

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Scaryy.... ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I appreciate the increase in font size, its just that the background color is too loud. Something sober would be more like it. (like the gray background).

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

When you perform any kind of transformations on the scene or on any object, its transformation matrix (the way with which it is displayed) is modified. When any transformations are performed, they are performed on the current matrix which is then modified depending on the operation to be performed.

Since for that particular code snippet, a clean matrix was required, it was necessary to reset the transformation to identity matrix. Hope it made sense, haven't been in touch with graphics for a long time.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

OpenGL is a graphics API, just like DirectX with the good thing being supported on all platforms. Not to mention it has a lot of bindings (like Java and OpenGL binding called JOGL). But if you are planning to go into the gaming industry, DirectX is the one you should be looking at considering that all the games are aimed at Windows platform. Search up on OpenGL in Google and you would get to read a lot of interesting articles.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I ain't talking about pasting the code from an IDE but the manual coloring done by beginner posters to add syntax highlighting.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Oh so nice of you, but many people think otherwise. :-)

jbennet commented: i think you are a nice guy +14
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

LOL, Ancient dragon you do realise if you highlight the whole code then press the A button with a cross on it( in the top left hand corner of the editor) it gets rid of that for you?

No it doesn't. If manual coloring is used, the hex codes stay no matter what you do, thats because language syntax highlighters weren't supposed to contain color tags.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Why do you need a class when you can do something like:

for(int i = 1; i <= Integer.MAX_VALUE; ++i)
{
    System.out.println(i);
}

Is this what you need or something else?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Post an example of the thing you are trying to achieve. Is it by any chance: <a href="../something.html">Here</a> and you need to extract the 'something.html' ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess everyone here is nice unless proven otherwise. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Try copying the query before hitting the search button and you would be a happy man... ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Mel, try out this format "M jS Y" which is what we had previously -- you shouldn't have any trouble adjusting to it once you set the proper time zone.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I haven't seen a lot of occurrences of colors being misused here and neither do I make extensive use of it. Putting your point across without using fancy coloring techniques is something one must know so I wouldn't mind if you disabled the colors though they don't bother me a bit.

PS: Ever wonder how the newsgroup folks put across their point without colors -- yes thats what it should be like.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

'None of them' doesn't mean no code tags, it just means some other type of code tags. I guess my reply wasn't the kind you were looking for.

> this isn't your poll.
Of course it isn't, its yours.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

The poll is biased, there is no option for 'none of them'. Really speaking, with the kind of font size currently used, it doesn't make a difference which of the options is selected -- all the three look the same.

The coloring scheme which I personally like the most is the one used by Devshed. Reading code could never have been simpler, not to mention linking to Javadocs in case of Java code.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

That wasn't so obvious... ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

A strong will to exceed yourself is all you need to be better at anything. Math courses geared towards programming for 2-3 weeks should get you all set towards programming.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But of course your mother must have made a logical decision after doing a lot of research.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> its cheaper to keep them alive,

I really wonder how this thing is true.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Really? I see it everywhere.

Disclaimer: Nothing I say can be considered credible information ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You should probably post a working code here along with the explanation of what it does. Making us guess what your code does is not a good idea. Post the complete code (along with main) along with the sample input data supplied and the expected output.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Use the options suggested in posts 2 and 3.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess no:

int MessageBox(
HWND hWnd,
LPCTSTR lpText,
LPCTSTR lpCaption,
UINT uType
);

lpText [in] Pointer to a null-terminated string that contains the message to be displayed.

lpCaption [in] Pointer to a null-terminated string that contains the dialog box title. If this parameter is NULL, the default title Error is used.

<edit>Beaten..</edit>

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Rewriting the C++ forum sticky first would be more like it. We are really looking forward to it... ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Why atoi is bad... strtol is what you should be looking for.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Atleast give it a try. No pains, no gains.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> The bad thing is im doing my best and doing overtimes. but it seems my boss isnt satisfied.

Whatever level you reach, getting better never stops.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

5'5"

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

There is no 'null string' as such, only null pointers. A string instance can't be null because it has just been instantiated. And x != string::npos doesn't make sense either, one is a string object while the other is most probably an unsigned integer.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

...yes and even I agree with everyone who posted in this thread. Disagreeing would only make this one post worth thread 100 pages long.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> i just press enter but it does not alert me that i placed nothing.

Maybe the newline is getting the best of you...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess someone here is a big fan of Naure... ;-)

Aia commented: It's about time that you get another from me :) +1
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Given char temp[100]; I guess you must be talking of how to determine is a string is empty. How about something like if(strlen(temp) == 0) { } .

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

See Narue, I told ya. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But how is it that the same thing happens for Joey? Surely we both wouldn't have the same setting? And talking of settings, any idea what is causing this?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Dani, any reasons why the spellchecker is bound to the rounded corners?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

..or just take the numbers in a single go in a string variable and do something like: string result = string(10, '0').substr(10 - number.size()) + number;

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yet another way:

string city = "Memphis";
string state = "Tennessee";
string result = city + string(16, ' ').substr(city.size()) + state;
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Try this suggestion:

I just had a problem with a user trying to run Borland C++ 5.02 on a Windows XP Pro computer in a non-privileged account. She would get a message box "Make failed", and in the Message window:

Could not load: tlink.exe

One of the reasons why this can happen is if BC5 is installed under "C:\Program Files". This can cause all sorts of problems. Instead just install it under C:\BC5.

However, there is a second problem: The IDE tries to create a file named C:\$$PIP$$.$$$ to communicate with tlink.exe, but non-privileged users are not allowed to create files in C:\! Here's the solution:

1. Create C:\$$PIP$$.$$$ from an Administrator account
2. Open Properties|Security, select the Users group and click the [Advanced] button.
3. Select the Users group again, click the [Edit] button
4. Click "Full Control" in the "Allow" column and "Delete" in the "Deny" column.
5. Keep clicking [OK] and [Yes] to close all dialogs.

This ensures that all users can write to C:\$$PIP$$.$$$ and at the same time keeps them from deleting it, because the permission to write to the file would be lost if the file were deleted.


BTW, you'll probably want to create a directory such as C:\PDEV (like "Program Development") for hosting your projects, because BC5 may have problems with path and file names that don't follow the old 8+3 convention. You can get BC5 to open in that directory by default by editing C:\WINDOWS\BCW5.INI.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

When you use the array name in value context, the compiler actually converts it to a pointer to the first element. This is only the array name though, the array itself is never a pointer.

Isn't this self explanatory?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Read this, this and this.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

<sarcasm>Agreed</sarcasm> ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yay !! Good one.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Heh good feature. Not that I would want to track down anyone, or cloak and dagger with people that spark my interest, nor follow smart people whose posts I don't want to miss, but still, good one. ;-)

Sorry ... Sheyna is my test account. I didn't realize I was signed in when I posted.

^_o

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Not really, but knowing it really helps.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Yea, right. Pull the plug on your home electricity and see how long you'll last without a computer.

Would you mind if we didn't have an option? I guess no, so as such its not a problem.

And if you want the return to the "good-old-days" you have to also take the bad with the good, more disease, earlier death, plague, unsanitary conditions...

Come on Mel, look at the world around you and you would find excellent substitutes of the above mentioned things.

> child labor

"Slavery is not dead, its just that we don't recognize it."

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I have a simple 128 MB graphic card (FX 5200 Nvidia) so I guess I can't even dream of playing that game. But hope you get to play that game Peter. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Great now my spellchecker has gone because of those rounded corners. : - <

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Now expecting new Quake Wars - Enemy Teritory
You must be having a pretty good graphic card from the looks of it.. ;-)