@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16



Comments:

<0> you probably want to close the while loop at line 38
<1> As I predicted.
<2> Either that or the loops not reading past the first line
<2> i dont think its reading past the first line, first line is f 3.4
<0> read what i just said.
<3> you print after EVERY line
<3> either countm or counft WILL BE 0 the 1st time through
<1> s/Cumlitive/Cumulative/ by the way.
<2> oh ok hang on
<3> and you'll onely ever read one line anyhow, you return from inside the loop
<1> vawjrwrk: or both, if the candidate is neuter.
<2> Number of Male Students: 14
<2> Cumlitive male GPA: 46.67
<2> Number of Female students: 14
<2> Cumlitive female GPA: 46.99
<2> Press any key to continue



<0> that's not going to guarantee to remove the div by zero exception though, so you should check anyways, before dividing
<3> yup
<4> doesn't anybody know about flex & bison ?
<1> gribouille: did you investigate flex' documentation?
<5> gribouille, did some -- but never got it working proplerly with C++ (g++), so I gave up
<3> _m_ well, *** is disproportionally important to students
<2> countm++ <--- should increase by 1
<1> e.g. what does: info flex diagnostics say?
<3> jj9 yes
<2> so where is the division by 0, is it because it is outside the loop?
<3> jj9 origi8nally you were using it INSIDE the loop
<3> and at least one of them would be 0 the first time
<0> jj9, if your file contains 0 females (or males) you will still have div by zero exception
<2> ok
<2> im confused lol
<0> what's the confusion?
<2> On correction.
<0> malefinalgpa = maleoriggpa / countm;
<2> Right
<0> if countm is 0 (i.e the file contained no males) then the division will produce a div by zero error
<4> _m_, I clearly didn't read all the documentation available
<2> YUY: well the file has 14 males
<3> THIS file
<0> jj9, so? you can't use it with different files?
<2> I'm not worried about other files
<2> Its real specific.
<6> irregardless - do it 'right'
<2> oh maron.
<2> still my division is fuxed up
<2> malefinalgpa = maleoriggpa / countm;
<2> femalefinalgpa = femaleoriggpa /countf;
<3> which one is it bitching about?
<6> is that integral division? if so, is that what you wanted?
<3> and no, it's double / int
<2> It doesnt bitch about anything, it just doesnt divide it
<6> ah, found the cod
<6> e
<3> how do you know it doesn't divide?
<2> Number of Male Students: 14
<2> Cumlitive male GPA: 46.67
<2> Number of Female students: 14
<2> Cumlitive female GPA: 46.99
<2> Press any key to continue
<3> you're outputting ORIG, not FINAL
<2> lol
<2> woopsie
<2> sorry vaw
<2> my stupidity must overcome you
<7> lk,.n
<1> 19:50 <@_m_> s/Cumlitive/Cumulative/ by the way.
<2> if i wanted to set the percision to 2 decimal places, can i do that through the variable
<2> at teh end i mean
<1> calc places
<8> places = (#include <iomanip> #include <iostream>) std::cout << std::fixed << std::setprecision(numPlaces) << myFloatOrDouble;
<2> cout.setf(ios::fixed | ios::showpoint);
<2> cout.precision(2);
<2> Where is the variable i ncluded in that
<3> huh ?



<1> scroll 5 lines up
<2> static_cast<double>
<2> can i use that
<3> jj9 what are you trying to do?
<1> you can, but it has no use.
<1> you could scroll 10 lines up, though
<2> ok i got it
<2> I just added
<2> cout.setf(ios::fixed | ios::showpoint);
<2> cout.precision(2);
<2> before both statements
<3> they're sticky
<3> you only need them once
<3> programming by experiment, recipe for disaster
<9> pfft
<9> that's how i do everything
<2> I like to do it that way
<1> peterhu: we thought so
<2> mIRC scripting was so much either
<2> So was the unix cl*** i took
<2> either = easier
<2> Are you guys in the U.S.?
<5> U.S. army?
<9> the cool ones are, yes
<2> Do you know off hand any decent colleges for computer studies, and if so what would be the better areas to focus on to make more $ in teh work place ie. networking securities, programming etc.?
<6> what do you -want- to do?
<6> you'll be much happier in life if you chase down a career that you think you'll enjoy
<2> Well... I dont really want to program... I really would like to get into what would make myself better off financially.
<2> I hear networking and security is really where the demand is rightn ow
<9> best computer science universities in order of pwn: virginia tech, st. petersburg, mit, berkley, waterloo, uiuc, ..., where jb went
<2> peterhu: you ever here if NJIT?
<2> hear too
<9> can't say that i have, though there are a lot of schools i haven't heard of
<2> I gotta look on the net and find out where exactly the best area of study would be... I mean the colleges i've looked at have major programs that differ from computer science B.s. to a computer information systems b.s. and i'm not too sure what the relative difference is... i know one encomp***es more math courses than the other tho.
<10> if i have: cl*** c1 { static int x; ... }; cl*** c2 : public c1 { ... }; c2::x = 5; c1 a; a.x would give 5, or would be undefined?
<6> it's not a.x
<6> it's c1::x
<10> oh sorry. c1 *a; a = new c2(); a.x = ?
<6> why did you write "c2::x = 5;" ?
<10> it's a.x, because i don't know c2 at run-time ( it's loaded from a dll, and only a pointer is returned. i use polymorphism)
<6> um, x is a static member of c1
<6> it's also private
<10> okay, let's make it public.
<6> then it's still c1::x
<10> so there is no way i could do that.
<6> do what?
<10> for a.x to be 5
<6> you're not explaining much
<6> there is no a.x
<10> unless it's virtual, but then it can't be static
<6> member variables can't be virtual
<11> ppls
<6> can you explain what you're trying to achieve here MrMuscolo ?
<11> can i get from sthe site the code for different programs?
<10> cl*** c1 { public static int x(); ...}; cl*** c2 : public c1 { ... }; c2::x() { return 5;}; c1 *a; a= new c2(); a.x = ?
<10> yeah okay.
<6> now x is a static function?
<10> so i have some plugin-cl***es within a dll. i'm using ABS based polymorphism
<6> what is ABS based polymorphism ?
<10> Abstract Base Cl*** .. ABC sorry
<6> you're trying to make this function x() polymorphic?
<10> i load the dll, and i should be able to ask the plugin what type it is, can i use it for a specific purpose, or not
<12> hey everyone
<6> making the function static is not the road to polymorphism
<10> i know
<10> virtual functions are
<10> but i have to know if a plugin is a specific type before creating it
<10> the plugin is a cl***
<6> how is it any type, before creating it?
<12> hows everyone doing?
<6> how are you creating this object?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

yannlord
why is document.forms[0].radios.length undefined
#windows
#chatzone
psychosis-marijuana
#linux
l'antida
#linux
#mirc
buna de pula



Home  |  disclaimer  |  contact  |  submit quotes