Search found 619 matches

by omar shaaban
Tue Dec 20, 2011 2:59 pm
Forum: Beginners Help
Topic: My computer cant do math, can your's do ?
Replies: 5
Views: 534

My computer cant do math, can your's do ?

Code: Select all

int main()
{
    long double t=5.0f/30.0f;
long double us=1.0f/30.0f;
 
 
    cout <<int(((t)/us))<< endl;
    return 0;
}
in the code above the answer should be 5 but instead its 4 :shock:
by omar shaaban
Sun Nov 06, 2011 1:07 am
Forum: Game Programming
Topic: using the Quad core
Replies: 20
Views: 4697

Re: using the Quad core

@mongoose7: u will not talk again in this forum, or u will get insulted...... really insulted NOOB :)
by omar shaaban
Sat Nov 05, 2011 1:02 pm
Forum: Game Programming
Topic: using the Quad core
Replies: 20
Views: 4697

Re: using the Quad core

@mongoose7:actually i was asking how to do mutli-threading <admin note: rest got zensored for violating etiquette>
@3DModelerMan: i will look into it thanks :)
by omar shaaban
Fri Nov 04, 2011 11:14 am
Forum: Game Programming
Topic: using the Quad core
Replies: 20
Views: 4697

using the Quad core

Simply , how to create my application as to use the 4 cores?
not just in irrlicht but in general, how to tell my program to use the 4 cores to speed up the process instead of one ?
by omar shaaban
Wed Nov 02, 2011 9:56 am
Forum: Beginners Help
Topic: c++ or irrlicht bug!?
Replies: 7
Views: 428

Re: c++ or irrlicht bug!?

yup, great thanks to cute alien and hybird! :)
by omar shaaban
Wed Nov 02, 2011 9:25 am
Forum: Beginners Help
Topic: c++ or irrlicht bug!?
Replies: 7
Views: 428

Re: c++ or irrlicht bug!?

Are you sure that n is not 0 or negative? That would be one possible memory corruption thing. Otherwise, dynamic allocation should usually return 0 in case of a failure (or even throw). If you weren't using dynamic allocation, good chance would be a stack overrun. But that's also pretty unlikely in...
by omar shaaban
Wed Nov 02, 2011 9:23 am
Forum: Beginners Help
Topic: c++ or irrlicht bug!?
Replies: 7
Views: 428

Re: c++ or irrlicht bug!?

i guess the problem was that i defined pres array as particle[n] where it should be particle[n+1] because in my code i acess press[n] later on...but shouldnt it give me an array out of boundry error?
by omar shaaban
Wed Nov 02, 2011 9:16 am
Forum: Beginners Help
Topic: c++ or irrlicht bug!?
Replies: 7
Views: 428

Re: c++ or irrlicht bug!?

well i began to move the code : std::cout <<a.tcount<<"ended \n"; up the line, and still the crash happened, untill i moved it up the line :   pres=new particle[n]; where before the class i identified "pres" as particle * pres; //so it just a pointer to object particle that will ...
by omar shaaban
Tue Nov 01, 2011 8:44 pm
Forum: Beginners Help
Topic: c++ or irrlicht bug!?
Replies: 7
Views: 428

c++ or irrlicht bug!?

i dont need to post my code for this one(i wont anyway :P ) so my program runs fine but when i replace this code:   std::cout <<"ended \n"; with this code:   std::cout <<a.tcount<<"ended \n"; the program crashes!! where a.tcount is just a long double, not a method. and it crashes...
by omar shaaban
Thu Apr 07, 2011 1:10 pm
Forum: Beginners Help
Topic: unit vector
Replies: 3
Views: 363

yeah i know its not :D
by omar shaaban
Thu Apr 07, 2011 12:24 pm
Forum: Beginners Help
Topic: unit vector
Replies: 3
Views: 363

unit vector

hi, i have a problem in rotating a node(an arrow whose center is in the middle of the arrow) so i have calculated where i want the arrow to point in a unit vector like (0.5,0.5,0) which i mean i want to rotate the node 90 degree in x and y axis(even if it doesn't mean that it doesn't matter) as my p...
by omar shaaban
Tue Apr 20, 2010 11:06 pm
Forum: Beginners Help
Topic: problem in classes
Replies: 6
Views: 532

yup thanks i think static will work
by omar shaaban
Tue Apr 20, 2010 10:16 pm
Forum: Beginners Help
Topic: problem in classes
Replies: 6
Views: 532

yeah thanks for arranging the code but u changed the function!! :P
shout prints the id of all par(objects). not its own.
by omar shaaban
Tue Apr 20, 2010 9:27 pm
Forum: Beginners Help
Topic: problem in classes
Replies: 6
Views: 532

problem in classes

i have a small problem in a code like this: int main() { class obj{ public: int id; void shout(){ for(int i =0;i<50;i++){ if(par[i].id>1){cout<<"shout";} }} }; obj par[50]; for(int i =0;i<50;i++){ par[i].id=1; par[i].shout(); } cout << " hello"<< endl; return 0; } so the problem ...
by omar shaaban
Sun Apr 11, 2010 1:29 pm
Forum: Game Programming
Topic: Whats going on ?
Replies: 22
Views: 5762

I was just pointing to the fact that he is writing nonsenses. I myself try to always speak as precise as I can. If it was flaming, then I'm sorry. B@z dont care about him he maybe drunk or just a kid trying to waste time....i red the documentation of racknet it seems simple and organized i guess i ...