comp115 Q (1 Viewer)

Orange Juice

so worthless i am
Joined
Nov 23, 2002
Messages
3,886
Location
Room 112
Gender
Male
HSC
2007
can anyone explain the stuff he said in the lecture before todays?
some shit about intergers dividing integers is 1 or some shit?
 

...

^___^
Joined
May 21, 2003
Messages
7,723
Location
somewhere inside E6A
Gender
Male
HSC
1998
Originally posted by Rahul
may i also add a thank you to doing c++ from the start of yr 11 in sdd :D :D
fuck u cunts!

i'm having so much trouble learning this shit all by myself
 

Rahul

Dead Member
Joined
Dec 14, 2002
Messages
3,647
Location
shadowy shadows
Originally posted by Orange Juice
can anyone explain the stuff he said in the lecture before todays?
some shit about intergers dividing integers is 1 or some shit?
i dun pay attention to him during lects much now....today i was at the point of leaving early...but i didnt till about 2.50 [couldnt take it anymore! :p]

do you mean the 11%3=2 stuff?

Originally posted by ...
fuck u cunts!

i'm having so much trouble learning this shit all by myself
lol, nah c++ is ok. the best way to learn it is to watch someone else program, then fiddle around with your own program, then watch them program some more and then fiddle around on your own. i think you can learn from doing just that much.
 

Orange Juice

so worthless i am
Joined
Nov 23, 2002
Messages
3,886
Location
Room 112
Gender
Male
HSC
2007
Originally posted by Rahul
i dun pay attention to him during lects much now....today i was at the point of leaving early...but i didnt till about 2.50 [couldnt take it anymore! :p]

do you mean the 11%3=2 stuff?

lol, nah c++ is ok. the best way to learn it is to watch someone else program, then fiddle around with your own program, then watch them program some more and then fiddle around on your own. i think you can learn from doing just that much.
nah not the % (remainder stuff)
like the 3/2=1 stuff...
 

...

^___^
Joined
May 21, 2003
Messages
7,723
Location
somewhere inside E6A
Gender
Male
HSC
1998
3/2 technically = 1.5

but i think the comp dun read decimal??

so therefore its 1??

i dunno..its a guess
 

Rahul

Dead Member
Joined
Dec 14, 2002
Messages
3,647
Location
shadowy shadows
yeh try the following:
Code:
int main()
{     int a;
      a = 3/2;
      cout << a;
      system("PAUSE");
      return 0;
}
the program wont read the decimal. however if i use a float instead of a int, it still doesnt output...:confused:
 

Orange Juice

so worthless i am
Joined
Nov 23, 2002
Messages
3,886
Location
Room 112
Gender
Male
HSC
2007
ok so IF the cpu dont read decimals why isnt 3/2= to 2 (like round up to the even number like stat170) :p
 

Rahul

Dead Member
Joined
Dec 14, 2002
Messages
3,647
Location
shadowy shadows
Originally posted by Orange Juice
ok so IF the cpu dont read decimals why isnt 3/2= to 2 (like round up to the even number like stat170) :p
it just doesnt take in anything after the decimal point.
 

Orange Juice

so worthless i am
Joined
Nov 23, 2002
Messages
3,886
Location
Room 112
Gender
Male
HSC
2007
i like rahul was about to leave early too, but my friend was like... DONT its slack... what if you were the lecturer and everyone left early...
 

Orange Juice

so worthless i am
Joined
Nov 23, 2002
Messages
3,886
Location
Room 112
Gender
Male
HSC
2007
Originally posted by jezzmo
computers aren't people :) (they are our bitch, as our evening lecturer well informed us). an integer only allocates for whole numbers. the cpu can read decimals but you have to allocate the variable as a long or double long etc... floating point decimal...

..if you want the computer to round up/down the number... program it to, you lazy git :p
i would IF i could :p
i have no idea how to use this program... for the assign all ive done is the int and the cin and cout, for entering the dimension...
ive gotta check how to do IF statements and stuffs
 

jlh

sooner or later...
Joined
Mar 15, 2003
Messages
1,755
Location
Sydney
Gender
Male
HSC
2002
i did all the prac work in 15 mins.. i emailed it to my ics email but the damn servers blocked it... so i had to redo the whole thing in the prac and left as soon as i could..

have you guys read some of the textbook? its really not that hard, seriously.. and i hate programming!!

the date is wrong on the basicopp.cpp but you should still upload it... i did during the prac after trying to figure out which was the most efficient way to do basicopp.cpp.. our tutor smelt like alcohol!! :p
 

pb

Inside The Hollow
Joined
Jan 20, 2004
Messages
775
Location
Westie!
Gender
Female
HSC
2003
Originally posted by ...
fuck u cunts!

i'm having so much trouble learning this shit all by myself
me too!!!! I DON'T GET IT!!! :chainsaw:
i woulda done SDD, i wanted to... but it was on the same line as Business Studies... so i shouldn't blame myself, it's the school's fault i don't get C++... lmao.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top