| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> c++ ignores whitespace <1> HaCkeR|: You should find a good c++ tutorial online. There are millions. <0> it only looks for semicolons. <2> No, there are not. We've yet to find a decent C++ tutorial online <3> omg I forgot () i am idiot <2> If you actually want to learn the language, track down a copy of "Accelerated C++" <2> Your local Amazon will help <0> you can split a single c++ command across multiple lines, you can have multiple c++ commands on one line (as long as they're seperated by semicolons) <2> (Links at http://rudbek.com/books.html) <1> There are plenty of C++ tutorials online that will teach you cin and cout. <4> just after the 1st cout <4> what i shall put before i do the 2nd cout ? <0> at least a semicolon. <0> depends what you want to do :P <4> lol <4> ya l
<4> ; <0> cout<<"enter a number"; <0> cin >>n; <0> cout<<"the number you entered was "<<n; <0> that's the general idea. <4> yap it work <0> is that an italian flag? <4> the devision it should be like this : cout<< "The Devison of these two numbers is "<<n/x<<endl ? <5> n/x ??? <0> kinda. <0> that'll give you integer division <0> which does things like 1/2 = 0 <1> NineVolt: For my ***ignment, i have to sort an array that is handed to my function as a const pointer. since the pointer is const.. I can change the data it points to, just not the address, right? <0> float(n)/x <4> wait <0> i've never used constant pointers. <4> i wanna post it at site <0> if you're sorting the array, you have to be able to modify its contents <0> so i'm ***uming it's just the pointer that's constant, not the data it points to. <1> yeah that's what was confusing me <0> i think it might depend on where you put the const keyword actually <0> although i could be very, very wrong. <1> I'm just gonna ***ume I can change the data. <0> how bout just check if you can :P <1> heh, i'm going to. this has been the most frustrating ***ignment evar. <1> maybe I should have done the homework instead of screwing around with GBA coding all semester <3> Kenny it could be either one. something like int * const ptr is a constant pointer to an integer. You can modify the integer itself. As opposed to const int *ptr where you can't change the integer itself, but can change where the pointer is pointing. <1> argh.. yeah, it's the latter <3> what are you supposed to return? <1> T * sortArray(const T*,int,bool); <1> Ah **** it. I'm gonna eat my tofu+soyrizo and read some ASM docs or something. <1> I didn't do the final for the last cl*** I had with this guy and he still gave me an A.. <1> He must think I'm cute or something. <0> i was right! <0> it does matter where you put the const! :P <0> the case you're dealing with must be where you can change the data but not the pointer. <0> in which case just create a nonconst pointer that points to the same spot and use that one for the sort. <0> damn it's hot in here, time for beer. <0> peace out. <1> later cutey <6> rdragon-wrk has your friend from the other day "hack you" yet? <7> someone mmore experienced than i please put up a ttorial on raw ethernet headers in c++, i can't find one :/ <5> what's so different about raw etherenet header in C++ from C ? <7> i have no idea <7> <-- newbie :) <2> "raw ethernet"? <7> that's what i read Asriel <2> read where? <5> if you're a newbie what do you want with raw ethernet headers? <3> noddy thats all a pain i have been working on that for a while now. The problem is its all platform specific unless you find a cross-platform third party library <7> i'd prefer not to have my ip visible on usenet, so was thinking of writing ann nntp client in c++, there's hardly any help for iit in pascal <7> i see Christoph66 <8> why not just use google groups then? <7> thanks <7> google grouups is ****,, you can't killfile for one thing <2> wait, wait - you're writing a system to forge your source IP address? <7> not am, want is more like it, for personal reasons <3> ^--- what he said <2> that's not a very good idea <2> if you don't want something ***ociated with your IP, either use a proxy or get a DHCP allocation so it doesn't matter
<2> packets flying around with forged IPs is not conducive to the health of the internet <9> or, don't do the thing you're ashamed of having your ip used for <3> noddy you cant just change ethernet headers to people cant see where they are coming from. Lol the other servers wont know where to send the information <3> your best bet for something like that is to use some kind of secure / anonymous proxy <3> there are tons of lists of proxys online, and tools to use them. Or you could use something like tor <9> or be a man and use your own ip <7> i'm trying to get my sosks proxy working <2> indeed. I've been using static IPs for as long as I've been connected to the net <7> socks* <2> never had any trouble <9> Asriel: that's because your local government is ok with your ravenous need for beastiality porn <3> no... its not possible <3> at least not for what you want <7> ok, thanks anyway. i'll go back to idling now :) <3> noddy: I certainly understand your want for anonymous data transfer... it is simply not possible in the way you are describing <3> If you dont tell someone the correct return IP, you can not receive any data back. Now if you are not interested in receiving data back... well than you are clearly doing some kind of hacking and I wont help you :) <3> yeah noddy that is you best option. Find an anonymous socks proxy <3> You should honestly check out tor <3> That is an extremely secure system that is relatively easy to use <3> Just be careful how you set it up... you dont want to host other peoples traffic <7> i've heard of it <2> peterhu - Hey JB doesn't have broadband yet, so someone has to burn it to CD for him <9> oh snap <2> gah. I hate the weather in this country when it gets hot <2> humid and miserable <2> gonna take me a shower. afk <9> heh <9> it's so beautiful here it hurts <9> 70s degrees F <9> sunny <9> light breeze <9> mmm <9> yay? <8> weirc, the quit message howed up twice here <10> 4O4 <10> 404 <10> peterhu if you can see the sun, you're certainly slacking <9> pfft <9> you're the west coast hippy slacker <2> ah, refreshed <11> error_404, ask these guys for help while you can, don't leave it until 4 am <11> (4 am our time) <12> :) <12> i don't ask for any help right now <12> i'm thinking my self <12> if i chek number is divisible by 10 <12> if not try with 9 <12> etc <12> iuf not .... <11> That doesn't really account for addition or optimization <11> 10 is actually worse than 9, remember? <11> It's two characters where 9 is one <11> So any representation with 10 instead of 9 will be one character longer <11> Except in rare cases <12> kj;dfsakffdsfdlkj; <11> Exactly <12> don't know <11> 10 5 * is how many characters long? 6 <11> 9 6 * is how many characters long? 5 <11> Those representations aren't of the same number, but you get my drift <12> maybe is better to repeat this year of faculty <11> 10 3 * 1 + is 10 characters long <11> 9 3 * 4 + is 9 characters long, and both result in 31 <12> just loose it <12> forget the idea <11> So 9 3 * 4 + is the shorter representation <11> Boy, I fixed him right up <2> it's actually a really tough problem, best I can see <11> Yeah, I guess <11> You've seen it, right? <12> JBlitzen
Return to
#c++ or Go to some related
logs:
#php fusionroom Which is farthest west, Dublin, Glasgow or Lisbon ?
making pastourmas sa ma sugi in english #linux C++ in JavaScript #linux #chatzone #chatzone
|
|