I have distance from a point ranging from 1 to 18000 and within this distance i am searching for a target area

bind(

Yeah man, I’m no Microsoft fan, but that’s one thing they have down pretty well. (-8

Combatjuan, Of course, that was a version or two ago (but not vc6)

Out of curiousity (and at the risk of being off-topic), what changes are you making to pingus?

trying to fix sprite wobbling

tnabtaf!
…bleh, 2 google hits, I better expand that acronym. “That’s not a bug, that’s a feature!”
of course I have no idea what it is or why it would be a feature, I’m just being a twit, so I’ll shut up now

You could’ve shut up then.

what lib do I need to include to use the sleep(n) function?
sorry for the n00bish question
I’m on Linux, btw

depends on your compiler I believe

G++
GCC

might be in ctime

I tried it

or might not

cstdlib
it’s a C function

nope

and it’s also platform dependent. I don’t think it exists in the standard library

nevermind…I think I got it
thanks

Yeah, C function, in unistd.h

aha
unistd.h
yep
for linux, that is
windows.h and “Sleep” for windows

hi

Hi.

!give pheorehs hi

having a progmaming problem. I’m playing with OpenSceneGraph, and created some classes, but I am getting an error about: “redefinition of class MyCamera”. I created a new class, MyCamera.h/.cpp. and include MyCamera.h into Window.h, which is supposed to create a window class. That window class needs the MyCamera object, so I include the file, and it gives me that error. any ideas ?

Hi and welcome to ##c++. Visit http://jcatki.no-ip.org/fncpp/ for good resources and channel rules. http://jcatki.no-ip.org/fncpp/HowToGetBetterHelp isn’t just there to annoy you, it actually makes it easier for all of us.

it is necessary, when creating a class, defining the methods, value of return and parameters, before pricking its code?

what?

my english is limited?
when i create a class

You probably need “include guards”. Googling that will probably help you.

k, attempting…

!give pheorehs winapi

You should ask your Windows programming questions in #winapi, which is linked to EFnet’s #winapi. You may also want to connect to irc.efnet.org #winprog for further assistance. If you can’t connect to irc.efnet.org due to ident problems, try irc.pte.hu instead.

doh, stupid ifdef statement, duh…

(for future reference)

You gotta learn what include guards are, but in MSVS you can just
#pragma once
At the top of your file

pragma is gay

i will have define the format of methods,before write the code into it?

Why, does he like pragmas of other sex?
*same
lol
The format?
Very simplified:

yes,type of return and parameters

The code == the declaration

Your program will not link if it doesn’t know how to implement your methods.

class { } whatever == definition
You can mix both, but, basically, it’s that

0 am. forget stupid things like

1 am
lol

6 here but I’m still at work. My wife is going to beat

oks

Speaking of which… I better get home. Have a good night/morning/whatever.

#pragma once is nonstandard.

Yeah, that’s why I say “but in MSVS”

use actual header guards, not the #pragma crap

i did read a example where put first the format and later the methods with code…

Normally my code doesn’t need to be portable

regardless, the topic of the channel is standard c++.

thanks for help, you adequately substituted that misfiring neuron of mine, thanks much

even if your code isn’t meant to be portable, adopt good coding standards.

But I like my pragma

Yes. You can “define” your methods and in another place “write the code”. In some instances this is necessary. But somewhere methods must be written.
Naughty zstars. No cookies for non-standard coders.

but pragma doesn’t like you. ADOPT GOOD STANDARDS DAMMIT
/nazi

oh no I want a cookie!
#pragma give cookie

adopt good standards and you get a cookie

lol

use of pragma forbids you a cookie

So be non-standard all you’d like, but realize that if you give out such advice in this channel you may be teaching bad habits.

total,que pongo el c?digo sin definir m?todos y ya esta
a tom? por culo

You can’t put code without defining methods
But you can both define and declare in the same place

hey, I know that word

ah, i understand :|

struct s { void func() { cout “hello” endl; } }; int main(void) { s mys; mys.func(); }

hello

func() is defined and declared inline
struct s { void func(); }; void s

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.