| |
| |
| |
|
Page: 1 2 3
Comments:
<0> heya Reth <1> Hi Teq. <2> He looks more LoTeq to me. <1> Hi Def... no, wait.. <3> hi <3> whts the main logic behind pascal's triangle <3> how can i make it by simply using no arrays etc .. just by simple for loops and variables <1> Bah. Now I have to decide whether to reactivate windows or just reinstall it. <0> you'd rather re-install than make a phone call? :P <1> Pish, I'd use the internet to reactivate. I'd just rather not do it again in a few days when I've decided I need to reinstall anyway. <0> every time I do it, it's usually because I've changed the BIOS or similar, and my five-times are up: so I have to use the phone method <2> heh, just wait for Vista... *then* you'll know about activation pains. <4> Andersonn: you should be able to calculate it recursively at a sizable cost in run-time. <3> hmm <3> wht ? <3> can u tell me whts the logic behind this prog
<4> Andersonn: outside of writing it for you, no. <3> am just askin the logic :S <3> am using c=a+d; // a=c and d=a <3> :S <3> using tht i got the third colomn <3> i.e 1 4 6 <3> sorry .. <3> :S <3> am confused wid the logic :@ <5> WB James <1> ta <1> I need a slightly higher desk. My new case is about a 6mm too tall :P <5> haha <4> Andersonn: p(i,j) = { i=0: 1; i=j: 1; : p(i-1,j-1)+p(i-1,j) } <3> its an array :'( <3> am not allowed to use arrays .. <4> Andersonn: it? <5> That's not an array, <4> Andersonn: yeah? <5> Try reading it. <5> It shows you how to recursiveli calculate it. <3> calculating and storing the value in the same variable after calculation then ***igning new value to the same variable right ? <4> Andersonn: do you know what a recursive function is? <3> nope am new in c <4> it has nothing to do with c. <3> any process repeating itself is called recursive <3> ? <4> Andersonn: if you're thinking of a loop, that's "iteration" <4> Andersonn: recursion is what you get when a function calls itself. <4> Andersonn: traversing a directory tree, e.g. <4> Andersonn: a common example for recursive functions is calculating n factorial. <3> ahan .. i hav made tht calculating n factorial prog <4> Andersonn: without a loop? <3> nope .. wid loop <3> for (int input; input<=0; input--) <0> good grief <3> test condition is if the input is 0 <3> loop will end multiplyin .. <6> thanks teq <4> Andersonn: have a look at: int f(int n) { if(n == 0) return 1; return f(n) * f(n-1); } <3> i hav to make it just using FOR loop no other functions definitions etc <4> Andersonn: offhand i don't know how you're going to do that without recursion or arrays. it might be possible, but it's certainly not clear to me. <3> yea thts where am stuck <7> recursive way ? <3> our teacher thinks we are super logical experts <3> :S <3> else wid the help of arrays i can make it .. <4> ohadsu: "without recursion or arrays." <7> just for ? <3> yea just for <3> u can use if else also <7> for factorial ? <7> n! ? <3> not factorial <3> pascal's triangle <4> Andersonn: dunno how to help you. <3> 1 4 6 4 1 <7> haa <7> binom <3> npz .. u did ur best .. thx :) <7> newton
<3> yea binom :S <4> ohadsu: you're lost. scroll up and read. <7> yep <3> thx for help guyz .. <3> must sleep or ill miss the uni tommorow <3> byez <7> bye <8> folks, if I have a base cl*** A with a virtual method Init(), now I drive a Cl*** B with another Init(), but I want my B Init() to call my A Init() first, would the way to do it properly be doing A::Init() from B's Init()? <9> did you even contemplate trying it yourself? <8> yes, and it works. But I want to make sure that I got it right. Meaning there is no other way of automating the call to super method <10> there's no SUPER:: in c++ <8> ok, so I have to explicitly call A::Init() <10> yes <8> all right, thanks <9> hmmm <0> mozai: there's no super, because there can be more than one base cl***... C++ has multiple inheritence, remember? :) <4> tequilla: not that you care, but at least in a proposed change to Eiffel, there is a keyword that handles access to a parent cl*** if there is only one, and can select be instructed to select amoung them (similiar to how it is done in c++) in the case of multiple parents. <0> something about the lines of super:: and super<parentA>:: if implemented in C++? <4> tequilla: exactly like that. <11> I just broke my RAID mirror and added a drive with a bit of old data on it and of course it rebuilds the mirror the wrong direction. Why would I even think it would recognize the age of the data <11> non-fatal though... I've been making spare mirrors as backups and I have one that was 24 hours old <12> Does C++ have any functions/libraries that specifically support INI files? <9> C++ doens't know what an INI file is. <12> But you don't know of a library that's wrote for INI files? <13> your operating system might have functions for that. the Win32 API does, for example <13> but C++ itself doesn't <12> I know. <13> then why do you ask? :P <12> I meant in general.. <14> you were talking about non-general? <12> Nevermind, you're not following. <14> I've this huge suspiscion there's no one leading <13> haha <0> lol <0> writing code to parse ini files is trivial; if you can't be bothered doing it, you can easily pick up a library from www.codeproject.com <0> if you're using the windows API, there is [Get/Set]PrivateProfile[String/Int/etc] <12> It's trivial for someone that's experienced. <12> I've never wrote any sort of parser, at all. <13> and you've probably never written one either <13> hey chicksor <12> I'm from Oklahoma, we don't speak proper English here. <0> the same could be said for most people in Australia... <12> My English is actually better than most of my friends. <13> are all your friends Native American alcoholics? <10> scalar-- <0> yo' momma^H^H^H^H^H girl's an alcoholic <5> uh? <13> ++octothorpe <5> tequilla, What game is that? <0> rhw: q3 <5> Why 3? <13> and on the way home, I'll go to Wendy's <10> get me a baked potato! :D <13> I dig redheads <0> rhw: Why... not... 3? :P <5> Because Q4's newer and is pretty good. Because Q3's been played for way too long? <5> :) <0> hm... oh, well, I'm not playing either... I don't even have either installed; just the SDK for the latter <0> but: I don't like Q4 :( <0> Q2 has the same amount of fun in multiplayer _and_ plays faster <15> anyone know where in firefox preferences the Profile stuff is? <5> tequilla, Oh, I played some Q4. Practiced 1v1 a bit, but due to it not being played for WCG, I quit. <5> Was decent, but not fun enough to play without any other motivation. <11> Tomb Raider 7 anyone? <5> Nowdays I play DotA (W3 custom map) and 2k4. <15> whoah <15> rhw <15> you play dota? <15> let's play sometime <5> hehe
Return to
#c++ or Go to some related
logs:
#linux #linux #allnitecafe reeferpimp
dead video artis tenu lay kay jana apnay naal fucking in doggy style Jancok hack #php #india
|
|